/* ——— Page d'accueil PMC — modernisation professionnelle ——— */

.page-home {
  --pmc-navy: #0a2f4a;
  --pmc-blue: #1a6bb5;
  --pmc-teal: #0f766e;
  --pmc-sky: #eef5fa;
  --pmc-mist: #f5f8fb;
  --pmc-text: #1a2332;
  --pmc-muted: #5b6b7c;
  --pmc-border: rgba(10, 47, 74, 0.1);
  --font-ui: "Source Sans 3", sans-serif;
  --font-brand: "Source Serif 4", serif;
  background: #fff;
  color: var(--pmc-text);
  font-family: var(--font-ui);
  scroll-behavior: smooth;
}

/* Écrase Poppins du CSS global sur la page d'accueil */
.page-home *:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: var(--font-ui);
}

/* Ne pas forcer padding:0 ici : ça écrase .pmc-about etc. (spécificité)
   et colle le contenu au bord sur mobile. Les sections gèrent leur padding. */

.page-home h1,
.page-home h2,
.page-home h3,
.page-home .pmc-hero__brand,
.page-home .brand__text strong {
  font-family: var(--font-brand);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  color: var(--pmc-navy);
  text-wrap: balance;
}

.page-home .brand__text strong {
  color: var(--pmc-navy);
}

.page-home p,
.page-home .pmc-mission__list span,
.page-home .pmc-mission__vision {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.pmc-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pmc-teal);
}

.pmc-section-head {
  max-width: 58rem;
  margin: 0 auto 3.2rem;
  text-align: center;
  padding: 0 1.5rem;
}

.pmc-section-head h2 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin-bottom: 1rem;
}

.pmc-section-head__text {
  font-size: 1.45rem;
  color: var(--pmc-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 50rem;
  text-align: center;
}

.pmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--font-ui);
  border-radius: 0.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pmc-btn--primary {
  background: var(--pmc-blue);
  color: #fff;
}

.pmc-btn--primary:hover {
  background: #fff;
  color: var(--pmc-navy);
  border-color: #fff;
  transform: translateY(-2px);
}

.pmc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.pmc-btn--ghost:hover {
  background: #fff;
  color: var(--pmc-navy);
  border-color: #fff;
  transform: translateY(-2px);
}

.pmc-btn--outline {
  background: transparent;
  color: var(--pmc-blue);
  border-color: var(--pmc-blue);
}

.pmc-btn--outline:hover {
  background: var(--pmc-blue);
  color: #fff;
}

.pmc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pmc-blue);
}

.pmc-link i {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.pmc-link:hover i {
  transform: translateX(4px);
}

/* ——— Hero full-bleed (fond fixe / parallaxe) ——— */
.pmc-hero {
  position: relative;
  min-height: min(78vh, 62rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.pmc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pmc-hero__bg {
  position: absolute;
  inset: 0;
  background: url(../../assets/img/batiment_pmc.12.jpeg) center / cover no-repeat;
  background-attachment: fixed;
}

.pmc-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 46, 0.72) 0%, rgba(10, 47, 74, 0.78) 45%, rgba(6, 28, 46, 0.82) 100%);
  pointer-events: none;
}

.pmc-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 86rem;
  margin: 0 auto;
  padding: 7rem 9% 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pmc-hero__brand {
  font-family: var(--font-brand);
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  color: #fff;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.pmc-hero__title {
  font-family: var(--font-ui);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.97) !important;
  margin: 0 0 1.6rem;
  max-width: 58rem;
  line-height: 1.3;
  text-align: center;
}

