/* =========================================================================
   Caparel — section regroupée de la page d'accueil
   Remplace : « Nos services », « Comment ça se passe ? »,
              « Qui sommes-nous » et « Des auxiliaires de vie recrutées… »
   Toutes les classes sont préfixées .cp- pour éviter les conflits.
   Polices : Plus Jakarta Sans (700, 800), Atkinson Hyperlegible (400, 700),
             Kalam (700) — voir apercu.html pour le lien Google Fonts.
   ========================================================================= */

.cp {
  --cp-navy: #1B2B57;
  --cp-navy-deep: #1E2A55;
  --cp-text: #354262;
  --cp-teal: #12877D;
  --cp-teal-text: #0F7F76;
  --cp-teal-check: #2C7A73;
  --cp-coral: #E5604A;
  --cp-coral-text: #C2452F;
  --cp-blue: #3C78C2;
  --cp-blue-text: #2F64A8;
  --cp-gold: #F2C14E;
  --cp-cream: #FFF6EC;
  --cp-line: #F1E4D3;
  --cp-trail: #EE8B76;
  --cp-teal-soft: #EEF6F4;
  --cp-amber-soft: #FDF4E6;
  --cp-blue-soft: #EDF3FA;
  --cp-rose-soft: #FCEFEC;
  --cp-deco-teal: #DDF3EF;
  --cp-deco-pink: #FBE3EA;
  --cp-shadow: 0 10px 24px rgba(30, 42, 85, 0.12);

  --cp-font-title: 'Plus Jakarta Sans', system-ui, sans-serif;
  --cp-font-body: 'Atkinson Hyperlegible', 'Trebuchet MS', sans-serif;
  --cp-font-hand: 'Kalam', cursive;

  font-family: var(--cp-font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--cp-text);
}

.cp *,
.cp *::before,
.cp *::after { box-sizing: border-box; }

.cp h2, .cp h3, .cp p, .cp ul, .cp ol { margin: 0; }
.cp ul, .cp ol { padding: 0; list-style: none; }
.cp img { display: block; max-width: 100%; }
.cp svg { display: block; }

/* ---------- Structure commune ---------- */

.cp-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.cp-container--narrow { max-width: 1144px; } /* 1080 px de contenu */

.cp-head { display: flex; flex-direction: column; gap: 16px; }
.cp-head--center { align-items: center; text-align: center; }

.cp-h2 {
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cp-navy);
}

.cp-h3 {
  font-family: var(--cp-font-title);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
  color: var(--cp-navy);
}

.cp-lead { max-width: 680px; font-size: 22px; }

/* ---------- 1. Nos services ---------- */

