/* Home de De Lord Ans les Cheveux : « mèche contre mèche ».
   Couleurs, rayons, ombres et boutons viennent des variables de la charte (da.css). */

@font-face { font-family: 'Josefin Sans'; src: url('/fonts/JosefinSans-VF.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cardo'; src: url('/fonts/Cardo-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cardo'; src: url('/fonts/Cardo-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cardo'; src: url('/fonts/Cardo-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* Défilement doux natif coupé sur la home : l'ancre interne défile en douceur par tuning.js */
html:root { scroll-behavior: auto; }
html:root {
  --f-titre: 'Josefin Sans', 'Segoe UI', sans-serif;
  --f-texte: 'Cardo', Georgia, 'Times New Roman', serif;
  --tn-col: 1072px;
  --tn-air: clamp(64px, 8.5vw, 112px);
}

/* Avant-pied injecté par l'usine : il reprend une photo déjà montrée plus haut, masqué sur la home seulement */
.uf-block[data-avant-footer] { display: none !important; }

/* Bandeau d'annonce masqué en mobile : le titre du hero reste dans le premier écran */
@media (max-width: 700px) {
  [data-bandeau], .announcement-bar { display: none !important; }
}

.tn-home { font-family: var(--f-texte); color: var(--c-texte); }
.tn-home :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
.tn-home :where(ol, ul) { list-style: none; padding: 0; }
.tn-home img { display: block; max-width: 100%; }
.tn-home a { color: inherit; }
.tn-home button { font: inherit; cursor: pointer; }

/* ---------- Grammaire commune ---------- */
.tn-pastille {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--c-surface); border: 1.5px solid var(--c-bord);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-texte); line-height: 1.2;
}
.tn-pastille-n { background: var(--c-texte); color: var(--c-fond); border-radius: 999px; padding: 4px 8px; font-size: 11px; letter-spacing: .04em; }
.tn-fort {
  color: var(--c-primaire-texte);
  background-image: linear-gradient(var(--c-doux), var(--c-doux));
  background-repeat: no-repeat; background-size: 100% .3em; background-position: 0 92%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tn-carte { background: var(--carte-fond); border: var(--carte-bord); border-radius: var(--r-carte); box-shadow: var(--o-carte); }

.tn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 24px 12px;
  font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.15;
  border: var(--btn-bord); border-radius: var(--r-bouton); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tn-btn > span[class*='icon-'] { margin-top: -3px; }
.tn-home .tn-btn { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; }
.tn-home .tn-btn-plein { background: var(--btn-fond); color: var(--btn-texte); }
.tn-home .tn-btn-trait { background: transparent; color: var(--c-texte); }
.tn-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c-primaire); }
.tn-btn-trait:hover { background: var(--c-doux); }
.tn-btn:focus-visible, .tn-home button:focus-visible, .tn-home a:focus-visible, .tn-home [tabindex]:focus-visible { outline: 3px solid var(--c-primaire); outline-offset: 3px; }

.tn-bascule { display: inline-flex; padding: 4px; gap: 4px; border: 2px solid var(--c-texte); border-radius: 999px; background: var(--c-surface); max-width: 100%; }
.tn-bascule button, .tn-fiche-choix button, .tn-filtres button {
  border: 0; background: transparent; color: var(--c-texte); border-radius: 999px;
  min-height: 40px; padding: 9px 16px 6px; font-family: var(--f-titre); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.tn-bascule button small, .tn-filtres button small { font-family: var(--f-mono); font-size: 11px; opacity: .7; margin-left: 4px; }
.tn-bascule button[aria-pressed='true'], .tn-fiche-choix button[aria-pressed='true'], .tn-filtres button[aria-pressed='true'] { background: var(--c-texte); color: var(--c-fond); }

.tn-sec { scroll-margin-top: var(--entete-h, 120px); margin-inline: -1.5rem; padding: var(--tn-air) 1.5rem; border-top: 1px solid var(--c-bord); }
.tn-fond-2 { background: var(--c-fond-2); }
.tn-tete { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tn-h2 { font-family: var(--f-titre); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; color: var(--c-texte); }
.tn-intro { font-size: 1.15rem; line-height: 1.6; color: var(--c-texte-2); max-width: 60ch; }
.tn-pastille-teinte { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teinte); box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 4.5px var(--c-texte); }

.tn-home figure > img, .tn-une-photo img { width: 100%; height: 100%; max-height: none !important; object-fit: cover; }

/* ---------- En-tête : bandeau, menu, pied, de la même main que le hero ---------- */
#entete [data-bandeau='actu'] { background: var(--c-fond-2) !important; height: 44px; border-bottom: 1px solid var(--c-bord); }
#entete [data-bandeau='actu'] > span:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primaire-texte); }
#entete [data-bandeau='actu'] [data-defile] { mask-image: none; -webkit-mask-image: none; overflow: hidden; }
#entete [data-bandeau='actu'] .kv-piste { animation: none !important; transform: none !important; width: auto; gap: 8px; }
#entete [data-bandeau='actu'] .kv-piste > a {
  margin-right: 0; padding: 5px 14px 3px; border: 1.5px solid var(--c-texte); border-radius: 999px; background: var(--c-surface);
  font-family: var(--f-titre); font-weight: 600; font-size: 13.5px; line-height: 1.4; color: var(--c-texte) !important; text-decoration: none !important;
  transition: background-color .2s ease;
}
#entete [data-bandeau='actu'] .kv-piste > a:hover { background: var(--c-doux); }
#entete [data-bandeau='actu'] .kv-piste > a:nth-child(n+4) { display: none; }
@media (max-width: 1240px) { #entete [data-bandeau='actu'] .kv-piste > a:nth-child(n+3) { display: none; } }
@media (max-width: 900px) { #entete [data-bandeau='actu'] .kv-piste > a:nth-child(n+2) { display: none; } }
#entete [data-bandeau='actu'] [data-fermer] { color: var(--c-texte); }

#entete nav[aria-label='Navigation principale'] { margin-top: 14px; gap: 6px; }
#entete nav[aria-label='Navigation principale'] a {
  font-family: var(--f-titre); font-weight: 600; font-size: 15.5px; line-height: 1.2; letter-spacing: .005em;
  color: var(--c-texte) !important; padding: 10px 16px 7px; border-radius: 999px;
}
#entete nav[aria-label='Navigation principale'] a:hover { background: var(--c-doux); }
#entete nav[aria-label='Navigation principale'] a:last-child { border: 1.5px solid var(--c-texte); margin-left: 6px; }

/* Ligne « Sur le même sujet » ramenée dans la grille et la typo du pied */
footer > p[class^='rv-'] {
  max-width: var(--layout-width, 70rem) !important; margin: 0 auto !important; padding: 0 2rem 1.6rem !important;
  border-inline: 1px solid color-mix(in srgb, var(--c-bord) 50%, transparent); text-align: left !important; opacity: 1 !important;
  font-family: var(--f-texte); font-size: .9rem !important; color: var(--c-texte-2);
}
footer > p[class^='rv-'] a { color: var(--c-texte); text-decoration: none; border-bottom: 1px solid var(--c-bord); }
footer > p[class^='rv-'] a:hover { color: var(--c-primaire-texte); border-color: var(--c-primaire); }

/* ---------- 01 Hero ---------- */
.tn-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: 'copie scene' 'reperes scene'; grid-template-rows: auto auto;
  column-gap: clamp(32px, 4vw, 56px); row-gap: 28px; align-content: center; align-items: end;
  min-height: min(calc(100svh - var(--entete-h, 170px)), 780px);
  padding: clamp(28px, 4.5vh, 52px) 0;
}
.tn-hero-copie { grid-area: copie; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tn-h1 { font-family: 'Josefin Sans', var(--f-titre); font-weight: 700; font-size: clamp(2.4rem, 3.9vw, 3.55rem); line-height: 1.04; letter-spacing: -.02em; color: var(--c-texte); text-wrap: balance; }
.tn-chapeau { font-size: 1.16rem; line-height: 1.6; color: var(--c-texte-2); max-width: 52ch; }
.tn-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.tn-reperes { grid-area: reperes; align-self: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 480px; padding-top: 20px; border-top: 1px solid var(--c-bord); }
.tn-reperes > div { display: flex; flex-direction: column; gap: 4px; padding-right: 16px; }
.tn-reperes dd { order: -1; font-family: var(--f-titre); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-reperes > div + div { padding-left: 20px; border-left: 1px solid var(--c-bord); }
.tn-reperes dt { font-size: .95rem; color: var(--c-texte-2); }

.tn-scene { grid-area: scene; align-self: center; position: relative; min-width: 0; width: min(100%, 448px); justify-self: end; overflow: hidden; }
.tn-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 2px solid var(--c-texte); background: var(--c-fond-2); }
.tn-photo img { object-position: 50% 50%; }
.tn-voile { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: color-mix(in srgb, var(--c-fond) 58%, transparent); transition: opacity .6s ease; }
.tn-voile-miel { clip-path: polygon(0 0, 70% 0, 67% 26%, 59% 35%, 53% 55%, 48% 70%, 32% 77%, 0 80%); }
.tn-voile-platine { clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 80%, 32% 77%, 48% 70%, 53% 55%, 59% 35%, 67% 26%); }
.tn-scene[data-actif='platine'] .tn-voile-miel, .tn-scene[data-actif='miel'] .tn-voile-platine { opacity: 1; }

.tn-point { position: absolute; padding: 0; border: 0; background: none; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.tn-point-miel { left: 42%; top: 46%; }
.tn-point-platine { left: 62%; top: 40%; }
.tn-point-rond { position: absolute; inset: 0; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-texte); }
.tn-point-rond::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--c-texte-2); transition: background-color .3s; }
.tn-scene[data-actif='miel'] .tn-point-miel .tn-point-rond::after, .tn-scene[data-actif='platine'] .tn-point-platine .tn-point-rond::after { background: var(--c-primaire); }
.tn-scene[data-actif='miel'] .tn-point-miel .tn-point-rond, .tn-scene[data-actif='platine'] .tn-point-platine .tn-point-rond { animation: tn-pouls 1.8s ease-out infinite; }
@keyframes tn-pouls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primaire) 70%, transparent); } 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--c-primaire) 0%, transparent); } }
.tn-etiquette {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap;
  padding: 8px 12px 6px; background: var(--c-surface); border: 2px solid var(--c-texte); border-radius: 10px;
  text-align: left; color: var(--c-texte); transition: background-color .3s, color .3s;
}
.tn-etiquette strong { font-family: var(--f-titre); font-weight: 700; font-size: .98rem; line-height: 1.15; }
.tn-etiquette small { font-size: .84rem; color: var(--c-texte-2); line-height: 1.2; }
.tn-point-miel .tn-etiquette { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.tn-point-platine .tn-etiquette { left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.tn-scene[data-actif='miel'] .tn-point-miel .tn-etiquette, .tn-scene[data-actif='platine'] .tn-point-platine .tn-etiquette { background: var(--c-texte); color: var(--c-fond); }
.tn-scene[data-actif='miel'] .tn-point-miel .tn-etiquette small, .tn-scene[data-actif='platine'] .tn-point-platine .tn-etiquette small { color: var(--c-doux); }

.tn-fiche { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--c-surface); }
.tn-fiche-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tn-fiche-titre { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-fiche-compte { white-space: nowrap; font-family: var(--f-titre); font-weight: 700; font-size: 1.35rem; letter-spacing: 0; line-height: 1; color: var(--c-primaire-texte); }
.tn-fiche-choix { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 2px solid var(--c-texte); border-radius: 999px; }
.tn-fiche-choix button { min-height: 34px; padding: 8px 14px 5px; font-size: .9rem; }
.tn-fiche-lignes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.tn-fiche-ligne { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 6px; border-top: 1px solid var(--c-bord); transition: opacity .35s ease; }
.tn-fiche-ligne dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-fiche-ligne dd { font-size: .98rem; line-height: 1.28; color: var(--c-texte); }
.tn-scene[data-actif='miel'] .tn-fiche-ligne dd[data-cote='platine'], .tn-scene[data-actif='platine'] .tn-fiche-ligne dd[data-cote='miel'] { display: none; }
.tn-anim .tn-fiche-ligne:not(.est-lu) { opacity: .3; }
.tn-fiche-lien { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-titre); font-weight: 600; font-size: .9rem; color: var(--c-primaire-texte) !important; text-decoration: none; padding-top: 8px; border-top: 1px solid var(--c-bord); }
.tn-fiche-lien:hover { text-decoration: underline; }

/* Photos de section : cadre commun */
.tn-base-photo, .tn-reflet-photo, .tn-routine-photo, .tn-texture-photo { position: relative; border-radius: var(--r-image); overflow: hidden; border: 2px solid var(--c-texte); min-width: 0; background: var(--c-fond-2); }

/* ---------- 02 Base : le nuancier du coloriste ---------- */
.tn-base-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tn-base-photo { aspect-ratio: 4 / 5; }
.tn-base-photo img { object-position: 50% 50%; }
.tn-repere {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  transition: left .7s cubic-bezier(.6, 0, .2, 1), top .7s cubic-bezier(.6, 0, .2, 1), opacity .3s ease;
}
.tn-repere .tn-point-rond { animation: tn-pouls 1.8s ease-out infinite; }
.tn-repere .tn-point-rond::after { background: var(--c-primaire); }
.tn-base-photo[data-famille-photo='froid'] .tn-repere { opacity: 0; }
.tn-rdv { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 4px 4px 0 var(--c-texte); }
.tn-rdv-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-rdv-ligne { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.tn-rdv-ligne small { font-size: .85rem; color: var(--c-texte-2); }
.tn-rdv-ligne strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.tn-base-panneau { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tn-nuancier { display: flex; flex-direction: column; gap: 6px; }
.tn-teinte {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tn-teinte:hover { background: color-mix(in srgb, var(--c-surface) 60%, transparent); }
.tn-teinte.est-actif { background: var(--c-surface); border-color: var(--c-texte); box-shadow: 4px 4px 0 var(--c-texte); }
.tn-teinte-nom, .tn-teinte-vers { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tn-teinte-nom strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.tn-teinte-nom small { font-size: .9rem; color: var(--c-texte-2); line-height: 1.3; }
.tn-teinte-vers { font-size: 1rem; line-height: 1.3; }
.tn-teinte-vers small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-teinte.est-actif .tn-teinte-vers { color: var(--c-primaire-texte); }
.tn-js .tn-base-panneau:not([data-famille-active='froid']) [data-liste='froid'],
.tn-js .tn-base-panneau[data-famille-active='froid'] [data-liste='chaud'] { display: none; }
.tn-pastille-teinte { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teinte); box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 4.5px var(--c-texte); }
.tn-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--c-bord); }
.tn-sources-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-texte-2); margin-right: 4px; }
.tn-sources a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px 4px; border-radius: 999px; background: var(--c-surface); border: 1.5px solid var(--c-bord); font-family: var(--f-titre); font-weight: 600; font-size: .86rem; color: var(--c-primaire-texte); text-decoration: none; }
.tn-sources a:hover { border-color: var(--c-texte); }

