/* Page d'accueil ProOne — contenu éditorial (hors moteur catalogue) */

:root {
  --proone-home-navy: #00254b;
  --proone-home-green: #afca0b;
  --proone-home-green-dark: #97b30a;
  --proone-home-gray-100: #f5f5f5;
  --proone-home-gray-200: #e8e8e8;
  --proone-home-gray-300: #d0d0d0;
  --proone-home-text: #333;
  --proone-home-max-width: 1350px;
  --proone-home-gutter: 1.5rem;
  --proone-home-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hero-panel-cut: 180px;
}

.proone-home {
  margin: 0;
  font-family: var(--proone-home-font);
  color: var(--proone-home-text);
  line-height: 1.6;
  background: #fff;
}

.proone-home__main {
  display: block;
}

/* --- Hero slider --- */

.hero-banner {
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  height: 80svh;
  min-height: 440px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  background-color: #b8bcc2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
}

.hero-slide__panel {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 75%;
  max-width: calc(var(--proone-home-max-width) * 0.75);
  margin-left: max(var(--proone-home-gutter), calc((100% - var(--proone-home-max-width)) / 2 + var(--proone-home-gutter)));
  padding: 2rem calc(2.25rem + var(--hero-panel-cut) * 0.35) 0 2.25rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 60px solid var(--proone-home-green);
  clip-path: polygon(
    0 0,
    calc(100% - var(--hero-panel-cut)) 0,
    100% var(--hero-panel-cut),
    100% 100%,
    0 100%
  );
}

.hero-slide__title {
  margin: 0 0 0.75rem;
  font-family: var(--proone-title-font, 'Orgon', var(--proone-home-font));
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--proone-home-navy);
  text-transform: uppercase;
}

.hero-slide__subtitle {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.45;
  color: var(--proone-home-navy);
}

.hero-slide__cta {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 4px;
  background: var(--proone-home-green);
  color: var(--proone-home-navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-slide__cta:hover,
.hero-slide__cta:focus {
  background: var(--proone-home-green-dark);
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(175, 202, 11, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slider__dot.is-active {
  background: var(--proone-home-green);
  transform: scale(1.25);
}

.hero-slider__dot:hover,
.hero-slider__dot:focus {
  background: var(--proone-home-green);
}

@media (max-width: 720px) {
  .hero-slider {
    height: 56vh;
    height: 56svh;
    min-height: 340px;
  }

  .hero-slide__panel {
    --hero-panel-cut: 120px;
    width: 90%;
    max-width: none;
    margin-left: var(--proone-home-gutter);
    margin-right: var(--proone-home-gutter);
    padding: 1.5rem calc(1.25rem + var(--hero-panel-cut) * 0.4) 0 1.25rem;
    border-bottom-width: 48px;
  }

  .hero-slider__dots {
    bottom: 0.85rem;
  }
}

/* --- Sections communes --- */

.proone-home-section {
  padding: 3.5rem 0;
}

.proone-home-section:nth-of-type(even) {
  background: var(--proone-home-gray-100);
}

.proone-home-section__inner {
  width: 100%;
  max-width: var(--proone-home-max-width);
  margin: 0 auto;
  padding: 0 var(--proone-home-gutter);
  box-sizing: border-box;
}

.proone-home-section__title {
  margin: 0 0 0.75rem;
  font-family: var(--proone-title-font, 'Orgon', var(--proone-home-font));
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--proone-home-navy);
}

.proone-home-section__subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--proone-home-navy);
}

.proone-home-section__text p {
  margin: 0 0 1rem;
}

.proone-home-section__text p:last-child {
  margin-bottom: 0;
}

.proone-home-section__credo-title {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--proone-home-navy);
}

.proone-home-section__credo-text {
  margin: 0 0 1rem;
}

.proone-home-section__tagline {
  margin: 1.25rem 0 0;
  font-weight: 700;
  color: var(--proone-home-navy);
}

/* --- Vidéo responsive 16:9 --- */

.proone-home-video {
  margin-top: 2rem;
}

.proone-home-video__aspect {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.proone-home-video__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Teasers --- */

.proone-home-teasers {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.proone-home-teasers--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proone-home-teasers--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proone-home-teaser {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  padding: 1rem;
  box-sizing: border-box;
}

.proone-home-section:nth-of-type(even) .proone-home-teaser {
  background: #fff;
}

.proone-home-teaser__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: var(--proone-home-gray-200);
  overflow: hidden;
}

.proone-home-teaser__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proone-home-teaser__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--proone-home-navy);
}

.proone-home-teaser__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.95rem;
}

.proone-home-teaser__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--proone-home-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--proone-home-green);
}

.proone-home-teaser__link:hover,
.proone-home-teaser__link:focus {
  color: var(--proone-home-green-dark);
}

@media (max-width: 960px) {
  .proone-home-teasers--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .proone-home-section {
    padding: 2.5rem 0;
  }

  .proone-home-teasers--cols-2,
  .proone-home-teasers--cols-3 {
    grid-template-columns: 1fr;
  }
}