.pmc-hero__lead {
  font-size: clamp(1.7rem, 2vw, 1.95rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 58rem;
  margin: 0 0 3.2rem;
  text-align: center !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.pmc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.pmc-hero__actions .pmc-btn {
  min-width: 20rem;
  padding: 1.25rem 2.4rem;
  font-size: 1.55rem;
}

/* Entrée fluide des éléments du hero */
.hero-anim {
  opacity: 0;
  transform: translateY(2.8rem);
  animation: pmcFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) var(--hero-d, 0s) forwards;
}

@keyframes pmcFadeUp {
  from {
    opacity: 0;
    transform: translateY(2.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— About ——— */
.pmc-about {
  position: relative;
  z-index: 2;
  padding: 6rem 9%;
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(15, 118, 110, 0.06), transparent),
    var(--pmc-mist);
}

.pmc-about__layout {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 6.5rem);
  align-items: center;
}

/* Cadre organique type â€œblobâ€ pour la photo clinique */
.pmc-about__visual {
  position: relative;
  width: 100%;
  max-width: 52rem;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
}

.pmc-about__blob {
  position: absolute;
  display: block;
  pointer-events: none;
}

.pmc-about__blob--back {
  inset: 6% 2% 2% 8%;
  background: #0a2f4a;
  border-radius: 62% 38% 48% 52% / 48% 42% 58% 52%;
  z-index: 0;
}

.pmc-about__blob--mid {
  inset: 12% -2% 8% 14%;
  background: #1a6bb5;
  border-radius: 48% 52% 42% 58% / 55% 40% 60% 45%;
  z-index: 1;
  opacity: 0.95;
  animation: pmcBlobDrift 9s ease-in-out infinite;
}

@keyframes pmcBlobDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0.6rem, -0.8rem) rotate(1.5deg); }
}

.pmc-about__media {
  position: absolute;
  inset: 4% 6% 8% 4%;
  z-index: 2;
  overflow: hidden;
  border: 0.35rem solid #fff;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  box-shadow: 0 22px 48px rgba(10, 47, 74, 0.22);
  background: #0a2f4a;
}

.pmc-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pmc-about__visual:hover .pmc-about__media img {
  transform: scale(1.04);
}

.pmc-about__body {
  max-width: 56rem;
  padding: 1rem 0;
}

.pmc-about__body h2 {
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  margin: 0 0 1.8rem;
  text-align: left;
}

.pmc-about__body p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--pmc-muted);
  margin: 0 0 1.5rem;
}

/* ——— Services ——— */
.pmc-services {
  position: relative;
  z-index: 2;
  padding: 6rem 9%;
  background: #fff;
}

.pmc-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.pmc-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding: 2.6rem 1.6rem 2.2rem;
  border: 1px solid var(--pmc-border);
  border-radius: 1rem;
  background: #fff;
  color: var(--pmc-navy);
  box-shadow: 0 6px 18px rgba(10, 47, 74, 0.04);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pmc-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #eaf3fb 0%, #dceaf6 100%);
  color: var(--pmc-blue);
  font-size: 2.4rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pmc-service h3 {
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  color: var(--pmc-navy);
  line-height: 1.35;
}

.pmc-service:hover {
  background: #fff;
  border-color: rgba(26, 107, 181, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10, 47, 74, 0.1);
}

.pmc-service:hover .pmc-service__icon {
  background: var(--pmc-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 107, 181, 0.28);
}

