/* ==========================================================================
   REMIND — section3.css
   Section 3 UNIQUEMENT : « Dites-le. C'est tout. » (maquette 3).
   Téléphone central entouré de cartes d'exemples (hub & spoke) + rangée de
   4 bénéfices. Tout est scopé sous .say → aucune fuite. Le composant .phone
   vient de base.css. L'animation d'absorption est pilotée par scripts/section3.js.
   ========================================================================== */

.say{
  padding: clamp(48px, 7vw, 100px) 0 clamp(30px, 4vw, 60px);
}

/* ---- Titre centré ---- */
.say__title{
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.say__rule{ margin: clamp(14px, 1.6vw, 22px) auto 0; }

/* ---- Scène : cartes gauche | téléphone | cartes droite (+ carte bas) ---- */
.say__stage{
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: clamp(14px, 2vw, 42px) clamp(18px, 3vw, 72px);
  margin-top: clamp(28px, 4vw, 58px);
}
.say__col{
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 26px);
  width: 100%;
  max-width: 330px;
}
.say__col--left{ grid-column: 1; grid-row: 1; }
.say__phone{ grid-column: 2; grid-row: 1; }
.say__col--right{ grid-column: 3; grid-row: 1; }
.say__bottom{ grid-column: 2; grid-row: 2; display: flex; justify-content: center; }

.say__phone .phone{ width: min(300px, 34vw); }

/* Vidéo qui prend l'écran du téléphone après l'aspiration */
.say__video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 5;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease);
}
.say__video.is-on{ opacity: 1; visibility: visible; }

/* ---- Cartes d'exemple ---- */
.cue{
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 13px 17px;
  box-shadow: 0 12px 26px -16px rgba(24,26,20,.32);
  font-family: var(--sans);
  /* Transition utilisée par l'animation d'absorption (JS pose transform/opacity) */
  transition: transform 1.4s var(--ease), opacity 1.4s var(--ease);
  will-change: transform, opacity;
}
.cue svg{ width: 26px; height: 26px; color: var(--ink); flex: none; }
.cue p{ margin: 0; font-size: 14px; line-height: 1.3; color: var(--ink); }
.say__bottom .cue{ max-width: 340px; }

/* Entrée successive des cartes au scroll (avant l'absorption) — cf. section3.js.
   Transition courte propre à la révélation, distincte de celle de l'absorption. */
.say.js-reveal [data-cue]{ opacity: 0; transform: translateY(16px); }
.say.js-reveal [data-cue].is-shown{
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* Flux d'import : couche fixe recevant les cartes clonées aspirées dans l'écran.
   Piloté par scripts/section3.js (durée totale ≈ 5,5 s). */
.cue-fly-layer{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 40;
}
.cue--fly{ box-shadow: 0 16px 30px -18px rgba(24,26,20,.4); will-change: transform, opacity; }

/* Connecteurs pointillés vers le téléphone */
.cue--l::after,
.cue--r::after{
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(22px, 3vw, 62px);
  border-top: 1.6px dashed rgba(24,26,20,.3);
}
.cue--l::after{ left: 100%; }
.cue--r::after{ right: 100%; }
.cue--b::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: clamp(16px, 2.4vw, 38px);
  border-left: 1.6px dashed rgba(24,26,20,.3);
}

/* ---- Bénéfices (rangée du bas) ---- */
.benefits2{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(40px, 5vw, 74px);
  padding-top: clamp(28px, 3.6vw, 52px);
  border-top: 1px solid var(--line);
}
.benefit2{ display: flex; align-items: flex-start; gap: 14px; }
.benefit2__ico{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.benefit2__ico svg{ width: 24px; height: 24px; color: var(--green); }
.benefit2 p{ margin: 0; font-family: var(--sans); line-height: 1.35; }
.benefit2 .t{ font-weight: 600; font-size: 15px; color: var(--ink); }
.benefit2 .s{ font-size: 14px; color: var(--ink-72); }

/* ==========================================================================
   Aperçu « Section 4 » à la fin de la vidéo (contenu cloné depuis .act par
   scripts/section3.js). Styles repris de section4.css mais scopés sous .say
   (on ne touche pas à la Section 4). L'écran du téléphone affiche le message
   « C'est fait. », puis les caractéristiques arrivent autour avec un FLIP
   VERTICAL séquentiel.
   ========================================================================== */
/* Message tâche « C'est fait. » dans l'écran */
.say .msg--task{ max-width: 90%; }
.say .task__head{
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink);
  margin-bottom: 8px;
}
.say .task__head svg{ width: 17px; height: 17px; color: var(--green-wa); flex: none; }
.say .task__list{ display: flex; flex-direction: column; gap: 6px; }
.say .task__list li{ display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--ink); }
.say .task__list svg{ width: 14px; height: 14px; color: var(--green); flex: none; }

/* Caractéristiques (bulles) clonées dans les colonnes gauche/droite */
.say__col{ perspective: 1400px; }                 /* profondeur pour le flip 3D */
.say .feat{
  position: relative;
  display: flex; align-items: flex-start; gap: 15px;
  text-align: left;
  /* état initial du flip : tour complet d'axe vertical, masqué */
  opacity: 0;
  transform: rotateY(-360deg);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.say .feat.is-in{ opacity: 1; transform: rotateY(0deg); }
.say .feat__ico{
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.say .feat__ico svg{ width: 25px; height: 25px; color: var(--ink); }
.say .feat__t{ margin: 3px 0 4px; font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); }
.say .feat__d{ margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-72); max-width: 26ch; }

@media (prefers-reduced-motion: reduce){
  .say .feat{ opacity: 1; transform: none; }
}

/* ---- Responsive Section 3 ---- */
@media (max-width: 1080px){
  .say__stage{ grid-template-columns: 1fr; grid-template-rows: none; }
  .say__col{ max-width: 520px; margin: 0 auto; }
  .say__col--left, .say__phone, .say__col--right, .say__bottom{
    grid-column: 1;
  }
  .cue--l::after, .cue--r::after, .cue--b::after{ display: none; }
  .benefits2{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
@media (max-width: 560px){
  .benefits2{ grid-template-columns: 1fr; }
}
