/* 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;
}

.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 --- */

.hero-banner {
  width: 100%;
}

.hero-slider {
  width: 100%;
}

.hero-slide {
  position: relative;
  min-height: clamp(320px, 42vw, 520px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  background-color: #b8bcc2;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 75%, transparent);
  background-size: 24px 24px;
}

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

.hero-slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--proone-home-max-width);
  margin: 0 auto;
  padding: 3rem var(--proone-home-gutter);
  box-sizing: border-box;
  color: #fff;
}

.hero-slide__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}

.hero-slide__subtitle {
  margin: 0 0 1.75rem;
  max-width: 52rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.hero-slide__cta {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  background: var(--proone-home-green);
  color: var(--proone-home-navy);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

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

/* --- 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-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  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);
}

.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;
  }

  .hero-slide__inner {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

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