/* ============================================================
   Section 03 — preoccupations · Figma node 5369:19545
   Desktop 1440 : eyebrow → titre 54 → intro → grille 2×3 de
   préoccupations séparées par des filets (carrés noirs 7px aux
   intersections) → note de conclusion.
   ============================================================ */

.preoccupations {
  font-family: var(--font-sans);
  padding-inline: clamp(20px, 8.33vw, 120px);
  color: var(--color-ink);
}

.preoccupations__container {
  max-width: var(--container-max); /* grille mesurée 1201px */
  margin-inline: auto;
}

/* ---- En-tête ------------------------------------------------ */

.preoccupations__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Eyebrow : pilule blanche + pilule dégradée interne + texte dégradé */
.preoccupations__eyebrow {
  margin: 0;
  display: inline-flex;
  padding: 3px;
  background: var(--color-white);
  border: 1px solid rgba(229, 231, 233, 0.5); /* --color-border @50% */
  border-radius: var(--radius-pill);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
}

.preoccupations__eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 24px;
  border-radius: var(--radius-pill);
  /* hors tokens: mesuré Figma (dégradé pêche → lilas) */
  background: linear-gradient(90deg, #fff1ed 0%, #f0efff 100%);
}

.preoccupations__eyebrow-text {
  font-size: var(--text-eyebrow);
  line-height: var(--text-eyebrow--line-height);
  font-weight: var(--text-eyebrow--font-weight);
  letter-spacing: var(--text-eyebrow--letter-spacing);
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-accent-coral) 0%, var(--color-primary-vivid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preoccupations__title {
  margin: 19px 0 0;
  max-width: 865px;
  font-size: clamp(32px, 4.5vw, var(--text-h2));
  line-height: 1.04; /* 56px @ 54px */
  font-weight: var(--text-h2--font-weight);
  letter-spacing: var(--text-h2--letter-spacing);
  color: #2d2d2d; /* hors tokens: mesuré Figma */
}

.preoccupations__intro {
  margin: 34px 0 0;
  max-width: 597px;
  font-size: var(--text-body);
  line-height: 22px; /* hors tokens: mesuré Figma (Body 16 → lh 22 ici) */
  font-weight: var(--text-body--font-weight);
  color: rgba(17, 17, 17, 0.8); /* --color-neutral-950 @80% */
}

.preoccupations__intro strong {
  font-weight: 500; /* Manrope Medium */
}

/* ---- Grille 2×3 --------------------------------------------- */

.preoccupations__grid {
  list-style: none;
  margin: 67px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Rangée 2 (valeurs par défaut) — mesures Figma */
.preoccupations__item {
  position: relative;
  padding: 40px 20px 22px 42px;
}

/* Rangée 1 */
.preoccupations__item:nth-child(-n + 3) {
  padding-top: 11px;
  padding-bottom: 51px;
}

/* Filets verticaux (colonnes 2 et 3) et horizontal (rangée 2) */
.preoccupations__item:nth-child(3n + 2),
.preoccupations__item:nth-child(3n) {
  border-left: 1px solid var(--color-border);
}

.preoccupations__item:nth-child(n + 4) {
  border-top: 1px solid var(--color-border);
}

/* Carrés noirs 7px aux intersections des filets */
.preoccupations__item:nth-child(5)::before,
.preoccupations__item:nth-child(6)::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--color-ink-strong);
}

/* Picto : cadre 60px + carte interne 52px + icône 24px */
.preoccupations__picto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--color-border);
  border-radius: 15px; /* hors tokens: mesuré Figma */
}

.preoccupations__picto-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.3); /* --color-white @30% */
  border: 1px solid var(--color-border);
  border-radius: 15px; /* hors tokens: mesuré Figma */
  box-shadow: 5px 10px 30px 0px rgba(0, 0, 0, 0.07);
}

.preoccupations__item-title {
  margin: 24px 0 0;
  max-width: 340px; /* retour 13/08 : + de largeur, le « » ne passe plus seul à la ligne */
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: var(--text-h6);
  line-height: 32px; /* hors tokens: mesuré Figma (token h6 = 28px) */
  font-weight: var(--text-h6--font-weight);
  letter-spacing: var(--text-h6--letter-spacing);
  color: var(--color-border-dark); /* #27292E — seul token exact pour ce texte */
}

.preoccupations__item-text {
  margin: 8px 0 0;
  max-width: 325px;
  font-family: var(--font-display);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  font-weight: var(--text-body--font-weight);
  color: rgba(38, 41, 46, 0.7); /* --color-ink @70% */
}

/* ---- Note de conclusion ------------------------------------- */

.preoccupations__note {
  margin: 67px auto 0;
  max-width: 720px;
  min-height: 46px; /* retour 13/08 : respiration verticale (34 avant) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px; /* retour 13/08 : + de padding en hauteur (5px avant) */
  background: var(--color-white);
  border: 1px solid rgba(229, 231, 233, 0.5); /* --color-border @50% */
  border-radius: var(--radius-pill);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  text-align: center;
  color: rgba(38, 41, 46, 0.7); /* --color-ink @70% */
}

.preoccupations__note strong {
  font-weight: 500; /* Manrope Medium */
}

/* ---- Responsive (maquette desktop-only → adaptation) --------- */

@media (max-width: 1024px) {
  .preoccupations__item {
    padding-left: 24px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .preoccupations__grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .preoccupations__item,
  .preoccupations__item:nth-child(-n + 3) {
    padding: 32px 0;
    border-left: none;
  }

  .preoccupations__item:nth-child(n + 2) {
    border-top: 1px solid var(--color-border);
  }

  .preoccupations__item:first-child {
    padding-top: 0;
  }

  .preoccupations__item:nth-child(5)::before,
  .preoccupations__item:nth-child(6)::before {
    display: none; /* marqueurs d'intersection sans objet en 1 colonne */
  }

  .preoccupations__note {
    margin-top: 48px;
    border-radius: var(--radius-xl); /* pilule → capsule multi-lignes */
  }
}


/* --- retours 13/08 ------------------------------------------------ */
.preoccupations__picto-inner .lucide {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-ink);
}

.preoccupations__note {
  white-space: nowrap; /* retour 13/08 : une seule ligne comme la maquette */
}

@media (max-width: 900px) {
  .preoccupations__note { white-space: normal; }
}
