/* Codylia : sections de l'accueil (héros et vitrine CRM, services, parcours, méthode). */

/* Héros centré, suivi de la vitrine CRM qui se redresse à l'affichage */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem); text-align: center; overflow: hidden; }
.hero .wrap > * { animation: up 700ms var(--ease) both; }
.hero__pill { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--accent-light); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; margin-bottom: 1.5rem; }
.hero h1 { max-width: 16ch; margin-inline: auto; animation-delay: 80ms; }
.hero .lead { margin: 1.5rem auto 0; max-width: 58ch; animation-delay: 160ms; }
.hero .actions { justify-content: center; animation-delay: 240ms; }
@keyframes up { from { opacity: 0; translate: 0 1.25rem; } to { opacity: 1; translate: 0 0; } }

.hero .crm { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); animation: none; scroll-margin-top: 6rem; }
.crm__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1.25rem; animation: up 700ms var(--ease) 320ms both; }
.crm__tab { background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: color 150ms, background-color 150ms, border-color 150ms; }
.crm__tab:hover { color: var(--text); border-color: var(--line); }
.crm__tab[aria-selected='true'] { color: var(--text); background: var(--card-hover); border-color: var(--accent); }
.stage {
  max-width: 65rem; margin-inline: auto; padding: 0.6rem 0.6rem 0; background: var(--card-hover);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 -30px 120px -20px rgba(79, 140, 255, 0.45);
  transform-origin: top; animation: rise 1100ms var(--ease) 300ms both;
}
@keyframes rise {
  from { opacity: 0; transform: perspective(1400px) rotateX(14deg) translateY(60px); }
  to { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0); }
}
.frame { border-radius: 10px 10px 0 0; overflow: hidden; background: var(--card); aspect-ratio: 16 / 10; }
.shot { display: none; }
.shot.is-active { display: block; animation: shot-in 250ms ease-out; }
@keyframes shot-in { from { opacity: 0; } to { opacity: 1; } }
.shot img, .shot video { width: 100%; height: auto; }

/* CRM Trajectoire : présentation sous la vitrine */
.crm__head { display: grid; gap: 2rem; }
.crm__head h2 { margin-bottom: 1rem; }
.crm__points { list-style: none; display: grid; gap: 0.75rem; align-content: start; }
.crm__points li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.crm__points h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.crm__points p { color: var(--muted); font-size: 0.95rem; }
.crm__caption { margin-top: 1.5rem; color: var(--muted); font-size: 0.88rem; }

/* Services en cartes, la dernière sur deux colonnes */
.cards { list-style: none; display: grid; gap: 1rem; }
.card { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-decoration: none; color: var(--text); transition: background-color 200ms, border-color 200ms; }
.card:hover { background: var(--card-hover); border-color: var(--accent); color: var(--text); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.card__more { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-light); }

/* Qui est derrière Codylia */
.about__grid { display: grid; gap: 2rem; align-items: start; }
.about__who { display: flex; gap: 1rem; align-items: center; margin-block: 0.25rem 1.25rem; }
.about__name { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.about__role { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.about__sentence { color: var(--muted); max-width: 30em; }
.about__label { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; }
.stats dt { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent-light); }
.stats dd { margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Méthode de travail */
.work__grid { display: grid; gap: 1.5rem 4rem; }
.work dl > div { display: grid; gap: 0.25rem 2rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.work dt { font-weight: 700; }
.work dd { color: var(--muted); }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards li:last-child { grid-column: span 2; }
}
@media (min-width: 46rem) {
  .work dl > div { grid-template-columns: 13rem 1fr; }
}
@media (min-width: 62rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm__head { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
  .about__grid { grid-template-columns: 0.72fr 1.28fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work__grid { grid-template-columns: 0.7fr 1.3fr; }
}
@media (max-width: 34rem) {
  .stage { padding: 0.35rem 0.35rem 0; border-radius: 12px 12px 0 0; }
  .frame { border-radius: 7px 7px 0 0; }
  .crm__tab { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
  .about__who { flex-direction: column; align-items: flex-start; }
}

/* Héros : les services sont présentés d'emblée ; le CRM vient ensuite, comme exemple de réalisation */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.hero__cards { text-align: left; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); animation-delay: 320ms; }
.section--crm { padding-bottom: 0; overflow: hidden; }
.section--crm .crm { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); scroll-margin-top: 6rem; }
.section--crm .crm__caption { margin-top: 1.5rem; }
