/*
====================================================
Project : Société de Plomberie Ayouche
Page    : Organigramme
Author  : AI + User
Version : 1.0.0
Notes   : Pixel-perfect reproduction of a supplied mockup. Reuses the
          site's shared design tokens (colors, buttons, navbar, footer
          from style.css). Every class below is prefixed `org-`.
====================================================
*/

/* --------------------------------------------------------------------------
   SHARED
   -------------------------------------------------------------------------- */
.org-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   HERO — background: assets/back/heroorg.png
   -------------------------------------------------------------------------- */
.org-hero {
  position: relative;
  aspect-ratio: 21 / 8;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background-color: #000A17;
  background-image: url('../back/heroorg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.org-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 23, .6) 0%, rgba(0, 10, 23, .25) 42%, rgba(0, 10, 23, 0) 62%);
}

.org-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.org-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 18px;
}

.org-breadcrumb a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.org-breadcrumb a:hover {
  color: var(--color-primary);
}

.org-breadcrumb i {
  font-size: 9px;
  color: rgba(255, 255, 255, .3);
}

.org-breadcrumb span[aria-current] {
  color: var(--color-primary);
}

.org-hero-content {
  max-width: 600px;
}

.org-hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}

.org-hero-content h1 .accent {
  color: var(--color-primary);
}

.org-hero-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px 0;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.org-hero-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .65);
  max-width: 460px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   NOTRE STRUCTURE ORGANISATIONNELLE
   -------------------------------------------------------------------------- */
.org-structure {
  background-color: var(--color-bg-light);
}

.org-structure-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.org-structure-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0 0 14px;
}

.org-structure-header h2 .accent {
  color: var(--color-primary);
}

.org-structure-header p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-gray);
  margin: 0;
}

/* orga.png is a pre-made graphic — the entire org chart composition
   (circles, connecting lines, icons, labels) is already baked into the
   file. It must only be displayed as-is, never recreated in HTML. */
.org-structure-media {
  max-width: 1100px;
  margin: 0 auto;
}

.org-structure-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   NOS ÉQUIPES
   -------------------------------------------------------------------------- */
.org-teams {
  background-color: var(--color-white);
}

.org-teams-header {
  margin-bottom: 36px;
}

.org-teams-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0;
}

.org-teams-header h2 .accent {
  color: var(--color-primary);
}

.org-teams-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.org-team-card {
  text-align: left;
}

.org-team-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 220 / 150;
  margin-bottom: 24px;
}

.org-team-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.org-team-card:hover .org-team-media img {
  transform: scale(1.08);
}

.org-team-icon {
  position: absolute;
  left: 14px;
  bottom: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(1, 41, 99, .22);
}

.org-team-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.org-team-card p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   NOTRE COLLABORATION
   -------------------------------------------------------------------------- */
.org-process {
  background-color: var(--color-bg-light);
}

.org-process-header {
  margin-bottom: 44px;
}

.org-process-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.35;
  color: var(--color-primary-dark);
  margin: 0;
}

.org-process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.org-process-timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  border-top: 2px dotted var(--color-primary);
  z-index: 0;
}

.org-process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.org-process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(0, 140, 209, .3);
}

.org-process-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.org-process-step p {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-gray);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA FINAL — background reuses heroorg.png, dimmed
   -------------------------------------------------------------------------- */
.org-cta {
  position: relative;
  background-color: #000A17;
  background-image: url('../back/heroorg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.org-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 10, 23, .95) 0%, rgba(0, 10, 23, .88) 55%, rgba(0, 10, 23, .6) 100%);
}

.org-cta-inner {
  position: relative;
  z-index: 1;
  padding-block: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.org-cta-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.org-cta-text h2 .accent {
  color: var(--color-primary);
}

.org-cta-text p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65);
  margin: 0;
  max-width: 420px;
}

.org-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .org-teams-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }

  .org-process-timeline {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 36px;
  }

  .org-process-timeline::before {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .org-hero {
    aspect-ratio: auto;
    min-height: 500px;
    padding-bottom: 40px;
  }

  .org-hero-content h1 {
    font-size: 38px;
  }

  .org-cta-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .org-hero {
    min-height: 460px;
    padding-top: calc(var(--navbar-height) + 24px);
  }

  .org-hero-content h1 {
    font-size: 30px;
  }

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

  .org-process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .org-cta-text h2 {
    font-size: 22px;
  }
}
