/* Modèle commun des 7 pages Expertises — volontairement aéré et réutilisable. */
.expertise-page main { --expertise-accent: var(--color-blue); }
.expertise-section { padding: clamp(78px, 8vw, 116px) 0; }
.expertise-kicker { margin: 0 0 14px; color: var(--expertise-accent); font-size: .75rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .17em; font-weight: 850; }
.expertise-kicker--light { color: #ffc39b; }
.expertise-heading { max-width: 760px; margin-bottom: clamp(38px, 5vw, 62px); }
.expertise-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.expertise-heading h2 { margin: 0; color: var(--color-navy); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.07; letter-spacing: -.045em; }
.expertise-heading > p:not(.expertise-kicker) { max-width: 680px; margin: 20px 0 0; color: var(--color-muted); line-height: 1.85; }

/* Hero */
.expertise-hero { overflow: hidden; background: linear-gradient(145deg, #f8fbfd 0%, #fff 58%, color-mix(in srgb, var(--expertise-accent) 8%, white)); border-bottom: 1px solid var(--color-line); }
.expertise-hero__grid { min-height: clamp(560px, 68vh, 720px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: clamp(55px, 8vw, 120px); align-items: center; padding-block: clamp(66px, 7vw, 95px); }
.expertise-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 42px; color: #8292a3; font-size: .82rem; }
.expertise-breadcrumb a:hover { color: var(--expertise-accent); }
.expertise-hero__copy { max-width: 690px; }
.expertise-hero h1 { margin: 0; color: var(--color-navy); font-size: clamp(3rem, 5.1vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.expertise-hero__lead { max-width: 650px; margin: 27px 0 0; color: var(--color-muted); font-size: clamp(1.02rem, 1.35vw, 1.17rem); line-height: 1.82; }
.expertise-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.expertise-btn--soft { border: 1px solid var(--color-line); background: #fff; color: var(--color-navy); }
.expertise-btn--soft:hover { background: #f6f9fc; }
.expertise-hero__media { min-height: 455px; position: relative; overflow: hidden; border-radius: 27px; background-image: linear-gradient(180deg, transparent 45%, rgb(7 27 50 / 38%)), var(--expertise-image), linear-gradient(145deg, color-mix(in srgb, var(--expertise-accent) 24%, white), color-mix(in srgb, var(--expertise-accent) 70%, #0b2545)); background-size: cover; background-position: center; box-shadow: 0 28px 75px rgb(7 27 50 / 14%); }
.expertise-hero__media::after { content: ''; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 26%); border-radius: inherit; pointer-events: none; }
.expertise-hero__code { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 9px; background: rgb(255 255 255 / 94%); color: var(--expertise-accent); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }

/* Services */
.expertise-services { background: #fff; }
.expertise-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.expertise-service { display: grid; grid-template-columns: minmax(170px, .72fr) minmax(0, 1.28fr); min-height: 255px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgb(9 36 65 / 4%); }
.expertise-service__media { position: relative; min-height: 255px; background-image: linear-gradient(180deg, transparent, rgb(7 27 50 / 25%)), var(--expertise-image), linear-gradient(145deg, color-mix(in srgb, var(--expertise-accent) 14%, #eef5f9), color-mix(in srgb, var(--expertise-accent) 54%, #173b58)); background-size: cover; background-position: center; }
.expertise-service__media span { position: absolute; left: 17px; bottom: 15px; color: rgb(255 255 255 / 90%); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.expertise-service__body { align-self: center; padding: clamp(27px, 3vw, 40px); }
.expertise-service h3 { margin: 0; color: var(--color-navy); font-size: clamp(1.15rem, 1.7vw, 1.42rem); line-height: 1.28; }
.expertise-service p { margin: 14px 0 0; color: var(--color-muted); font-size: .93rem; line-height: 1.78; }

/* Approche */
.expertise-strengths { background: #f6f9fc; border-block: 1px solid #edf1f5; }
.expertise-strengths__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(60px, 8vw, 120px); align-items: center; }
.expertise-strengths__intro { max-width: 610px; }
.expertise-strengths__intro h2 { margin: 0; color: var(--color-navy); font-size: clamp(2.1rem, 4vw, 3.55rem); line-height: 1.08; letter-spacing: -.045em; }
.expertise-strengths__intro > p:not(.expertise-kicker) { margin: 23px 0 0; color: var(--color-muted); line-height: 1.85; }
.expertise-strengths__list { border-top: 1px solid var(--color-line); }
.expertise-strengths__list article { display: grid; grid-template-columns: 55px 1fr; gap: 18px; align-items: center; min-height: 100px; padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.expertise-strengths__list span { color: var(--expertise-accent); font-size: .76rem; font-weight: 900; letter-spacing: .1em; }
.expertise-strengths__list h3 { margin: 0; color: var(--color-navy); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

/* Réalisations liées : apparaît automatiquement dès que projets.js contient des projets associés. */
.expertise-projects { background: #fff; }
/* Cartes de réalisations liées : mêmes photos, mise en page et textes que sur l'accueil.
   Ces règles sont limitées aux pages Expertises ; les autres pages ne changent pas. */
.expertise-projects .projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 0; }
.expertise-projects .project-card { overflow: hidden; border: 1px solid var(--color-line); border-radius: 18px; background: #fff; }
.expertise-projects .project-card__media { display: block; height: 250px; background-image: linear-gradient(180deg, transparent, rgb(11 37 69 / 18%)), var(--project-image), linear-gradient(135deg, #dae8f1, #668fab); background-size: cover; background-position: center; }
.expertise-projects .project-card__body { display: block; padding: 23px; }
.expertise-projects .project-card__sector { margin: 0 0 7px; color: var(--color-accent); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 850; }
.expertise-projects .project-card h3 { margin: 0; color: var(--color-navy); font-size: 1.18rem; line-height: 1.35; }
.expertise-projects .project-card__location { color: var(--color-blue); font-size: .84rem; }
.expertise-projects .project-card__body p { margin: 11px 0 0; color: var(--color-muted); font-size: .9rem; }
.expertise-projects .project-card__action { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--color-blue); font-size: .82rem; font-weight: 800; }
@media (max-width: 980px) {
  .expertise-projects .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .expertise-projects .projects-grid { grid-template-columns: 1fr; }
  .expertise-projects .project-card__media { height: 240px; }
}

/* CTA */
.expertise-cta { padding: clamp(66px, 7vw, 92px) 0; background: linear-gradient(115deg, var(--color-navy-deep), color-mix(in srgb, var(--expertise-accent) 38%, #0b2545)); color: #fff; }
.expertise-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 45px; align-items: center; }
.expertise-cta h2 { margin: 0; color: #fff; font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.expertise-cta p:not(.expertise-kicker) { max-width: 680px; margin: 17px 0 0; color: #c6d6e4; line-height: 1.75; }
.expertise-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.expertise-btn--outline { border: 1px solid rgb(255 255 255 / 30%); background: transparent; color: #fff; }
.expertise-btn--outline:hover { background: rgb(255 255 255 / 8%); }

@media(max-width: 1050px) {
  .expertise-hero__grid { grid-template-columns: 1fr; min-height: auto; gap: 48px; }
  .expertise-hero__media { min-height: 430px; }
  .expertise-services__grid { grid-template-columns: 1fr; }
  .expertise-strengths__grid { grid-template-columns: 1fr; gap: 50px; }
}
@media(max-width: 760px) {
  .expertise-section { padding: 72px 0; }
  .expertise-breadcrumb { margin-bottom: 30px; }
  .expertise-hero__grid { padding-block: 54px 70px; }
  .expertise-hero__media { min-height: 330px; border-radius: 21px; }
  .expertise-service { grid-template-columns: 1fr; }
  .expertise-service__media { min-height: 230px; }
  .expertise-heading--split { grid-template-columns: 1fr; align-items: start; }
  .expertise-cta__inner { grid-template-columns: 1fr; }
  .expertise-cta__actions { justify-content: flex-start; }
}
@media(max-width: 520px) {
  .expertise-hero h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .expertise-hero__actions { flex-direction: column; }
  .expertise-hero__actions .btn, .expertise-cta__actions .btn { width: 100%; }
  .expertise-cta__actions { flex-direction: column; }
}
