/* ===== PAGE OFFRES PRO — Nos offres professionnelles ===== */

/* Hero Offres pro */
.hero--offres-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('../assets/images/hero/hero_home.png');
  background-size: cover;
  background-position: center;
  aspect-ratio: 1024 / 410;
  max-height: 420px;
}

.hero--offres-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
}

.offres-pro-hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(24px, 4.5vw, 42px);
  font-weight: 700;
  color: #000;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1), 0 0 16px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(255, 255, 255, 0.8);
  margin: 0;
  pointer-events: none;
  z-index: 2;
  text-align: center;
}

/* Bande logos partenaires */
.bande-logos {
  position: relative;
  padding: 28px 0 56px;
}

.bande-logos__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.bande-logos__placeholder {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--grey-title);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* Frise : même image et même rendu que sur la homepage */
.bande-logos .bande-decorative.bande-logos__frise {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

/* Section Menus adaptés */
.offres-menus {
  padding: 56px 0 64px;
}

.offres-menus__title {
  text-align: center;
  margin-bottom: 40px;
}

.offres-menus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.offre-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offre-card__title {
  font-family: 'Baloo 2', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--grey-title);
  margin: 0;
  padding: 20px 20px 0;
  order: 1;
}

.offre-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  order: 0;
}

.offre-card__accroche {
  font-weight: 500;
  font-style: italic;
  color: var(--grey-title);
  margin: 12px 20px 0;
  order: 2;
}

.offre-card__body {
  order: 3;
  flex: 1;
  padding: 0 20px;
}

.offre-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-body);
  margin: 0 0 12px;
}

.offre-card__body .offre-card__desc:last-of-type {
  margin-bottom: 0;
}

.offre-card__list {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-body);
}

.offre-card__list li {
  margin-bottom: 8px;
}

.offre-card__list li:last-child {
  margin-bottom: 12px;
}

.offre-card__cta {
  margin: 20px 20px 24px;
  text-align: center;
  display: inline-block;
  order: 4;
}

/* Bandeau pleine largeur avant Quai des projets */
.bandeau-offres-pro {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.bandeau-offres-pro img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Quai des projets — même section que Vos coups de cœur (accueil) mais en 4 colonnes */
.quai-projets__subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-body);
}

.quai-projets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.quai-projets__cta-text {
  text-align: center;
  margin: 32px 0 16px;
  font-size: 15px;
  color: var(--grey-body);
}

.quai-projets__cta-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ===== POPUP CONTACT OFFRES PRO ===== */
.popup-offres-pro {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-offres-pro.is-open {
  opacity: 1;
  visibility: visible;
}

.popup-offres-pro__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.popup-offres-pro__box {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.popup-offres-pro.is-open .popup-offres-pro__box {
  transform: scale(1);
}

.popup-offres-pro__img {
  flex: 0 0 36%;
  min-width: 0;
  background: #eee;
}

.popup-offres-pro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.popup-offres-pro__form-wrap {
  flex: 1;
  padding: 32px 40px 32px 32px;
  overflow-y: auto;
  position: relative;
}

.popup-offres-pro__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--grey-title);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.popup-offres-pro__close:hover {
  background: #f0f0f0;
  color: var(--grey-body);
}

.popup-offres-pro__intro {
  font-size: 15px;
  color: var(--grey-body);
  margin: 0 0 4px;
}

.popup-offres-pro__title {
  font-family: 'Baloo 2', cursive;
  font-size: 26px;
  font-weight: 700;
  color: var(--grey-title);
  margin: 24px 0 6px;
  letter-spacing: 0.02em;
}

.popup-offres-pro__required {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
}

.popup-offres-pro__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.popup-offres-pro__row {
  margin-bottom: 14px;
}

.popup-offres-pro__row--full {
  grid-column: 1 / -1;
}

.popup-offres-pro__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-title);
  margin-bottom: 4px;
}

.popup-offres-pro__label span {
  color: #c0392b;
}

.popup-offres-pro__input {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--grey-body);
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s;
}

.popup-offres-pro__input:focus {
  outline: none;
  border-color: var(--blue-secondary);
}

.popup-offres-pro__textarea {
  resize: vertical;
  min-height: 80px;
}

.popup-offres-pro__submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .offres-menus__grid {
    grid-template-columns: 1fr;
  }

  .quai-projets__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bande-logos__inner {
    gap: 20px 28px;
  }

  .offres-pro-hero__title {
    font-size: clamp(20px, 5vw, 32px);
  }
}

@media (max-width: 600px) {
  .quai-projets__grid {
    grid-template-columns: 1fr;
  }
}

/* Popup offres pro — responsive */
@media (max-width: 700px) {
  .popup-offres-pro__box {
    flex-direction: column;
    max-height: 95vh;
  }

  .popup-offres-pro__img {
    flex: 0 0 auto;
    max-height: 180px;
  }

  .popup-offres-pro__img img {
    min-height: 180px;
  }

  .popup-offres-pro__form-wrap {
    padding: 24px 20px;
  }

  .popup-offres-pro__form {
    grid-template-columns: 1fr;
  }
}