/* ---------- 03 Reflet ---------- */
.tn-reflet-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.tn-reflet-photo { min-height: 460px; }
.tn-reflet-photo img { position: absolute; inset: 0; object-position: 62% 50%; }
.tn-loupe-note { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--c-surface); border: 2px solid var(--c-texte); border-radius: 12px; box-shadow: 4px 4px 0 var(--c-texte); }
.tn-loupe-note .tn-point-rond { position: relative; flex: none; width: 26px; height: 26px; animation: tn-pouls 1.8s ease-out infinite; }
.tn-loupe-note .tn-point-rond::after { background: var(--c-primaire); }
.tn-loupe-note span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tn-loupe-note strong { font-family: var(--f-titre); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.tn-loupe-note small { font-size: .88rem; color: var(--c-texte-2); line-height: 1.3; }
.tn-jauge-bloc { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tn-jauge { position: relative; height: 34px; margin: 0 6px; }
.tn-jauge-barre { position: absolute; left: 0; right: 0; top: 10px; height: 14px; border-radius: 999px; border: 2px solid var(--c-texte); background: linear-gradient(90deg, hsl(48 70% 74%), hsl(26 62% 56%) 40%, hsl(20 80% 48%) 68%, hsl(24 20% 46%)); }
.tn-jauge-curseur { position: absolute; top: 0; left: var(--pos, 12.5%); width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-texte); box-shadow: 3px 3px 0 var(--c-texte); transition: left .7s cubic-bezier(.6, 0, .2, 1); }
.tn-crans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tn-cran { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-carte); border: 2px solid var(--c-bord); background: var(--c-surface); cursor: pointer; min-width: 0; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.tn-cran.est-actif { border-color: var(--c-texte); box-shadow: var(--o-carte); transform: translateY(-4px); }
.tn-cran-tete { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.tn-cran-tete::after { content: ''; order: 2; flex-basis: 100%; }
.tn-cran-tete strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.tn-cran-qui { flex-basis: auto; margin-left: 42px; order: 3; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px 3px; border-radius: 999px; background: var(--c-doux); color: var(--c-sur-doux); }
.tn-cran.est-actif .tn-cran-qui { background: var(--c-texte); color: var(--c-fond); }
.tn-cran-txt { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; line-height: 1.38; }
.tn-cran-txt small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-suite { align-self: flex-start; margin-top: auto; }

/* ---------- 04 Routine ---------- */
.tn-routine-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.tn-routine-photo { min-height: 420px; }
.tn-routine-photo img { position: absolute; inset: 0; object-position: 30% 40%; }
.tn-routine-legende { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.35; box-shadow: 4px 4px 0 var(--c-texte); }
.tn-routine-legende strong { font-family: var(--f-titre); color: var(--c-primaire-texte); }
.tn-parcours { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tn-fil { position: relative; display: block; height: 6px; border-radius: 999px; background: var(--c-bord); overflow: hidden; }
.tn-fil-plein { position: absolute; inset: 0; background: var(--c-primaire); transform-origin: 0 50%; }
.tn-etapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tn-etape { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; transition: opacity .4s ease; }
.tn-etape-n { font-family: var(--f-titre); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-etape h3 { font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.tn-oui, .tn-non { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.35; }
.tn-oui > span, .tn-non > span { flex: none; margin-top: 3px; }
.tn-oui > span { color: var(--c-primaire-texte); }
.tn-non, .tn-non > span { color: var(--c-texte-2); }
.tn-etape-lien { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--c-bord); font-family: var(--f-titre); font-weight: 600; font-size: .9rem; color: var(--c-primaire-texte) !important; text-decoration: none; }
.tn-etape-lien:hover { text-decoration: underline; }
.tn-anim .tn-etape:not(.est-actif) { opacity: .5; }

/* ---------- 05 Texture ---------- */
.tn-texture-grille { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.tn-texture-photo { min-height: 400px; }
.tn-texture-photo img { position: absolute; inset: 0; object-position: 56% 30%; }
.tn-texture-panneau { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tn-texture-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tn-texture-nom { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-js .tn-texture-cases:not(.est-actif) { display: none; }
.tn-case { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none; background: var(--c-surface); border: 2px solid var(--c-texte); border-radius: var(--r-carte); transition: transform .2s ease, box-shadow .2s ease; }
.tn-case:hover { transform: translate(-2px, -2px); box-shadow: var(--o-carte); }
.tn-case small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-case strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.22; }
.tn-case span { font-size: .93rem; line-height: 1.35; color: var(--c-texte-2); }
.tn-rythme { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.tn-rythme-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; }
.tn-rythme-titre a { color: var(--c-primaire-texte); }
.tn-rythme-ligne { display: grid; grid-template-columns: 82px minmax(0, 1fr) 168px; gap: 14px; align-items: center; }
.tn-rythme-nom { font-family: var(--f-titre); font-weight: 600; font-size: .95rem; }
.tn-semaines { display: grid; grid-template-columns: repeat(52, minmax(0, 1fr)); gap: 2px; height: 20px; }
.tn-semaines i { display: block; border-radius: 2px; background: var(--c-fond-2); }
.tn-semaines i.est-coupe { background: var(--c-primaire); box-shadow: inset 0 0 0 1px var(--c-texte); }
.tn-rythme-txt { display: flex; flex-direction: column; font-size: .92rem; line-height: 1.25; }
.tn-rythme-txt strong { font-family: var(--f-titre); font-weight: 700; }
.tn-rythme-txt small { color: var(--c-texte-2); font-size: .85rem; }

/* ---------- 06 Sommaire ---------- */
.tn-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tn-filtres button { border: 2px solid var(--c-texte); background: var(--c-surface); }
.tn-sommaire-grille { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.tn-guide[hidden] { display: none !important; }
.tn-une { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tn-une-carte { overflow: hidden; transition: transform .2s ease; }
.tn-une-carte:hover { transform: translate(-2px, -2px); }
.tn-une-lien { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tn-une-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 2px solid var(--c-texte); }
.tn-une-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tn-une-carte:hover .tn-une-photo img { transform: scale(1.04); }
.tn-une-corps { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.tn-une-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.tn-une-note { font-size: .95rem; line-height: 1.35; color: var(--c-texte); }
.tn-guide-rub { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primaire-texte); }
.tn-guide-meta { font-size: .9rem; color: var(--c-texte-2); }
.tn-liste { padding: 8px 22px 20px; display: flex; flex-direction: column; }
.tn-guides { display: flex; flex-direction: column; }
.tn-ligne + .tn-ligne { border-top: 1px solid var(--c-bord); }
.tn-js [data-ouvert='non'][data-filtre-actif='tous'] .tn-en-plus, .tn-js [data-ouvert='non']:not([data-filtre-actif]) .tn-en-plus { display: none; }
.tn-guide-lien { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 14px; align-items: center; padding: 14px 0 12px; text-decoration: none; }
.tn-guide-lien:hover .tn-guide-titre { color: var(--c-primaire-texte); }
.tn-guide-n { font-family: var(--f-titre); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-guide-corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tn-guide-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.08rem; line-height: 1.22; transition: color .2s; }
.tn-guide-fleche { color: var(--c-texte); }
.tn-voir-tout { align-self: flex-start; margin-top: 14px; min-height: 46px; padding: 12px 20px 9px; font-size: .98rem !important; }
.tn-voir-tout { display: none; }
.tn-js [data-ouvert='non'] .tn-voir-tout { display: inline-flex; }
.tn-js [data-filtre-actif]:not([data-filtre-actif='tous']) .tn-voir-tout { display: none; }
.tn-rubriques { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.tn-rub-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 6px; border-radius: 999px; background: var(--c-surface); border: 1.5px solid var(--c-bord); font-family: var(--f-titre); font-weight: 600; color: var(--c-texte) !important; text-decoration: none; }
.tn-rub-lien small { font-family: var(--f-mono); font-size: 11px; color: var(--c-primaire-texte); }
.tn-rub-lien:hover { border-color: var(--c-texte); }

/* ---------- 07 Épreuve ---------- */
.tn-epreuve-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 3.5vw, 44px); align-items: stretch; }
.tn-quiz { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 24px 0; min-width: 0; }
.tn-question { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding: 20px 0; }
.tn-question + .tn-question { border-top: 1px solid var(--c-bord); }
.tn-question-n { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; color: var(--c-primaire-texte); padding-top: 2px; white-space: nowrap; }
.tn-question-corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tn-question-q { font-family: var(--f-titre); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.tn-question-e { font-size: .97rem; line-height: 1.42; color: var(--c-texte); padding: 8px 12px 6px; background: var(--c-doux); border-radius: 10px; }
.tn-question-src { font-size: .88rem; color: var(--c-texte-2); }
.tn-question-src a { color: var(--c-primaire-texte); text-decoration: none; border-bottom: 1px solid var(--c-bord); }
.tn-question-choix { display: flex; gap: 6px; }
.tn-question-choix button { min-height: 38px; padding: 8px 12px 5px; border: 2px solid var(--c-texte); background: var(--c-surface); border-radius: 999px; font-family: var(--f-titre); font-weight: 600; font-size: .88rem; color: var(--c-texte); white-space: nowrap; }
.tn-question-choix button:hover { background: var(--c-doux); }
.tn-question-choix button.est-bon { background: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-question-choix button.est-faux { text-decoration: line-through; opacity: .55; }
.tn-js .tn-question:not(.est-repondu) .tn-question-e { display: none; }
.tn-coche { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-width: 0; }
.tn-coche-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tn-coche-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.tn-coche-compte { white-space: nowrap; font-family: var(--f-titre); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--c-primaire-texte); }
.tn-coche-liste { display: flex; flex-direction: column; }
.tn-coche-ligne { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-bord); cursor: pointer; align-items: start; }
.tn-coche-ligne input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tn-coche-case { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--c-texte); display: grid; place-items: center; background: var(--c-surface); color: transparent; transition: background-color .25s, color .25s; }
.tn-coche-ligne input:checked + .tn-coche-case { background: var(--c-primaire); color: var(--c-sur-primaire); }
.tn-coche-ligne input:focus-visible + .tn-coche-case { outline: 3px solid var(--c-primaire); outline-offset: 2px; }
.tn-coche-ligne > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tn-coche-ligne strong { font-family: var(--f-titre); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.tn-coche-ligne small { font-size: .93rem; line-height: 1.35; color: var(--c-texte-2); }
.tn-coche-jauge { display: block; height: 8px; border-radius: 999px; background: var(--c-fond-2); overflow: hidden; border: 1.5px solid var(--c-texte); }
.tn-coche-jauge span { display: block; height: 100%; width: var(--rempli, 100%); background: var(--c-primaire); transition: width .4s ease; }
.tn-coche-verdict { font-size: .98rem; line-height: 1.4; }
.tn-coche .tn-btn { width: 100%; text-align: center; margin-top: auto; }

.tn-score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 0 16px; border-top: 2px solid var(--c-texte); }
.tn-score-cases { display: flex; gap: 4px; }
.tn-score-cases i { width: 28px; height: 12px; border-radius: 3px; border: 1.5px solid var(--c-texte); background: var(--c-surface); transition: background-color .3s; }
.tn-score-cases i.est-bon { background: var(--c-primaire); }
.tn-score-cases i.est-faux { background: var(--c-bord); }
.tn-score-txt { font-size: 1rem; }
.tn-score-txt strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.35rem; color: var(--c-primaire-texte); margin-right: 4px; }
.tn-score-note { margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }

/* ---------- 08 Rédaction ---------- */
.tn-auteurs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tn-auteur-lien { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px 16px; text-decoration: none; transition: transform .2s ease; }
.tn-auteur-lien:hover { transform: translate(-2px, -2px); }
.tn-auteur-tete { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-bord); }
.tn-monogramme { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-doux); border: 2px solid var(--c-texte); font-family: var(--f-titre); font-weight: 700; font-size: 1.25rem; padding-top: 4px; color: var(--c-texte); transition: background-color .25s; }
.tn-auteur-lien:hover .tn-monogramme { background: var(--c-primaire); }
.tn-auteur-id { display: flex; flex-direction: column; gap: 3px; min-height: 3.6em; }
.tn-auteur-id strong { font-family: var(--f-titre); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.tn-auteur-role { font-size: .95rem; color: var(--c-texte-2); line-height: 1.25; }
.tn-auteur-ligne { display: flex; flex-direction: column; gap: 5px; font-size: .95rem; line-height: 1.3; color: var(--c-texte); }
.tn-auteur-ligne small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-texte-2); }
.tn-auteur-barre { display: flex; gap: 4px; }
.tn-auteur-barre i { width: 18px; height: 10px; border-radius: 3px; border: 1.5px solid var(--c-texte); background: var(--c-surface); }
.tn-auteur-barre i.est-plein { background: var(--c-primaire); }
.tn-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; margin-top: 44px; }
.tn-recherche, .tn-sujet { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tn-contact-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tn-sujet p:not(.tn-contact-titre) { font-size: 1rem; line-height: 1.45; color: var(--c-texte-2); }
.tn-sujet .tn-btn { align-self: flex-start; }
.tn-recherche-ligne { display: flex; gap: 10px; }
.tn-pistes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .95rem; color: var(--c-texte-2); }
.tn-pistes a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px 4px; border-radius: 999px; background: var(--c-doux); color: var(--c-sur-doux); font-family: var(--f-titre); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tn-pistes a:hover { background: var(--c-primaire); }
.tn-recherche-ligne input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 2px solid var(--c-texte); border-radius: var(--r-bouton); background: var(--c-surface); font: inherit; font-size: 1.05rem; color: var(--c-texte); }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .tn-auteurs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tn-texture-cases { grid-template-columns: minmax(0, 1fr); }
  .tn-sommaire-grille { grid-template-columns: minmax(0, 1fr); }
  .tn-question { grid-template-columns: 40px minmax(0, 1fr); }
  .tn-question-choix { grid-column: 2; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .tn-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copie' 'scene' 'reperes'; min-height: 0; padding: 18px 0 44px; row-gap: 24px; }
  .tn-hero-copie { gap: 14px; }
  .tn-hero-pastille { display: none; }
  .tn-h1 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
  .tn-chapeau { font-size: 1.06rem; line-height: 1.5; }
  .tn-scene { width: 100%; justify-self: stretch; }
  .tn-reperes { max-width: none; }
  .tn-pastille { white-space: nowrap; letter-spacing: .08em; font-size: 11px; }
  .tn-base-grille, .tn-reflet-grille, .tn-routine-grille, .tn-texture-grille, .tn-epreuve-grille, .tn-contact { grid-template-columns: minmax(0, 1fr); }
  .tn-reflet-photo, .tn-routine-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .tn-texture-photo { display: none; }
}
@media (max-width: 700px) {
  .tn-chapeau-suite { display: none; }
  .tn-sec { margin-inline: -1rem; padding-inline: 1rem; }
  .tn-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .tn-actions .tn-btn { width: 100%; min-height: 50px; }
  .tn-reperes dd { font-size: 2rem; }
  .tn-reperes > div + div { padding-left: 12px; }
  .tn-reperes > div { padding-right: 8px; }
  .tn-teinte { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
  .tn-teinte-vers { grid-column: 2; }
  .tn-crans { grid-template-columns: minmax(0, 1fr); }
  .tn-etapes { grid-template-columns: minmax(0, 1fr); }
  .tn-rythme-ligne { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tn-semaines { grid-column: 1 / -1; grid-row: 2; }
  .tn-rythme-txt { text-align: right; }
  .tn-une { grid-template-columns: minmax(0, 1fr); }
  .tn-une-photo { aspect-ratio: 4 / 3; }
  .tn-liste, .tn-quiz { padding-inline: 16px; }
  .tn-question { grid-template-columns: minmax(0, 1fr); }
  .tn-question-choix { grid-column: 1; flex-wrap: wrap; }
  .tn-auteurs { grid-template-columns: minmax(0, 1fr); }
  .tn-auteur-tete { flex-direction: row; align-items: center; }
  .tn-auteur-id { min-height: 0; }
  .tn-recherche-ligne { flex-direction: column; }
  .tn-fiche-tete { flex-wrap: wrap; }
  .tn-fiche-lignes { grid-template-columns: minmax(0, 1fr); }
  .tn-point-platine .tn-etiquette { left: auto; right: -6px; top: auto; bottom: calc(100% + 10px); transform: none; }
  .tn-point-platine { left: 64%; top: 46%; }
  .tn-point-miel { left: 40%; top: 56%; }
  .tn-bascule { width: 100%; }
  .tn-bascule button { flex: 1; padding-inline: 10px; }
  footer > p[class^='rv-'] { padding-inline: 1.5rem !important; }
}

/* Mouvement réduit : rendu statique complet */
@media (prefers-reduced-motion: reduce) {
  .tn-home *, .tn-home *::before, .tn-home *::after { animation: none !important; transition: none !important; }
  .tn-fiche-ligne, .tn-etape { opacity: 1 !important; }
}
