/* Secteurs d’activité page only. Spacing, title sizes, buttons, cards, statistics and check
   badges come from the shared tokens/components in style.css. */
.sectors-inner { padding-inline: var(--inner); }

/* Hero */
.sectors-hero { height: 547px; color: white; background: linear-gradient(90deg, #002333 0%, rgb(0 31 47 / 94%) 30%, rgb(0 31 47 / 62%) 50%, rgb(0 31 47 / 22%) 72%, rgb(0 31 47 / 35%)), url('../images/sectors/sector-manufacturing.webp') 70% 45% / cover no-repeat; background-color: var(--navy-dark); }
.sectors-hero-inner { position: relative; height: 100%; padding-top: 60px; }
.sectors-breadcrumb { display: flex; gap: 11px; color: #e3eef3; font-size: 16px; margin-bottom: 36px; }
.sectors-breadcrumb a { color: #bce8ee; }
.sectors-hero .eyebrow { color: #83e5ed; font-size: 18px; margin-bottom: 14px; }
.sectors-hero h1 { font-size: 54px; line-height: 1.08; font-weight: 750; letter-spacing: -.03em; }
.sectors-hero-copy > p:not(.eyebrow) { color: #e7eff3; font-size: 19px; line-height: 1.62; max-width: 570px; margin-top: 22px; }
.sectors-hero .hero-actions { gap: 26px; margin-top: 30px; }
.sectors-hero .button { font-size: 17px; padding-inline: 30px; }
.sectors-hero-statement { position: absolute; right: var(--inner); bottom: 36px; color: white; text-transform: uppercase; letter-spacing: .15em; font-size: 19px; line-height: 1.66; font-weight: 550; }
.sectors-hero-statement::before { content: ''; display: block; width: 46px; height: 3px; background: var(--teal); margin-bottom: 20px; }

/* Intro + 3 × 3 grid (cards reuse .service-card: flex column, link on one bottom line) */
.sectors-intro { background: var(--surface); padding-block: var(--space-section); }
.sectors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 32px calc(var(--inner) * -1) 0; }
.sector-card .service-photo { height: 166px; }
.sector-card .service-content { padding: 50px 30px 22px; }
.sector-card .service-icon { left: 30px; top: -40px; padding: 18px; border-radius: 10px; box-shadow: 0 6px 16px rgb(7 47 68 / 9%); }
.sector-card .service-icon .icon { width: 40px; height: 40px; }
.sector-card .service-content h3 { font-size: 21px; white-space: normal; letter-spacing: -.02em; }
.sector-card .service-content p { font-size: 16.5px; line-height: 1.6; margin: 10px 0 18px; max-width: 370px; }
/* Card sections share rows across the cards of a grid row (title / intro / needs / services / link),
   so "Typical needs" and "Relevant services" start on one line whatever the intro length. */
@supports (grid-template-rows: subgrid) {
  .sector-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; }
  .sector-card .service-content { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-items: start; justify-items: start; }
  .sector-card .service-content .text-link { align-self: end; }
}
/* Card details: typical needs (check list) and relevant services (links to the service pages). */
.sector-card-label { color: var(--teal-ink); font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.sector-needs { font-size: 15.5px; gap: 8px; margin: 0 0 20px; }
.sector-needs li { --check: 20px; }
.sector-services { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.sector-services a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid #cfe2ea; border-radius: 16px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; transition: color .2s, border-color .2s, background-color .2s; }
.sector-services a:hover, .sector-services a:focus-visible { color: var(--teal-ink); border-color: var(--teal-ink); background: white; }
.sector-services a:focus-visible { outline-offset: 2px; }

/* Why Qualivision: dark copy / photo split (copy starts on the page content edge) */
.sectors-trust { display: grid; grid-template-columns: 47.5% 52.5%; min-height: 486px; background: var(--navy-dark); color: white; }
.sectors-trust-copy { display: flex; align-items: center; border-right: 2px solid #0a5c70; }
.sectors-trust-content { padding: var(--space-section) 40px var(--space-section) var(--edge); }
.sectors-trust .eyebrow { color: #3fd0de; }
.sectors-trust h2 { font-size: var(--h2); line-height: 1.14; letter-spacing: -.025em; margin-bottom: 18px; }
.sectors-trust .check-list { color: #eaf2f6; font-size: 18px; gap: 12px; margin-bottom: 30px; }
.sectors-trust .check-list li { --check: 28px; --check-bg: var(--cyan); }
.sectors-principles { gap: 20px; margin-bottom: 0; }
.sectors-principles strong { display: block; color: white; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.sectors-principles span { display: block; color: #c9dbe3; font-size: 17px; line-height: 1.45; margin-top: 3px; }
.sectors-trust-photo { --defer-bg: url('../images/about/about-hero-technician.webp'); position: relative; background: linear-gradient(90deg, rgb(0 25 39 / 25%), transparent 40%, rgb(0 25 39 / 45%) 85%), var(--bg-img, none) 96% center / cover; }
.sectors-trust-photo > p { position: absolute; right: var(--edge); bottom: 62px; color: white; text-transform: uppercase; letter-spacing: .16em; font-size: 19px; line-height: 1.5; font-weight: 550; }
.sectors-trust-photo > p::before, .sectors-trust-photo > p::after { content: ''; display: block; width: 46px; height: 3px; background: var(--teal); margin-block: 14px; }
.sectors-trust-photo > p::after { margin-bottom: 0; margin-top: 18px; }

/* From sector to solution: compact links to the eight service pages (icon, name, "Learn more"). */
.sectors-solutions { background: var(--surface); padding-block: var(--space-section); }
.sectors-solutions .section-heading > p:last-child:not(.eyebrow) { max-width: 720px; margin-inline: auto; }
.sectors-solutions-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 0; margin: 32px 0 0; }
.sectors-solutions-grid a { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 24px 22px; border: 1px solid #e4edf2; border-radius: var(--radius); background: white; color: var(--text); transition: border-color .2s, box-shadow .2s, translate .2s; }
.sectors-solutions-grid .service-icon { position: static; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 5px 12px rgb(7 47 68 / 6%); }
.sectors-solutions-grid .service-icon .icon { width: 32px; height: 32px; }
.sectors-solutions-grid strong { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.sectors-solutions-grid .text-link { margin-top: auto; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .sectors-solutions-grid a:hover { border-color: var(--teal); box-shadow: var(--shadow); translate: 0 -3px; }
}

/* Process (.method/.steps) */
.sectors-process { background: white; }

/* Light statistics strip (reuses .statistics-grid / .stat markup) */
.sectors-stats { padding-block: var(--space-strip); background: var(--surface); border-bottom: 1px solid #e3edf2; }
.sectors-stats .stat { --stat-num: 42px; padding-inline: 16px; }
.sectors-stats .stat>strong.stat-partner { font-size: 22px; line-height: 1.15; }
.sectors-stats .stat+.stat::before { border-color: #cfdee6; }
.sectors-stats .stat>.icon { color: var(--navy); width: 50px; height: 50px; margin-bottom: 10px; }
.sectors-stats .stat>strong { color: var(--text); }
.sectors-stats .stat p { color: var(--muted); font-size: 17px; margin-top: 8px; }

/* Testimonial */
.sectors-testimonial { position: relative; overflow: hidden; background: linear-gradient(180deg, #ffffff, #f4f9fc); min-height: 320px; display: flex; align-items: center; }
.sectors-testimonial-inner { position: relative; z-index: 1; display: flex; gap: 46px; align-items: flex-start; padding-block: 50px; }
.sectors-quote-mark { color: var(--teal); font-size: 150px; line-height: .8; font-weight: 800; font-family: Georgia, 'Times New Roman', serif; margin: 6px 0 0 34px; height: 70px; }
.sectors-testimonial figure { margin: 0; }
.sectors-testimonial blockquote { margin: 0; }
.sectors-testimonial blockquote p { color: var(--text); font-size: 23px; line-height: 1.6; letter-spacing: -.01em; }
.sectors-testimonial figcaption { margin-top: 26px; display: grid; gap: 4px; font-size: 16px; }
.sectors-testimonial figcaption strong { color: var(--text); }
.sectors-testimonial figcaption span { color: var(--muted); }
.sectors-dots { position: absolute; right: 150px; bottom: 44px; display: flex; gap: 8px; align-items: center; }
.sectors-dots i { width: 22px; height: 3px; border-radius: 2px; background: #c6d6de; }
.sectors-dots i:first-child { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.sectors-watermark { position: absolute; right: -40px; top: -40px; width: 600px; height: 400px; overflow: hidden; opacity: .13; mix-blend-mode: multiply; }
.sectors-watermark img { width: 1700px; max-width: none; transform: translate(-50px, -45px); }

/* Road CTA (reuses .project-cta) */
.sectors-cta { border-top: 0; }

.sectors-page .footer-column a[aria-current] { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1350px) and (min-width: 1101px) {
  .sector-card .service-content { padding-inline: 26px; }
  .sector-card .service-icon { left: 26px; }
  .sector-card .service-content p { font-size: 15.5px; }
  .sectors-solutions-grid a { padding-inline: 20px; }
  .sectors-solutions-grid strong { font-size: 17px; }
}
@media (max-width: 1100px) {
  .sectors-hero h1 { font-size: 46px; }
  .sectors-hero .button { padding-inline: 22px; font-size: 15px; }
  .sectors-hero-copy > p:not(.eyebrow) { font-size: 17px; max-width: 480px; }
  .sectors-hero-statement { font-size: 14px; bottom: 30px; }
  .sectors-intro .section-heading br { display: none; }
  .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sector-card .service-photo { height: auto; aspect-ratio: 2.4 / 1; }
  .sectors-trust { grid-template-columns: 1fr 1fr; }
  .sectors-trust-content { padding-right: 28px; }
  .sectors-trust h2 br { display: none; }
  .sectors-trust .check-list { font-size: 16px; }
  .sectors-trust .button { font-size: 15px; }
  .sectors-trust-photo > p { font-size: 15px; right: 24px; bottom: 36px; }
  .sectors-stats .stat { --stat-num: 36px; }
  .sectors-stats .stat p { font-size: 15px; }
  .sectors-testimonial-inner { gap: 34px; }
  .sectors-quote-mark { margin-left: 0; font-size: 120px; }
  .sectors-testimonial blockquote p { font-size: 20px; }
  .sectors-testimonial blockquote br { display: none; }
  .sectors-dots { right: 40px; }
  .sectors-cta p br { display: none; }
  .sectors-principles strong { font-size: 18px; }
  .sectors-principles span { font-size: 15.5px; }
  .sectors-solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sectors-process .steps p br { display: none; }
}
/* Narrow tablets: the two hero buttons and the statement no longer fit side by side, so the
   statement moves below the copy (same arrangement as on phones). */
@media (max-width: 860px) and (min-width: 641px) {
  .sectors-hero { height: auto; min-height: 547px; }
  .sectors-hero-inner { padding-bottom: 180px; }
}
@media (max-width: 760px) {
  .sectors-trust { grid-template-columns: 1fr; }
  .sectors-trust-copy { border-right: 0; }
  .sectors-trust-content { padding-right: var(--edge); }
  .sectors-trust-photo { min-height: 380px; }
  .sectors-stats .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .sectors-stats .stat { min-width: 0; overflow-wrap: anywhere; }
  .sectors-stats .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .sectors-hero { height: auto; min-height: 660px; background-image: linear-gradient(90deg, rgb(0 27 43 / 95%), rgb(0 27 43 / 70%)), url('../images/sectors/sector-manufacturing.webp'); background-position: 60% center; }
  .sectors-hero-inner { padding-top: 28px; padding-bottom: 190px; }
  .sectors-breadcrumb { font-size: 13px; margin-bottom: 28px; }
  .sectors-hero .eyebrow { font-size: 13px; }
  .sectors-hero h1 { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.12; }
  .sectors-hero h1 br { display: none; }
  .sectors-hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.55; }
  .sectors-hero .hero-actions { flex-wrap: wrap; gap: 13px; margin-top: 24px; }
  .sectors-hero .button { min-height: 49px; font-size: 13px; padding-inline: 19px; }
  .sectors-hero-statement { font-size: 12.5px; bottom: 28px; }
  .sectors-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
  .sector-card .service-photo { aspect-ratio: 2.1 / 1; }
  .sector-card .service-content { padding: 48px 25px 22px; }
  .sector-card .service-icon { left: 25px; top: -34px; padding: 14px; }
  .sector-card .service-icon .icon { width: 36px; height: 36px; }
  .sector-card .service-content h3 { font-size: 21px; }
  .sector-card .service-content p { font-size: 15.5px; }
  .sectors-trust .button { font-size: 14px; min-height: var(--btn-sm); }
  .sectors-trust-photo { min-height: 300px; }
  .sectors-trust-photo > p { font-size: 13px; }
  .sectors-stats .stat>.icon { width: 40px; height: 40px; }
  .sectors-stats .stat { --stat-num: 31px; }
  .sectors-stats .stat p { font-size: 14px; }
  .sectors-testimonial-inner { flex-direction: column; gap: 6px; padding-block: 38px 64px; }
  .sectors-quote-mark { font-size: 100px; height: 50px; }
  .sectors-testimonial blockquote p { font-size: 18px; }
  .sectors-watermark { width: 300px; height: 260px; right: -120px; top: auto; bottom: -40px; }
  .sectors-dots { right: auto; left: 0; bottom: 34px; }
  .sectors-cta .eyebrow { letter-spacing: .1em; }
  .sectors-intro .section-heading br, .sectors-solutions .section-heading br, .sectors-trust h2 br { display: none; }
  .sector-needs { font-size: 15px; }
  .sectors-principles strong { font-size: 17px; }
  .sectors-principles span { font-size: 15px; }
  .sectors-solutions-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .sectors-solutions-grid a { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
  .sectors-solutions-grid .service-icon { width: 46px; height: 46px; flex-shrink: 0; }
  .sectors-solutions-grid .service-icon .icon { width: 26px; height: 26px; }
  .sectors-solutions-grid strong { font-size: 16px; flex: 1; }
  .sectors-solutions-grid .text-link { margin: 0; font-size: 0; gap: 0; }
  .sectors-solutions-grid .text-link .icon { width: 22px; height: 22px; }
}
