:root{
  --paper: #ffffff;
  --red: #d7263d;
  --red-soft: rgba(215, 38, 61, 0.08);
  --text: #2b2a2e;
  --text-dim: #8f8b90;
  --line: rgba(215, 38, 61, 0.2);
}

html {
  scroll-behavior: smooth;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html, body{
  height: 100%;
  background: var(--paper);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
}

.layout{
  display: flex;
  min-height: 100vh; /* Force toute la hauteur de la fenêtre */
  align-items: stretch; /* Les bandes s'étirent jusqu'en bas */
}

.banner{
  position: relative;
  flex: 0 0 auto;
  width: calc(100vh * 600 / 2532);  
  background: #ffffff;
}

.banner img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.banner .label{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 900px){
  .banner{ display: none; }
}

/* ===================== CONTENU CENTRAL ===================== */

.content{
  margin-top: 30px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Aligne le titre en haut et le footer tout en bas */
  text-align: justify;
  padding: 8vh 6vw 4vh 6vw;
}

h1{
  font-family: 'Courgette', cursive;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(236, 226, 200, 0.12);
  margin-bottom: 36px;
  color: rgb(228, 23, 23);
}

h2{
  margin-top: 40px;
  font-family: 'Courgette', cursive;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(236, 226, 200, 0.12);
  margin-bottom: 36px;
  color: rgb(228, 23, 23);
  text-align: center;
}

p, ul{
  font-family: "Times New Roman", Times, serif;
}

.text_center { text-align: center; }
.mot_vert { color: rgba(31,161,65,1); }
.mot_rouge { color: rgba(157,36,43,1); }
.mot_bleu { color: rgba(14,57,164,1); }
.mot_violet { color: rgba(129,73,185,1); }

.body-text{
  max-width: 108ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--parchment-dim);
}

.body-text p{
  text-indent: 2em;
}

/* ===================== EMPLACEMENTS IMAGES ===================== */

.gallery{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.image-slot{
  max-width: 100ch;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 226, 200, 0.03);
  overflow: hidden;
}

.image-slot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 560px){
  .image-slot{ width: 44vw; height: 44vw; }
}

.logo_pharma::before,
.logo_pharma::after {
  content: "\0026D1"; 
  margin: 0 10px; 
  color: #ff0000;     
}

/* ===================== FOOTER / CRÉDITS ===================== */

.footer-credits {
  text-align: center;
  padding: 30px 0 10px 0;
  margin-top: auto; /* Pousse fermement le bouton tout en bas du bloc central */
  background: transparent !important;
}

/* Bouton Crédits (Texte pur sans fond ni contour) */
.credits-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  
  font-family: 'Courgette', cursive;
  font-size: 1rem;
  color: rgb(255, 0, 0);
  cursor: pointer;
  
  transition: transform 0.2s ease, color 0.2s ease;
}

.credits-btn:hover {
  color: var(--red);
  transform: scale(1.08);
}

.newroman {
  font-family: 'Times New Roman', Times, serif;
}

/* ===================== MODALE / LIGHTBOX ===================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.credits-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.credits-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.credits-card p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #8f8b90;
}

.lightbox-close:hover {
  color: #2b2a2e;
}