/* EHPAD Villa Borghèse — Étape 4 | Teinte --ehpad */

.ehpad-header .site-nav__back {
  font-weight: 600;
  color: var(--ehpad);
  border-right: 1px solid var(--blue-200);
  padding-right: 1.25rem;
  margin-right: 0.25rem;
}

.ehpad-header .site-nav__back:hover {
  color: var(--blue-600);
}

.ehpad-header .btn-primary {
  background: var(--ehpad);
  border-color: var(--ehpad);
}

.ehpad-header .btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

@media (max-width: 900px) {
  .ehpad-header .site-nav {
    inset: 0;
    top: 0;
    height: 100vh;
    max-width: none;
    width: 100%;
    padding: 5rem 1.5rem 2rem;
    justify-content: center;
    transform: translateY(-100%);
  }

  .ehpad-header .site-nav.is-open {
    transform: translateY(0);
  }

  .ehpad-header .site-nav a {
    font-size: 1.125rem;
    text-align: center;
    border-bottom: 1px solid var(--blue-100);
  }

  .ehpad-header .site-nav__back {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
}

/* Hero */
.ehpad-hero {
  position: relative;
  min-height: clamp(460px, 72vh, 600px);
  display: flex;
  align-items: center;
  padding: clamp(96px, 11vw, 128px) 0 clamp(56px, 7vw, 80px);
  overflow: hidden;
}

.ehpad-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ehpad-hero__placeholder,
.ehpad-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ehpad-hero__placeholder {
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-50) 50%, var(--white) 100%);
}

.ehpad-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(242, 248, 255, 0.82) 100%);
}

.ehpad-hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.ehpad-hero__tagline {
  margin: 1rem 0 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
}

.ehpad-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ehpad-hero__actions .btn-primary {
  background: var(--ehpad);
  border-color: var(--ehpad);
}

/* Sections */
.ehpad-section-head {
  margin-bottom: 1.75rem;
}

.ehpad-section-head--center {
  text-align: center;
}

.ehpad-section-head--center .prose {
  margin-inline: auto;
}

.ehpad-prose {
  max-width: 68ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

.ehpad-prose + .ehpad-prose {
  margin-top: 0.85rem;
}

/* Plateau */
.ehpad-plateau {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.ehpad-plateau__tag {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ehpad);
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
}

.band-blue .ehpad-plateau__tag {
  background: var(--white);
}

/* List check */
.ehpad-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ehpad-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ehpad);
}

/* Restauration visuelle */
.ehpad-resto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.ehpad-resto-grid__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--blue-200);
  background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
}

.ehpad-resto-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ehpad-resto-grid__item--wide {
  grid-column: span 2;
}

.ehpad-resto-grid__item--tall {
  grid-row: span 2;
}

.ehpad-resto-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
}

/* Tarifs */
.ehpad-tarifs-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--blue-200);
  box-shadow: var(--shadow);
}

.ehpad-tarifs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
}

.ehpad-tarifs th,
.ehpad-tarifs td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--blue-100);
}

.ehpad-tarifs th {
  background: var(--blue-50);
  font-weight: 600;
  color: var(--ink);
}

.ehpad-tarifs td:last-child {
  color: var(--ink-soft);
  font-style: italic;
}

.ehpad-tarifs-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Équipe */
.ehpad-equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.ehpad-equipe-card {
  padding: 1.25rem 0.85rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
}

.band-blue .ehpad-equipe-card {
  background: var(--white);
}

.ehpad-equipe-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.65rem;
  color: var(--ehpad);
}

.ehpad-equipe-card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Témoignages */
.ehpad-testimonials {
  max-width: 760px;
  margin-inline: auto;
}

.ehpad-testimonial {
  display: none;
  text-align: center;
}

.ehpad-testimonial.is-active {
  display: block;
}

.ehpad-testimonial blockquote {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ehpad-testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ehpad-testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.ehpad-testimonials__btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ehpad);
  border-radius: 999px;
  background: transparent;
  color: var(--ehpad);
  font-size: 1.35rem;
  cursor: pointer;
}

.ehpad-testimonials__btn:hover {
  background: var(--ehpad);
  color: var(--white);
}

.ehpad-testimonials__dots {
  display: flex;
  gap: 0.4rem;
}

.ehpad-testimonials__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--blue-200);
  cursor: pointer;
}

.ehpad-testimonials__dot.is-active {
  background: var(--ehpad);
}

/* Galerie */
.ehpad-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 170px;
  gap: 0.75rem;
}

.ehpad-gallery__item {
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
  box-shadow: var(--shadow);
}

.ehpad-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ehpad-gallery__placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.ehpad-gallery__item--a { grid-column: span 7; }
.ehpad-gallery__item--b { grid-column: span 5; }
.ehpad-gallery__item--c { grid-column: span 4; }
.ehpad-gallery__item--d { grid-column: span 4; }
.ehpad-gallery__item--e { grid-column: span 4; }
.ehpad-gallery__item--f { grid-column: span 12; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(18, 48, 92, 0.88);
  opacity: 0;
  visibility: hidden;
}

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

.lightbox__inner { position: relative; max-width: min(960px, 100%); }
.lightbox__img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Admission */
.ehpad-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.ehpad-step {
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  text-align: center;
}

.ehpad-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--ehpad);
  border-radius: 999px;
  font-size: 0.95rem;
}

.ehpad-step p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.ehpad-faq details {
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: var(--white);
}

.ehpad-faq summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.ehpad-faq summary::-webkit-details-marker { display: none; }

.ehpad-faq__answer {
  padding: 0 1.15rem 1rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Contact */
.ehpad-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.ehpad-contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--blue-200);
  box-shadow: var(--shadow);
}

.ehpad-contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.ehpad-contact-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--blue-50);
  border-radius: var(--radius);
  border: 1px dashed var(--blue-200);
}

.ehpad-form-row { margin-bottom: 1rem; }

.ehpad-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ehpad-form-row input,
.ehpad-form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--blue-200);
  border-radius: calc(var(--radius) / 2);
}

.ehpad-form-row textarea { min-height: 110px; }

.ehpad-footer .site-footer__social-block {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ehpad-footer .site-footer__social-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .ehpad-resto-grid { grid-template-columns: 1fr 1fr; }
  .ehpad-resto-grid__item--wide,
  .ehpad-resto-grid__item--tall { grid-column: span 1; grid-row: span 1; }
  .ehpad-resto-highlights { grid-template-columns: 1fr; }
  .ehpad-steps { grid-template-columns: 1fr; }
  .ehpad-contact-grid { grid-template-columns: 1fr; }
  .ehpad-gallery { grid-template-columns: 1fr 1fr; }
  .ehpad-gallery__item--a,
  .ehpad-gallery__item--b,
  .ehpad-gallery__item--c,
  .ehpad-gallery__item--d,
  .ehpad-gallery__item--e,
  .ehpad-gallery__item--f { grid-column: span 1; }
}