/* ——— Mission ——— */
.pmc-mission {
  position: relative;
  z-index: 2;
  padding: 6rem 9%;
  background:
    linear-gradient(160deg, #0a2f4a 0%, #124a6b 55%, #0f766e 140%);
  color: #fff;
}

.pmc-mission__layout {
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.pmc-mission .pmc-eyebrow {
  color: #7dd3c7;
}

.pmc-mission h2 {
  color: #fff !important;
  font-size: clamp(2.6rem, 3.5vw, 3.6rem);
  margin: 0 0 2.4rem;
  text-align: left;
}

.pmc-mission__body {
  max-width: 54rem;
}

.pmc-mission__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.4rem;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pmc-mission__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pmc-mission__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pmc-mission__list li {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.6rem;
  border-left: 3px solid #7dd3c7;
}

.pmc-mission__list strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.pmc-mission__list span {
  font-size: 1.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.pmc-mission__vision {
  font-size: 1.55rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ——— Blog / Actualités ——— */
.pmc-blog {
  position: relative;
  z-index: 2;
  padding: 6rem 9%;
  background:
    radial-gradient(circle at 90% 10%, rgba(26, 107, 181, 0.08), transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(15, 118, 110, 0.07), transparent 38%),
    linear-gradient(180deg, #f3f7fb 0%, #eef4f9 100%);
}

.pmc-blog__shell {
  max-width: 120rem;
  margin: 0 auto;
}

.pmc-blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.pmc-blog__intro {
  max-width: 64rem;
}

.pmc-blog__intro h2 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0 0 1.2rem;
  text-align: left;
}

.pmc-blog__intro .pmc-section-head__text {
  margin: 0;
  text-align: left;
  max-width: 54rem;
}

.pmc-blog__cta {
  margin-top: 0;
  flex-shrink: 0;
  align-self: center;
}

.pmc-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.6rem;
  justify-content: center;
}

.pmc-blog__grid:has(.pmc-blog__item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 38rem));
  justify-content: center;
}

.pmc-blog__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, 0.08);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.pmc-blog__item:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 18px 40px rgba(10, 47, 74, 0.12);
  border-color: rgba(26, 107, 181, 0.22);
}

.pmc-blog__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d7e6f2, #eef5fa);
  position: relative;
}

.pmc-blog__thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(10, 47, 74, 0.18));
  pointer-events: none;
}

.pmc-blog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pmc-blog__item:hover .pmc-blog__thumb img {
  transform: scale(1.06);
}

.pmc-blog__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.1rem;
  padding: 1.8rem 1.9rem 2rem;
}

.pmc-blog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  font-size: 1.25rem;
  color: var(--pmc-muted);
}

.pmc-blog__meta i {
  margin-right: 0.4rem;
  color: var(--pmc-teal);
}

.pmc-blog__item h3 {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  text-align: left;
}

.pmc-blog__item h3 a {
  color: var(--pmc-navy);
}

.pmc-blog__item h3 a:hover {
  color: var(--pmc-blue);
}

.pmc-blog__read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pmc-blue);
}

.pmc-blog__read i {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.pmc-blog__item:hover .pmc-blog__read i {
  transform: translateX(4px);
}

.pmc-blog__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.6rem;
  color: var(--pmc-muted);
  background: #fff;
  border-radius: 1.2rem;
  padding: 3rem 2rem;
  border: 1px dashed rgba(10, 47, 74, 0.15);
}

/* ——— CTA band (fond fixe / parallaxe) ——— */
.pmc-cta-band {
  position: relative;
  z-index: 2;
  padding: 6rem 9%;
  color: #fff;
  text-align: center;
}

.pmc-cta-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pmc-cta-band__bg {
  position: absolute;
  inset: 0;
  background: #0a2f4a center / cover no-repeat;
  background-attachment: fixed;
}

.pmc-cta-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 47, 74, 0.9), rgba(15, 118, 110, 0.78));
  pointer-events: none;
}