.cp-services { padding: 96px 0 88px; background: #FFFFFF; }
.cp-services .cp-head { margin-bottom: 56px; }

.cp-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cp-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-radius: 24px;
}
.cp-tile--teal  { background: var(--cp-teal-soft);  --cp-icon: #2C7A73; }
.cp-tile--amber { background: var(--cp-amber-soft); --cp-icon: #A0600F; }
.cp-tile--blue  { background: var(--cp-blue-soft);  --cp-icon: #2E5F99; }
.cp-tile--rose  { background: var(--cp-rose-soft);  --cp-icon: #A9472F; }

.cp-tile__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #FFFFFF;
  color: var(--cp-icon);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-tile__icon svg { width: 36px; height: 36px; }

/* ---------- 2. Comment ça se passe ? (version ludique) ---------- */

.cp-steps {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background: var(--cp-cream);
}

.cp-steps__deco { position: absolute; border-radius: 50%; pointer-events: none; }
.cp-steps__deco--top    { top: -160px; right: -140px; width: 440px; height: 440px; background: var(--cp-deco-teal); }
.cp-steps__deco--bottom { bottom: -180px; left: -160px; width: 460px; height: 460px; background: var(--cp-deco-pink); }

.cp-steps .cp-container { position: relative; }
.cp-steps .cp-head { margin-bottom: 64px; }

.cp-pill {
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--cp-teal);
  color: #FFFFFF;
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cp-step--teal  { --cp-accent: var(--cp-teal);  --cp-accent-text: var(--cp-teal-text); }
.cp-step--coral { --cp-accent: var(--cp-coral); --cp-accent-text: var(--cp-coral-text); }
.cp-step--blue  { --cp-accent: var(--cp-blue);  --cp-accent-text: var(--cp-blue-text); }

.cp-step__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.cp-step--reverse .cp-step__row { flex-direction: row-reverse; }

/* Illustration : avatar(s) + bulle + pastille */
.cp-scene {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  height: 290px;
}

.cp-bubble {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 250px;
  padding: 12px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(30, 42, 85, 0.12);
  transform: rotate(-3deg);
  font-family: var(--cp-font-hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--cp-navy-deep);
}
.cp-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 96px;
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  transform: rotate(45deg);
}
.cp-bubble--right { left: auto; right: 0; transform: rotate(3deg); }
.cp-bubble--right::after { left: auto; right: 40px; }

.cp-avatar {
  position: absolute;
  bottom: 0;
  border: 8px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: var(--cp-shadow);
}
.cp-avatar--lg     { left: 50px;  width: 200px; height: 200px; }
.cp-avatar--duo-a  { left: 0;     width: 170px; height: 170px; border-width: 7px; }
.cp-avatar--duo-b  { left: 130px; width: 170px; height: 170px; border-width: 7px; }

.cp-badge {
  position: absolute;
  bottom: 6px;
  right: 34px;
  width: 64px;
  height: 64px;
  border: 5px solid #FFFFFF;
  border-radius: 50%;
  background: var(--cp-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-badge svg { width: 28px; height: 28px; }
.cp-badge--heart { top: 76px; left: 118px; right: auto; bottom: auto; }

/* Carte de l'étape */
.cp-card {
  position: relative;
  flex: 0 1 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 52px 36px 36px;
  background: #FFFFFF;
  border: 1.5px solid var(--cp-line);
  border-radius: 28px;
}
.cp-card__num {
  position: absolute;
  top: -32px;
  left: 32px;
  width: 64px;
  height: 64px;
  border: 5px solid var(--cp-cream);
  border-radius: 50%;
  background: var(--cp-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 28px;
}
.cp-kicker {
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-accent-text);
}
.cp-card .cp-h3 { font-size: 27px; }

/* Chemin en pointillés entre les étapes (desktop) */
.cp-trail { width: 100%; height: 88px; }
.cp-trail path {
  fill: none;
  stroke: var(--cp-trail);
  stroke-width: 4;
  stroke-dasharray: 1 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Encadré « Et après ? » */
.cp-after {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  padding: 32px 40px;
  background: var(--cp-navy-deep);
  border-radius: 28px;
  color: #E6EAF3;
}
.cp-after__faces { position: relative; flex: 0 0 140px; height: 92px; }
.cp-after__faces img {
  position: absolute;
  top: 0;
  width: 92px;
  height: 92px;
  border: 4px solid #FFFFFF;
  border-radius: 50%;
}
.cp-after__faces img:first-child { left: 0; }
.cp-after__faces img:last-child  { left: 48px; }
.cp-after__title {
  margin-bottom: 6px;
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: #8FE3D8;
}

/* ---------- 3. Des personnes de confiance ---------- */

.cp-trust { padding: 96px 0 64px; background: #FFFFFF; }
.cp-trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}
.cp-trust__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}
.cp-trust__text { display: flex; flex-direction: column; gap: 28px; }
.cp-trust__intro { display: flex; flex-direction: column; gap: 20px; }

.cp-checks { display: flex; flex-direction: column; gap: 14px; }
.cp-checks li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 22px;
  color: var(--cp-navy);
}
.cp-checks__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cp-teal-check);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-checks__icon svg { width: 22px; height: 22px; }

.cp-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  background: var(--cp-teal-soft);
  border-radius: 20px;
  font-size: 19px;
}
.cp-note__title { font-weight: 700; font-size: 21px; color: var(--cp-navy); }

/* ---------- 4. 50 % + contact ---------- */

.cp-half { padding: 32px 0 96px; background: #FFFFFF; }
.cp-half__card {
  display: flex;
  align-items: center;
  gap: 40px 56px;
  padding: 56px 64px;
  background: var(--cp-navy);
  border-radius: 32px;
  color: #E4E9F4;
}
.cp-half__num {
  flex: none;
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 104px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cp-gold);
}
.cp-half__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-half__title {
  font-family: var(--cp-font-title);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: #FFFFFF;
}
.cp-half__actions { flex: 0 0 300px; display: flex; flex-direction: column; gap: 14px; }

.cp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cp-btn:focus-visible { outline: 3px solid var(--cp-gold); outline-offset: 3px; }
.cp-btn--primary { min-height: 68px; background: #FFFFFF; color: var(--cp-navy); font-size: 21px; }
.cp-btn--primary:hover { background: #EEF2F8; }
.cp-btn--primary svg { flex: none; width: 26px; height: 26px; }
.cp-btn__label { display: flex; flex-direction: column; align-items: flex-start; }
.cp-btn__sub { font-weight: 400; font-size: 19px; }
.cp-btn--ghost { border: 2px solid #FFFFFF; color: #FFFFFF; }
.cp-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1080px) {
  .cp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-half__card { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .cp-trust__grid { grid-template-columns: minmax(0, 1fr); }
  .cp-trust__photo { height: 380px; }
}

@media (max-width: 767px) {
  .cp { font-size: 19px; line-height: 1.5; }
  .cp-container { padding: 0 20px; }

  .cp-head { gap: 12px; }
  .cp-head--center { align-items: flex-start; text-align: left; }
  .cp-h2 { font-size: 32px; line-height: 1.18; letter-spacing: 0; }
  .cp-lead { font-size: 19px; }

  /* 1. Services : une carte par ligne, icône à gauche */
  .cp-services { padding: 56px 0 48px; }
  .cp-services .cp-head { margin-bottom: 28px; }
  .cp-tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cp-tile {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px;
    border-radius: 20px;
  }
  .cp-tile__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; }
  .cp-tile__icon svg { width: 30px; height: 30px; }
  .cp-tile .cp-h3 { font-size: 21px; }
  .cp-tile p { font-size: 18px; }

  /* 2. Étapes : empilées, chemin vertical */
  .cp-steps { padding: 56px 0; }
  .cp-steps .cp-head { margin-bottom: 36px; }
  .cp-steps__deco--top    { top: -110px; right: -110px; width: 260px; height: 260px; }
  .cp-steps__deco--bottom { bottom: -120px; left: -120px; width: 280px; height: 280px; }
  .cp-pill { padding: 5px 14px; font-size: 14px; }

  .cp-step__row,
  .cp-step--reverse .cp-step__row { flex-direction: column; gap: 20px; }

  .cp-scene { flex: none; width: 280px; height: 240px; }
  .cp-bubble { max-width: 220px; padding: 10px 18px; border-radius: 18px; font-size: 20px; }
  .cp-bubble::after { left: 90px; width: 14px; height: 14px; }
  .cp-bubble--right::after { left: auto; right: 36px; }

  .cp-avatar--lg    { left: 60px;  width: 160px; height: 160px; border-width: 7px; }
  .cp-avatar--duo-a { left: 10px;  width: 140px; height: 140px; border-width: 6px; }
  .cp-avatar--duo-b { left: 130px; width: 140px; height: 140px; border-width: 6px; }

  .cp-badge { bottom: 4px; right: 48px; width: 54px; height: 54px; border-width: 4px; }
  .cp-badge svg { width: 24px; height: 24px; }
  .cp-badge--heart { top: 66px; left: 113px; right: auto; bottom: auto; }

  .cp-card { flex: none; width: 100%; gap: 8px; padding: 44px 22px 24px; border-radius: 24px; }
  .cp-card__num { top: -28px; left: 20px; width: 56px; height: 56px; font-size: 24px; }
  .cp-kicker { font-size: 15px; }
  .cp-card .cp-h3 { font-size: 22px; }
  .cp-card p:last-child { font-size: 18px; }

  .cp .cp-trail { display: none; }
  .cp-step:not(:last-child)::after {
    content: "";
    display: block;
    width: 0;
    height: 56px;
    margin: 20px auto;
    border-left: 5px dotted var(--cp-trail);
  }

  .cp-after {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 36px;
    padding: 24px 22px;
    border-radius: 24px;
  }
  .cp-after__faces { flex: none; width: 120px; height: 76px; }
  .cp-after__faces img { width: 76px; height: 76px; }
  .cp-after__faces img:last-child { left: 44px; }
  .cp-after__title { font-size: 24px; }
  .cp-after p:last-child { font-size: 18px; }

  /* 3. Confiance */
  .cp-trust { padding: 56px 0 32px; }
  .cp-trust__grid { gap: 28px; }
  .cp-trust__photo { height: 250px; border-radius: 24px; }
  .cp-trust__intro { gap: 12px; }
  .cp-checks { gap: 12px; }
  .cp-checks li { gap: 14px; font-size: 20px; }
  .cp-checks__icon { width: 36px; height: 36px; }
  .cp-checks__icon svg { width: 20px; height: 20px; }
  .cp-note { gap: 6px; padding: 20px; font-size: 18px; }
  .cp-note__title { font-size: 20px; line-height: 1.3; }

  /* 4. 50 % */
  .cp-half { padding: 16px 0 56px; }
  .cp-half__card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 32px 24px;
    border-radius: 28px;
  }
  .cp-half__num { font-size: 76px; }
  .cp-half__text { flex: none; gap: 10px; }
  .cp-half__title { font-size: 28px; }
  .cp-half__text p { font-size: 18px; }
  .cp-half__actions { flex: none; gap: 12px; }
  .cp-btn--primary { font-size: 20px; }
  .cp-btn__sub { font-size: 18px; }
  .cp-btn--ghost { min-height: 58px; font-size: 19px; }
}
