/* ============================================================
   IA - section "Notre approche" : format distinct du site
   3 cartes horizontales numérotées avec chiffre filigrane
   ============================================================ */

.ia-approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.ia-approach-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 30px 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ia-approach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.ia-approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -22px rgba(71, 153, 163, 0.45);
  border-color: rgba(87, 199, 212, 0.5);
}
.ia-approach-card:hover::before { transform: scaleX(1); }

.ia-approach-num {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.10;
  pointer-events: none;
}

.ia-approach-step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.ia-approach-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--grey);
  margin: 0 0 12px;
}
.ia-approach-card p {
  color: var(--text-light);
  line-height: 1.65;
  font-size: 0.96rem;
  margin: 0;
}

@media (max-width: 860px) {
  .ia-approach { grid-template-columns: 1fr; }
}

/* ============================================================
   IA - schéma hub & spoke : l'IA au centre, ses capacités autour
   ============================================================ */
.ia-hub {
  position: relative;
  margin: 64px auto 0;
  min-height: 560px;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* traits pointillés reliant les cartes au centre */
.ia-hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.ia-hub-lines line {
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
}

/* point rond posé exactement au bout de chaque branche
   (mêmes coordonnées % que les <line> du SVG -> alignement garanti) */
.ia-hub-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(87, 199, 212, 0.18);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.ia-hub-dot--tl { left: 37%; top: 25%; }
.ia-hub-dot--tr { left: 63%; top: 25%; }
.ia-hub-dot--bl { left: 37%; top: 75%; }
.ia-hub-dot--br { left: 63%; top: 75%; }

.ia-hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 56px 0;
  width: 100%;
}
.ia-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 32px;
  box-shadow: 0 12px 34px -18px rgba(71, 153, 163, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ia-hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -20px rgba(71, 153, 163, 0.5);
  border-color: rgba(87, 199, 212, 0.5);
}
/* colonne gauche : cartes en col 1, colonne droite : col 3 */
.ia-hub-card--tl { grid-column: 1; grid-row: 1; }
.ia-hub-card--bl { grid-column: 1; grid-row: 2; }
.ia-hub-card--tr { grid-column: 3; grid-row: 1; }
.ia-hub-card--br { grid-column: 3; grid-row: 2; }

.ia-hub-ic {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cyan-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ia-hub-ic img { width: 32px; height: 32px; }
.ia-hub-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--grey);
  margin: 4px 0 8px;
}
.ia-hub-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* nœud central */
.ia-hub-core {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
  width: 260px;
  height: 260px;
  padding: 0 26px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--grey), #4a4a4a);
  border: 3px solid var(--cyan);
  box-shadow: 0 18px 50px -16px rgba(71, 153, 163, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
}
.ia-hub-core img {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}
.ia-hub-core strong {
  font-size: 1.4rem;
  font-weight: 700;
}
.ia-hub-core span {
  font-size: 0.86rem;
  color: var(--cyan);
  margin-top: 6px;
  white-space: nowrap;
}

/* palier laptop/tablette large : on resserre le centre, on réduit la hauteur */
@media (max-width: 1100px) {
  .ia-hub { min-height: 480px; }
  .ia-hub-lines, .ia-hub-dot { display: none; }
  .ia-hub-grid { grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 40px 0; }
  .ia-hub-card { padding: 22px 22px; gap: 16px; }
  .ia-hub-ic { width: 54px; height: 54px; }
  .ia-hub-ic img { width: 28px; height: 28px; }
  .ia-hub-card h3 { font-size: 1.1rem; }
  .ia-hub-card p { font-size: 0.88rem; }
  .ia-hub-core { width: 210px; height: 210px; }
  .ia-hub-core strong { font-size: 1.2rem; }
}

/* mobile / tablette : empilement vertical, nœud en tête */
@media (max-width: 920px) {
  .ia-hub { min-height: 0; margin-top: 44px; }
  .ia-hub-lines { display: none; }
  .ia-hub-dot { display: none; }
  .ia-hub-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
    justify-items: stretch;
    max-width: 560px;
    margin: 0 auto;
  }
  .ia-hub-card {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: 24px 26px;
  }
  .ia-hub-core {
    grid-column: 1;
    grid-row: auto;
    order: -1;
    width: 210px;
    height: 210px;
    padding: 0 18px;
    margin-bottom: 8px;
  }
  .ia-hub-core img { width: 46px; height: 46px; margin-bottom: 10px; }
  .ia-hub-core strong { font-size: 1.2rem; }
  .ia-hub-core span { font-size: 0.78rem; }
}
