/* =========================
   VARIABLES (rappel usage)
   dépend de ton :root global
========================= */

/* =========================
   HERO PETITION
========================= */

.petition-hero-media {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.bande-entete + .section {
  padding-top: 0;
}

.petition-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 50%);
  pointer-events: none;
}

.petition-hero-image {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.petition-hero-titre {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 1;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--blanc-pur);
}

.petition-hero-sous-titre {
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--gris-neutre);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* =========================
   CTA BLOCK
========================= */

.petition-cta-block {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.petition-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  background: var(--rouge-change);
  color: var(--blanc-pur);

  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;

  padding: 0.85rem 2.2rem;
  border-radius: 8px;

  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petition-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.petition-hero-cta:focus-visible {
  outline: 3px solid var(--bleu-vif);
  outline-offset: 3px;
}

.petition-hero-cta-arrow {
  font-size: 1.2em;
  line-height: 1;
}

.petition-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.petition-qr {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
}

/* =========================
   PROGRESSION
========================= */

.petition-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.petition-range-debut,
.petition-range-fin {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--bleu-ardoise-fonce);
  white-space: nowrap;
}

.petition-range-barre {
  flex: 1;
  height: 6px;
  background: var(--gris-perle);
  border-radius: 999px;
  overflow: hidden;
}

.petition-range-barre-pleine {
  height: 100%;
  background: linear-gradient(90deg, var(--bleu-ardoise-fonce), var(--bleu-vif));
  border-radius: 999px;
}

.petition-range-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  width: 100%;
}

.petition-range-info {
  margin: 0 0 0 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--gris-neutre);
  text-align: center;
  line-height: 1.4;
}

.petition-range-info strong {
  color: var(--bleu-ardoise-fonce);
  font-weight: 800;
  font-size: 1.1em;
}

.petition-range-grand-objectif {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: var(--bleu-ardoise-fonce);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.petition-range-grand-objectif strong {
  color: var(--rouge-change);
  font-weight: 800;
}

/* =========================
   TEXTE COMPLET DE LA PÉTITION
========================= */

.petition-texte-complet {
  background: var(--blanc-pur);
  border: 1px solid var(--gris-perle);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.petition-texte-complet p {
  margin-bottom: 1.4em;
  line-height: 1.75;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--noir-doux);
}

.petition-texte-complet .petition-range-text p {
  margin-bottom: 0;
}

.petition-texte-complet h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin: 1.5em 0 0.75em;
  color: var(--noir-doux);
  font-weight: 700;
}

.petition-texte-complet h2:first-child {
  margin-top: 0;
}

.petition-texte-complet h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 1.25em 0 0.5em;
  color: var(--bleu-ardoise-fonce);
  font-weight: 700;
}

.petition-texte-complet ul {
  margin: 0.75em 0 1.25em 1.25rem;
  padding: 0;
  list-style: disc;
}

.petition-texte-complet li {
  margin-bottom: 0.4em;
  line-height: 1.6;
  color: var(--noir-doux);
}

.petition-lien-kit {
  display: block;
  text-align: center;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-ardoise-fonce);
  text-decoration: none;
}

.petition-lien-kit:hover {
  text-decoration: underline;
}

/* =========================
   MEDIA KIT
========================= */

.medias-galerie {
  display: flex;
  flex-wrap: nowrap;

  gap: 1.25rem;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;

  padding-bottom: 0.5rem;
}

/* carte fixe = contrôle du carousel */
.medias-item {
  flex: 0 0 clamp(180px, 70vw, 240px);

  scroll-snap-align: start;

  display: flex;
  flex-direction: column;

  background: var(--blanc-pur);
  border: 1px solid var(--gris-perle);
  border-radius: 8px;

  overflow: hidden;

  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* hover desktop */
.medias-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* preview */
.medias-item-preview {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--blanc-doux);
  overflow: hidden;
}

.medias-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* infos */
.medias-item-infos {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.75rem;
  gap: 0.5rem;
}

/* typo */
.medias-item-nom {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--noir-doux);
}

.medias-item-format {
  font-size: 0.7rem;
  color: var(--gris-neutre);
  display: block;
}

/* bouton */
.medias-item-btn {
  flex-shrink: 0;

  padding: 0.4rem 0.8rem;

  background: var(--bleu-ardoise-fonce);
  color: var(--blanc-pur);

  border-radius: 6px;

  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;

  transition: background 0.2s ease;
}

.medias-item-btn:hover {
  background: var(--bleu-ardoise);
}

.medias-tout-telecharger {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  margin-top: 1.25rem;
  padding: 0.75rem 1.8rem;

  background: var(--bleu-ardoise-fonce);
  color: var(--blanc-pur);

  border-radius: 8px;

  font-weight: 700;
  text-decoration: none;

  transition: background 0.2s ease, transform 0.2s ease;
}

.medias-tout-telecharger:hover {
  background: var(--bleu-ardoise);
  transform: translateY(-2px);
}

/* =========================
   CTA FINAL
========================= */

.petition-cta-section {
  text-align: center;

  padding: clamp(2rem, 4vw, 3.5rem);

  background: linear-gradient(to bottom, var(--blanc-doux), #dce4f0);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.petition-cta-section p {
  max-width: 520px;
  margin: 0 auto 1.5rem;

  color: var(--gris-neutre);
  line-height: 1.6;
}