:root {
    --encre: #12161d;
    --encre-2: #1d232d;
    --rouge: #c4161c;
    --rouge-clair: #ff4d52;
    --fond: #f4f4f1;
    --texte: #1b1f27;
    --gris: #9aa3b2;
    --marge: max(1.25rem, calc((100vw - 72rem) / 2));
    --rayon: 18px;
}

body {
  background: var(--encre);
}

#conteneur1 {
    text-align: center;
    margin: 0 auto;
    width: 90%;
    height: auto;
}

.contenu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-inline: var(--marge);
  padding-block: 2rem 1rem;
}

/* ---------- Section 1 ---------- */
.section1 {
  flex: 1 1 0;
}

.surtitre {
  display: inline-block;
  color: var(--rouge-clair);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section1 h1 {
  position: relative;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
  animation: entree-titre .8s cubic-bezier(.2, .7, .2, 1) both;
}

.section1 h1 .accent {
  color: var(--rouge-clair);
}

.section1 h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--rouge);
}

.section1 .intro {
  max-width: none;
  margin: 0;
  color: var(--gris);
  font-size: 1.15rem;
  line-height: 1.5;
  animation: entree-titre .8s .15s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------- Section 2 : la bulle ---------- */
.section2 {
  flex: 0 0 auto;
}

.bulle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  max-width: 20rem;
  padding: 1.5rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rouge), #8f0f14);
  border-radius: var(--rayon);
  box-shadow: 0 12px 30px rgba(196, 22, 28, .35);
  animation: entree-titre .8s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.bulle::after {
  content: "";
  position: absolute;
  left: 2rem;
  bottom: -14px;
  border: 14px solid transparent;
  border-top-color: #8f0f14;
  border-bottom: 0;
}

.bulle-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .85;
}

.bulle-montant {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.bulle-texte {
  font-size: 1rem;
  opacity: .9;
}

/* ---------- Animation d'entrée ---------- */
@keyframes entree-titre {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section1 h1, .section1 .intro, .bulle { animation: none; }
}

/* ---------- Corps de page ---------- */
#corps {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

/* ---------- Plein écran ---------- */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-view img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: pointer;
}

/* ---------- Smartphone : section 2 au-dessus de la section 1 ---------- */
@media (max-width: 768px) {
  .contenu {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 2rem;
    padding-block: 1.5rem 1rem;
  }

  .section2 {
    display: flex;
    justify-content: center;
  }

  .bulle {
    max-width: 100%;
    width: 100%;
  }
}