/* ============================================================
   REGA · Page de niche « salons de tatouage »
   Se charge APRES style.css et hero.css : on réutilise tous les
   composants du site (hero, titres encrés, cartes, FAQ, contact) et on
   n'ajoute ici que ce qui est propre au métier.
   Motif maison de la page : le trait pointillé du stencil, le calque
   qu'un tatoueur pose sur la peau avant de piquer. Il remplace les
   contours pleins là où la page parle de « préparer » quelque chose.
   ============================================================ */

/* ---------- 01 · Tes DM vs ton site ---------- */
.tdm__grille {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1040px;
  margin-inline: auto;
}

.tdm__col { display: grid; justify-items: center; gap: 18px; text-align: center; }

.tdm__etiquette {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tdm__col--site .tdm__etiquette { color: var(--orange); }

/* Le téléphone : même coque que les écrans des fiches projet */
.tdm__tel {
  position: relative;
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3A2A22, var(--ink));
  box-shadow: 0 30px 60px -30px rgba(42, 16, 10, .6);
}

.tdm__ecran {
  height: 380px;
  border-radius: 25px;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}

.tdm__tete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  position: relative;
  z-index: 2;
  background: var(--cream);
}
.tdm__tete i {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--ink-soft));
  flex: none;
}
.tdm__tete small { display: block; font-weight: 400; color: var(--ink-mute); font-size: .72rem; }

/* Le fil de messages monte en boucle, comme une boîte qui ne se vide jamais */
.tdm__fil {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  animation: tdm-monte 22s linear infinite;
}
.tdm__fil--copie { padding-top: 0; }

.tdm__bulle {
  align-self: flex-start;
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 5px;
  background: var(--cream-3);
  font-size: .8rem;
  line-height: 1.4;
  text-align: left;
}
.tdm__bulle b { font-weight: 600; display: block; font-size: .66rem; color: var(--ink-mute); margin-bottom: 2px; }

.tdm__ecran::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 70px;
  background: linear-gradient(to top, var(--cream), transparent);
  pointer-events: none;
}

@keyframes tdm-monte {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.tdm__compte {
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--ink-soft);
  max-width: 22ch;
}

/* La flèche centrale, même famille que celles du hero */
.tdm__fleche { width: clamp(70px, 8vw, 110px); color: var(--orange); }
.tdm__fleche svg { width: 100%; height: auto; overflow: visible; }
.tdm__fleche path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* La fiche de projet, telle qu'elle arrive dans la boîte mail du salon */
.tdm__fiche {
  width: min(340px, 100%);
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: left;
  position: relative;
}

.tdm__fiche-tete {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1.5px dashed var(--line-strong);
}
.tdm__fiche-tete b { font-family: var(--titre); font-size: 1.14rem; font-weight: 600; }
.tdm__fiche-tete span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

.tdm__champs { display: grid; gap: 8px; margin: 0; }
.tdm__champs div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: .84rem; }
.tdm__champs dt { color: var(--ink-mute); }
.tdm__champs dd { margin: 0; font-weight: 600; }

.tdm__ref {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1.5px dashed var(--orange);
  font-size: .78rem;
  color: var(--ink-soft);
}
.tdm__ref svg { width: 44px; height: 44px; flex: none; color: var(--orange); }

.tdm__tampon {
  position: absolute;
  top: -16px; right: -14px;
  padding: 6px 14px 5px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream);
  font-family: var(--hand);
  font-size: 1.2rem;
  transform: rotate(6deg);
}