.pmc-cta-band__panel {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.4rem 3rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.pmc-cta-band__eyebrow {
  color: #9ee0d6 !important;
  margin-bottom: 1.2rem;
}

.pmc-cta-band h2 {
  color: #fff !important;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  margin: 0 0 1.4rem;
  text-align: center;
}

.pmc-cta-band__panel > p {
  font-size: 1.65rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2.8rem;
  line-height: 1.65;
  max-width: 56rem;
  text-align: center;
}

.pmc-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.pmc-cta-band__actions .pmc-btn {
  margin-top: 0;
  gap: 0.8rem;
  min-width: 18rem;
}

/* Sur fond sombre : CTA principal en blanc (pas bleu) */
.pmc-cta-band .pmc-btn--primary {
  background: #fff;
  color: var(--pmc-navy);
  border-color: #fff;
}

.pmc-cta-band .pmc-btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ——— Modale téléphone ——— */
.pmc-modal[hidden] {
  display: none !important;
}

.pmc-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pmc-modal.is-open {
  display: flex;
}

.pmc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 40, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pmc-modal.is-open .pmc-modal__backdrop {
  opacity: 1;
}

.pmc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  padding: 3.2rem 2.8rem 2.8rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 28px 60px rgba(10, 47, 74, 0.28);
  text-align: center;
  opacity: 0;
  transform: translateY(1.8rem) scale(0.96);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pmc-modal.is-open .pmc-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pmc-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3.6rem;
  height: 3.6rem;
  border: none;
  border-radius: 50%;
  background: var(--pmc-mist);
  color: var(--pmc-navy);
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.pmc-modal__close:hover {
  background: var(--pmc-navy);
  color: #fff;
}

.pmc-modal__icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eaf3fb, #dceaf6);
  color: var(--pmc-blue);
  font-size: 2.2rem;
}

.pmc-modal__dialog h3 {
  font-family: var(--font-brand);
  font-size: 2.4rem;
  margin: 0 0 0.8rem;
  color: var(--pmc-navy);
  text-align: center;
}

.pmc-modal__text {
  font-size: 1.5rem;
  color: var(--pmc-muted);
  margin: 0 0 2.2rem;
  text-align: center !important;
}

.pmc-modal__phones {
  display: grid;
  gap: 1.2rem;
}

.pmc-modal__phone {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(10, 47, 74, 0.1);
  background: var(--pmc-mist);
  color: var(--pmc-navy);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pmc-modal__phone:hover {
  border-color: rgba(26, 107, 181, 0.35);
  background: #fff;
  transform: translateY(-2px);
}

.pmc-modal__phone-label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pmc-teal);
}

.pmc-modal__phone strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.pmc-modal-open {
  overflow: hidden;
}

/* ——— Footer polish on home ——— */
.page-home .footer {
  position: relative;
  z-index: 2;
  background: var(--pmc-navy);
  padding: 5rem 9% 3rem;
}

.page-home .footer .box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.page-home .footer .box h3 {
  color: #fff;
  font-family: var(--font-brand);
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}

.page-home .footer .box p,
.page-home .footer .box a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.4rem;
  line-height: 1.8;
}

.page-home .footer .box a:hover {
  color: #fff;
}

.page-home .footer .box a i {
  color: #7dd3c7;
}

.page-home .footer .btn {
  border-radius: 0.5rem;
  background: var(--pmc-teal);
}

.page-home .footer .btn:hover {
  background: #fff;
  color: var(--pmc-navy);
}

.page-home .footer form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 0.5rem;
}

