/* assets/css/pages/expertises.css */

:root{
  --green: #2f9e44;
  --green-dark: #25853a;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #7c7c7c;
  --panel: #ffffff;
  --shadow: 0 10px 26px rgba(0,0,0,.10);
  --border-strong: rgba(0,0,0,.45);
  --border-soft: rgba(0,0,0,.14);
}

.expertises-page{
  background: var(--bg);
  margin: 0;
  padding: 0;
}

/* HERO */
.expert-hero{
  position: relative;
  height: 285px;
  overflow: hidden;
  background: #e9eef3;
}

.expert-hero__bg{
  position: absolute;
  inset: 0;
  background: url("/assets/images/service-hero.png") center / cover no-repeat;
}

.expert-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.62);
}

.expert-hero__inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px 18px;
  gap: 16px;
}

.expert-hero__title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.t-dark{ color: #111827; }
.t-green{ color: var(--green); }

.expert-hero__subtitle{
  margin: 0;
  max-width: 880px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.expert-hero__subtitle .hl{
  color: var(--green);
  font-weight: 900;
}

.btn-back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(42,166,80,.18);
  transition: transform .18s ease, background .18s ease;
}

.btn-back:hover{
  transform: translateY(-2px);
  background: var(--green-dark);
}

.btn-back__ico{
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

/* BODY */
.expert-body{
  padding: 20px 0 18px;
}

.expert-wrap{
  max-width: 980px;
}

.expert-section{
  margin-bottom: 18px;
}

/* Section titles (green underline like prototype) */
.section-title{
  margin: 18px 0 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Approach cards */
.approach-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 6px;
}

.approach-card{
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 120px;
}

.approach-card__img img{
  width: 100%;
  height: 95px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.approach-card__txt{
  font-size: 15px;
  font-weight: 800;
  color: #2b2f36;
  line-height: 1.25;
  text-align: center;
}

/* Assist cards */
.assist-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.assist-card{
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 95px;
}

.assist-card__left{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.assist-ico{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(42,166,80,.12);
  display: grid;
  place-items: center;
  color: var(--green);
}

.assist-ico svg{
  width: 20px;
  height: 20px;
}

.assist-title{
  font-size: 12px;
  font-weight: 900;
  color: #1f2937;
  line-height: 1.2;
}

.assist-card__right{
  font-size: 11px;
  color: #7a7a7a;
  line-height: 1.5;
  font-weight: 600;
}

/* Wide assist block */
.assist-wide{
  margin: 18px auto 0;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: center;
}

.assist-ico--big{
  width: 42px;
  height: 42px;
}

.assist-ico--big svg{
  width: 22px;
  height: 22px;
}

.assist-wide__left{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.assist-wide__title{
  font-size: 12px;
  font-weight: 900;
  color: #1f2937;
  line-height: 1.25;
}

.assist-wide__right{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  justify-items: center;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 700;
}

.pill{
  text-align: center;
}

/* Conformité cards */
.conf-grid{
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.conf-grid--3{
  grid-template-columns: repeat(3, 1fr);
}

.conf-grid--2{
  grid-template-columns: 1fr 1fr;
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}

.conf-card{
  background: #ffffff;
  border: 1px solid rgba(42,166,80,.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.conf-card img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.conf-card--circle img{
  object-fit: contain;
  background: #ffffff;
}

.conf-card__cap{
  padding: 10px 10px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 900;
  line-height: 1.2;
}

/* Bottom band */
.expert-band{
  margin-top: 14px;
  background: #2f944a;
  padding: 18px 0 20px;
}

.expert-band__inner{
  max-width: 980px;
  text-align: center;
}

.expert-band__inner p{
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.expert-band__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 22px;
  border-radius: 4px;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.10);
  transition: transform .18s ease;
}

.expert-band__btn:hover{
  transform: translateY(-2px);
}

/* ===========================
   Animations (modern, keep prototype)
   =========================== */

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

.expert-hero.is-animate .expert-hero__bg{
  transform: scale(1.06);
  animation: heroZoom 1.2s ease forwards;
}

.expert-hero.is-animate .expert-hero__overlay{
  opacity: 0;
  animation: heroOverlayIn .9s ease forwards;
}

.expert-hero.is-animate .expert-hero__title{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s ease .12s forwards;
}

.expert-hero.is-animate .expert-hero__subtitle{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s ease .24s forwards;
}

.expert-hero.is-animate .btn-back{
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .75s ease .32s forwards;
}

.reveal{
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .85s ease forwards;
}

.panel-reveal{
  opacity: 0;
  transform: translateY(14px) scale(.99);
  animation: panelIn .75s ease .12s forwards;
}

.approach-card,
.assist-card,
.assist-wide,
.conf-card{
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.approach-card:hover,
.assist-card:hover,
.assist-wide:hover,
.conf-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
}

/* Keyframes */
@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes panelIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroZoom{
  to{ transform: scale(1); }
}

@keyframes heroOverlayIn{
  to{ opacity: 1; }
}

/* Responsive */
@media (max-width: 920px){
  .expert-hero{ height: 270px; }
  .expert-hero__title{ font-size: 34px; }
  .expert-hero__subtitle{ font-size: 12px; }

  .approach-grid{ grid-template-columns: 1fr; }
  .approach-card{ grid-template-columns: 200px 1fr; }

  .assist-grid{ grid-template-columns: 1fr; }
  .assist-card{ grid-template-columns: 200px 1fr; }

  .assist-wide{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .assist-wide__right{ grid-template-columns: 1fr 1fr; }

  .conf-grid--3{ grid-template-columns: 1fr; }
  .conf-grid--2{ grid-template-columns: 1fr; max-width: 100%; }
}

@media (max-width: 768px){
  .expert-hero{
    height: 220px;
    padding: 14px 16px;
  }
  .expert-hero__inner{
    padding: 0;
    gap: 12px;
    justify-content: flex-start;
    padding-top: 16px;
  }
  .expert-hero__title{
    font-size: 28px;
    margin: 0 0 6px;
  }
  .expert-hero__subtitle{
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
  }
  .btn-back{
    font-size: 11px;
    padding: 0 16px;
    height: 32px;
    margin-top: 8px;
  }

  .approach-grid{ grid-template-columns: 1fr; }
  .approach-card{ grid-template-columns: 120px 1fr; padding: 12px; }
  .approach-card__img img{ height: 90px; }

  .assist-card{ grid-template-columns: 1fr; }
  .assist-card__left{ grid-template-columns: 36px 1fr; justify-content: center; }
  .assist-ico{ width: 36px; height: 36px; }
  .assist-title{ font-size: 14px; }
  .assist-card__right{ font-size: 12px; }

  .conf-grid--3{ grid-template-columns: 1fr; }
  .conf-grid--2{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .expert-hero{ height: 200px; padding: 12px 16px; }
  .expert-hero__inner{ padding: 0; gap: 10px; padding-top: 14px; }
  .expert-hero__title{ font-size: 22px; margin-bottom: 4px; }
  .expert-hero__subtitle{ font-size: 10px; line-height: 1.35; }
  .btn-back{ font-size: 10px; padding: 0 14px; height: 28px; margin-top: 6px; }

  .approach-card{
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px;
  }
  .approach-card__img img{ height: 80px; }

  .assist-card{
    grid-template-columns: 1fr;
  }
  .assist-card__left{
    grid-template-columns: 32px 1fr;
    justify-content: center;
  }
  .assist-ico{ width: 32px; height: 32px; }
  .assist-title{ font-size: 13px; }
  .assist-card__right{ font-size: 11px; }
}