/* ---------- 02 · Ce que ton site fait ---------- */
.tatouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.tatout {
  padding: clamp(26px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: var(--cream-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tatout:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Le pictogramme est « décalqué » : contour en pointillé de stencil,
   qui se referme en trait plein au survol, comme une ligne repassée. */
.tatout__ico { display: block; width: 58px; height: 58px; margin-bottom: 20px; color: var(--ink-soft); }
.tatout__ico svg { width: 100%; height: 100%; overflow: visible; }
.tatout__ico .st {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 3 4;
  transition: stroke-dasharray .7s var(--ease), color .4s;
}
.tatout__ico .pl { fill: var(--orange); }
.tatout:hover .tatout__ico .st { stroke-dasharray: 60 0; }
.tatout:hover .tatout__ico { color: var(--ink); }

.tatout h3 {
  font-family: var(--titre);
  font-size: clamp(1.24rem, 1.6vw, 1.44rem);
  font-weight: 600;
  font-variation-settings: 'SOFT' 34, 'WONK' 1;
  line-height: 1.2;
}
.tatout p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* Les options : discutées au brief, jamais de surprise */
.toptions {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.toptions__label {
  width: 100%;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.55rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.toption {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px dashed var(--line-strong);
  font-size: .9rem;
  font-weight: 500;
}
.toption::before {
  content: "+";
  font-weight: 700;
  color: var(--orange);
}

/* ---------- 03 · Vitrine : le cadre garde toujours son format ----------
   Sur l'accueil, le cadre prend toute la hauteur puis se fait brider en
   largeur : sur un écran haut, il perd son 16/9 et la capture est rognée
   sur les côtés. Ici la zone devient un conteneur mesurable et le cadre
   prend la plus grande taille qui tient dedans SANS changer de format. */
@media (min-width: 901px) {
  #projets .cas__zone { container-type: size; }
  #projets .cas__cadre {
    height: auto;
    width: min(100cqw, 100cqh * 1200 / 707);
    max-height: none;
    aspect-ratio: 1200 / 707;
  }
}

/* ---------- 04 · Trois étapes ---------- */
.tetapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  counter-reset: etape;
  position: relative;
}

/* Le trait de stencil qui relie les étapes, derrière les numéros */
.tetapes::before {
  content: "";
  position: absolute;
  top: 31px; left: 16%; right: 16%;
  border-top: 2px dashed var(--line-strong);
}

.tetape { text-align: center; position: relative; }
.tetape__num {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--ink);
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 600;
}
.tetape--toi .tetape__num { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.tetape__qui {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.tetape--toi .tetape__qui { color: var(--orange); }
.tetape h3 {
  font-family: var(--titre);
  font-size: clamp(1.3rem, 1.7vw, 1.5rem);
  font-weight: 600;
  font-variation-settings: 'SOFT' 34, 'WONK' 1;
}
.tetape p { margin: 10px auto 0; max-width: 30ch; color: var(--ink-soft); font-size: .95rem; }

.tetapes__note {
  margin-top: clamp(34px, 4vw, 50px);
  text-align: center;
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--orange);
}

/* Le stencil : l'étape 2 est tracée en pointillé, comme le calque
   posé sur la peau avant de piquer. */
.tetape--stencil .tetape__num { border-style: dashed; color: var(--ink-soft); }

/* ---------- Planche de flashs en marge ---------- */
.flashs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.flash {
  position: absolute;
  width: 92px; height: 92px;
  color: var(--ink);
  opacity: .8;
  transform: rotate(var(--r, 0deg));
}
.flash--1 { --r: -28deg; top: 14%;  left: 4%;  width: 104px; height: 104px; }
.flash--2 { --r: 12deg;  top: 58%;  left: 9%;  width: 44px;  height: 44px; }
.flash--3 { --r: 14deg;  top: 18%;  right: 5%; }
.flash--4 { --r: -14deg; top: 9%;   left: 6%; }
.flash--5 { --r: 0deg;   top: 22%;  right: 10%; width: 40px; height: 40px; }
.flash--6 { --r: 18deg;  bottom: 8%; right: 4%; width: 84px; height: 84px; }
.flash--7 { --r: -10deg; top: 12%;  right: 6%; width: 112px; height: 112px; }
.flash--8 { --r: 32deg;  top: 46%;  left: 4%; }
.flash--9 { --r: 0deg;   bottom: 12%; right: 12%; width: 38px; height: 38px; }

/* Le cœur à banderole du bas de page */
.final__flash {
  position: relative;
  width: 150px;
  margin: 0 auto 18px;
  color: var(--ink);
}
.final__flash svg { width: 100%; height: auto; transform: rotate(-6deg); }
.final__flash span {
  position: absolute;
  left: 0; right: 0; top: 49%;
  transform: rotate(-6deg) translateY(-2px);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .flash { width: 64px; height: 64px; opacity: .55; }
  .flash--1, .flash--7 { width: 72px; height: 72px; }
}

@media (max-width: 900px) {
  .flashs { display: none; }
  .tdm__grille { grid-template-columns: 1fr; }
  .tdm__fleche { transform: rotate(90deg); margin: -6px auto; }
  .tatouts { grid-template-columns: repeat(2, 1fr); }
  .tetapes { grid-template-columns: 1fr; gap: 40px; }
  .tetapes::before { top: 32px; bottom: 60px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .tetape { background: var(--cream); }
}

@media (max-width: 600px) {
  .tatouts { grid-template-columns: 1fr; }
  .tdm__champs div { grid-template-columns: 92px 1fr; }
  .tdm__tampon { right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .tdm__fil { animation: none; }
  .tatout__ico .st { transition: none; }
}