/* ——— Reveal on scroll (une seule fois) ——— */
.reveal {
  opacity: 0;
  transform: translateY(3.2rem);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal--left {
  transform: translateX(-3.2rem);
}

.reveal.reveal--right {
  transform: translateX(3.2rem);
}

.reveal.reveal--up {
  transform: translateY(3.6rem) scale(0.98);
}

.reveal.reveal--scale {
  transform: translateY(1.6rem) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Après la première apparition : plus aucune réanimation */
.reveal.reveal-done {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ——— Bouton retour en haut ——— */
.pmc-back-top {
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
  z-index: 1200;
  width: 5rem;
  height: 5rem;
  border: none;
  border-radius: 50%;
  background: var(--pmc-blue);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.2rem) scale(0.92);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    background 0.2s ease;
}

.pmc-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: pmcFloatBtn 2.8s ease-in-out infinite;
}

.pmc-back-top:hover {
  background: var(--pmc-navy);
  animation: none;
  transform: translateY(-2px) scale(1.04);
}

.pmc-back-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes pmcFloatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

/* Neutralize legacy home styles that could leak */
.page-home .home,
.page-home .slides-container,
.page-home .banner-container,
.page-home .about,
.page-home .blog,
.page-home .pmc-video-mission-section,
.page-home .titre3 {
  all: unset;
  display: contents;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .pmc-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pmc-about__layout,
  .pmc-mission__layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .pmc-about__visual {
    max-width: 44rem;
    aspect-ratio: 1 / 1;
  }

  .pmc-about__body,
  .pmc-mission__body {
    max-width: none;
  }
}

@media (max-width: 991px) {
  /* iOS / mobile : fixed attachment souvent défaillant */
  .pmc-hero__bg,
  .pmc-cta-band__bg {
    background-attachment: scroll;
  }

  .pmc-hero__content,
  .pmc-about,
  .pmc-services,
  .pmc-mission,
  .pmc-blog,
  .pmc-cta-band {
    padding-left: clamp(1.8rem, 5.5vw, 3.2rem);
    padding-right: clamp(1.8rem, 5.5vw, 3.2rem);
  }

  .page-home .footer {
    padding-left: clamp(1.8rem, 5.5vw, 3.2rem);
    padding-right: clamp(1.8rem, 5.5vw, 3.2rem);
  }

  .page-home .footer .box-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pmc-blog__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pmc-hero {
    min-height: 72vh;
  }

  .pmc-hero__content {
    padding-top: 7rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 700px) {
  .pmc-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pmc-blog__grid {
    grid-template-columns: 1fr;
  }

  .pmc-blog__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pmc-blog__cta {
    width: 100%;
    justify-content: center;
  }

  .pmc-cta-band__panel {
    padding: 3.2rem 2rem;
  }

  .pmc-cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .footer .box-container {
    grid-template-columns: 1fr;
  }

  .pmc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pmc-hero__actions .pmc-btn {
    min-width: 0;
  }

  .pmc-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pmc-back-top {
    right: 1.6rem;
    bottom: 1.6rem;
    width: 4.6rem;
    height: 4.6rem;
  }
}

@media (max-width: 480px) {
  .pmc-services__grid {
    grid-template-columns: 1fr;
  }

  .pmc-hero {
    min-height: 62vh;
  }

  .pmc-hero__content {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  .pmc-hero__brand {
    font-size: clamp(2.6rem, 8vw, 3.4rem);
  }

  .pmc-hero__title {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  }

  .pmc-hero__lead {
    font-size: 1.45rem;
    margin-bottom: 2.2rem;
  }

  .page-home p,
  .page-home .pmc-mission__list span,
  .page-home .pmc-mission__vision {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .page-home .pmc-section-head__text,
  .page-home .pmc-hero__lead,
  .page-home .pmc-hero p {
    text-align: center;
  }

  .pmc-about,
  .pmc-services,
  .pmc-mission,
  .pmc-blog,
  .pmc-cta-band {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .pmc-section-head__text {
    font-size: 1.45rem;
  }

  .pmc-cta-band__panel {
    padding: 2.6rem 1.5rem;
  }

  .pmc-mission__frame {
    min-height: 18rem;
    border-radius: 0.3rem;
  }

  .pmc-modal {
    padding: 1.2rem;
  }

  .pmc-modal__dialog {
    padding: 2.4rem 1.6rem 2rem;
  }

  .pmc-modal__phone strong {
    font-size: 1.7rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .pmc-back-top {
    right: 1.2rem;
    bottom: 1.2rem;
    width: 4.2rem;
    height: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmc-hero__bg,
  .pmc-cta-band__bg {
    background-attachment: scroll;
  }

  .page-home {
    scroll-behavior: auto;
  }

  .hero-anim,
  .reveal,
  .pmc-back-top,
  .pmc-back-top.is-visible,
  .pmc-about__blob--mid {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .pmc-back-top.is-visible {
    visibility: visible;
    pointer-events: auto;
  }
}
