/* ═══════════════════════════════════════════════════════════
   toc toc toc — site.css
   Le site public. Mêmes couleurs, mêmes polices et même dessin de porte
   que my/app.css : en arrivant dans l'app, le parent doit reconnaître la
   rue qu'il vient de voir.
═══════════════════════════════════════════════════════════ */

:root {
  --fond: #F6F3EC;
  --fond2: #EFEADF;
  --surface: #FFFFFF;
  --encre: #191512;
  --encre2: #4A4238;
  --doux: #8B8072;
  --vert: #256D3B;
  --vert-vif: #2E8A4A;
  --vert-fonce: #1E5C32;
  --vert-tint: #E4F0E5;
  --orange: #E2711D;
  --orange-fonce: #B15A10;
  --orange-tint: #FCEFDF;
  --trait: #E3DCCD;
  --ombre: 0 1px 2px rgba(25,21,18,0.04), 0 14px 34px -14px rgba(25,21,18,0.16);
  --titre: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --texte: 'Outfit', 'Trebuchet MS', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--texte); background: var(--fond); color: var(--encre);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.tt-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.tt-col > * { max-width: 780px; }
.tt-skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.tt-skip:focus { left: 8px; }

/* ── Barre du haut ─────────────────────────────────────── */
.tt-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.tt-bar.tt-colle { border-bottom-color: var(--trait); }
.tt-bar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.tt-marque { text-decoration: none; display: inline-flex; align-items: center; }
.tt-marque-nom, .tt-pied-marque { font-family: var(--titre); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.tt-point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: 5px; }
.tt-nav { display: flex; gap: 22px; margin-left: auto; }
.tt-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--doux); }
.tt-nav a:hover { color: var(--encre); }
@media (max-width: 960px) { .tt-nav { display: none; } .tt-bar-in .tt-btn-sm { margin-left: auto; } }

/* ── Boutons ───────────────────────────────────────────── */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: linear-gradient(135deg, var(--vert-vif), var(--vert)); color: #fff;
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 14px 26px; min-height: 52px;
  box-shadow: 0 14px 28px -12px rgba(37,109,59,0.6); transition: transform 0.12s ease, box-shadow 0.2s;
}
.tt-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -12px rgba(37,109,59,0.65); }
.tt-btn:active { transform: scale(0.98); }
.tt-btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14.5px; box-shadow: none; }
.tt-btn-lg { min-height: 60px; padding: 16px 32px; font-size: 18px; }
.tt-btn-blanc { background: #fff; color: var(--vert); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.45); }

/* ── Hero ──────────────────────────────────────────────── */
.tt-hero {
  padding: 56px 0 64px 0;
  background:
    radial-gradient(520px 320px at 92% 0%, rgba(226,113,29,0.12), transparent 70%),
    radial-gradient(560px 360px at 0% 10%, rgba(37,109,59,0.12), transparent 70%);
}
.tt-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .tt-hero-in { grid-template-columns: 1fr; gap: 36px; } .tt-hero { padding-top: 32px; } }
.tt-signature { font-weight: 700; color: var(--orange-fonce); font-size: 17px; margin-bottom: 10px; }
.tt-h1 { font-family: var(--titre); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; }
.tt-lede { font-size: 19px; color: var(--encre2); max-width: 560px; }
.tt-cta-ligne { margin: 28px 0 18px 0; }
.tt-cta-note { font-size: 14px; color: var(--doux); margin-top: 12px; }
.tt-pastilles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-pastilles li { background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }

/* La rue de démonstration */
.tt-rue-carte { background: var(--surface); border-radius: 28px; padding: 22px 18px 18px 18px; box-shadow: var(--ombre); }
.tt-rue-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 6px 6px 6px; }
.tt-direct {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange-fonce); background: var(--orange-tint); padding: 6px 12px; border-radius: 999px;
}
.tt-direct::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: tt-pulse 1.5s infinite; }
@keyframes tt-pulse { 50% { opacity: 0.3; transform: scale(0.8); } }
.tt-essai { font-size: 13.5px; font-weight: 600; color: var(--doux); font-style: italic; }
.tt-rue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.tt-porte-bloc {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: none; border: none; cursor: pointer; padding: 18px 2px 6px 2px; border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}
.tt-porte-bloc:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.tt-porte {
  position: relative; display: block; width: 104px; height: 157px;
  background: var(--c);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 78%, #FFFFFF), var(--c) 64%);
  border: 5px solid #fff; border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(25,21,18,0.10), inset 0 0 0 1px rgba(0,0,0,0.10), 0 18px 30px -16px rgba(25,21,18,0.5);
  transition: transform 0.15s ease;
}
@media (max-width: 420px) { .tt-porte { width: 86px; height: 130px; } }
.tt-porte-bloc:active .tt-porte { transform: scale(0.96); }
.tt-imposte { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 54%; height: auto; }
.tt-pan { position: absolute; border-radius: 4px; background: rgba(0,0,0,0.10); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.18); width: 28%; }
.tt-p1 { left: 13%; top: 30%; height: 22%; }
.tt-p2 { right: 13%; top: 30%; height: 22%; }
.tt-p3 { left: 13%; top: 57%; height: 30%; }
.tt-p4 { right: 13%; top: 57%; height: 30%; }
.tt-pan { transform: none !important; }
.tt-bequille { position: absolute; right: 6%; top: 52%; width: 19%; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #F0F0EE, #A8A9AB); box-shadow: 0 2px 3px rgba(0,0,0,0.25); }
.tt-plaque {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--c); color: #fff; font-weight: 700; font-size: 10.5px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 8px -3px rgba(25,21,18,0.4);
}
.tt-paillasson { display: block; width: 62%; height: 6px; margin: 7px auto 0 auto; border-radius: 4px; background: rgba(25,21,18,0.14); }
.tt-porte-nom { font-weight: 700; font-size: 14px; margin-top: 8px; line-height: 1.3; }
.tt-porte-fam { font-size: 12.5px; color: var(--doux); font-weight: 500; }
.tt-porte-badge { min-height: 26px; margin-top: 6px; }
.tt-porte-badge.tt-oui {
  display: inline-block; background: var(--vert-tint); color: var(--vert); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; animation: tt-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes tt-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.tt-porte.tt-toc { animation: tt-toquer 0.8s ease; }
@keyframes tt-toquer {
  12%, 36%, 60% { transform: translateX(-3px) rotate(-0.8deg); }
  24%, 48%, 72% { transform: translateX(3px) rotate(0.8deg); }
}
.tt-poing { position: absolute; right: 0; top: 66px; font-size: 38px; z-index: 3; pointer-events: none; animation: tt-cogner 0.22s ease-in 3; filter: drop-shadow(0 6px 8px rgba(25,21,18,0.35)); }
@keyframes tt-cogner {
  0% { transform: translate(20px, 12px) rotate(-14deg); }
  55% { transform: translate(-2px, 0) rotate(0deg) scale(0.95); }
  100% { transform: translate(20px, 12px) rotate(-14deg); }
}
.tt-mot { position: absolute; right: -6px; font-family: var(--titre); font-weight: 700; font-size: 17px; color: var(--orange); z-index: 4; pointer-events: none; animation: tt-motpop 0.6s ease forwards; }
@keyframes tt-motpop {
  0% { opacity: 0; transform: scale(0.4) rotate(8deg); }
  30% { opacity: 1; transform: scale(1.2) rotate(-4deg); }
  100% { opacity: 0; transform: scale(1) translateY(-16px); }
}

/* ── Réponse courte ────────────────────────────────────── */
.tt-bref { padding: 8px 0 24px 0; }
.tt-bref-carte { background: var(--surface); border-radius: 24px; padding: 28px 30px; box-shadow: var(--ombre); border-left: 6px solid var(--vert); max-width: 900px; }
.tt-bref-t { font-family: var(--titre); font-size: 22px; margin-bottom: 6px; }
.tt-bref-carte p { color: var(--encre2); }

/* ── Sections ──────────────────────────────────────────── */
.tt-sec { padding: 76px 0; }
.tt-sec-alt { background: var(--fond2); }
.tt-h2 { font-family: var(--titre); font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 12px; }
.tt-h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.tt-chapo { font-size: 19px; color: var(--doux); font-weight: 500; margin-bottom: 30px; max-width: 720px; }
.tt-sec p + p { margin-top: 14px; }
.tt-scene { font-size: 19px; font-weight: 500; color: var(--encre); border-left: 4px solid var(--orange); padding-left: 18px; margin: 18px 0 20px 0; }
.tt-sec .tt-col > p:not(.tt-scene):not(.tt-sources):not(.tt-soulagement) { color: var(--encre2); }
.tt-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
@media (max-width: 700px) { .tt-stats { grid-template-columns: 1fr; } }
.tt-stats li { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--ombre); }
.tt-stat-n { display: block; font-family: var(--titre); font-weight: 700; font-size: 40px; line-height: 1; color: var(--orange-fonce); margin-bottom: 8px; }
.tt-stat-l { font-size: 14.5px; color: var(--encre2); line-height: 1.45; display: block; }
.tt-soulagement { font-family: var(--titre); font-size: 24px; font-weight: 700; color: var(--vert); line-height: 1.25; }
.tt-sources { font-size: 13px; color: var(--doux); margin-top: 18px; line-height: 1.5; }

/* Étapes */
.tt-etapes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .tt-etapes { grid-template-columns: 1fr; } }
.tt-etape { background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--ombre); }
.tt-etape p { color: var(--encre2); font-size: 16px; }
.tt-etape-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #F08A33, #D9660F); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 22px; margin-bottom: 14px;
}

/* Jeu du jour */
.tt-jeu { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .tt-jeu { grid-template-columns: 1fr; gap: 28px; } }
.tt-jeu-txt p:not(.tt-chapo) { color: var(--encre2); }
.tt-jeu-exemple {
  display: flex; flex-direction: column; gap: 6px; background: #FFF6E8; border: 2px dashed rgba(226,113,29,0.5);
  border-radius: 24px; padding: 26px; color: #7A4A12; transform: rotate(-1.5deg);
}
.tt-jeu-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-fonce); }
.tt-jeu-nom { font-family: var(--titre); font-size: 28px; font-weight: 700; color: #5E3A0E; }
.tt-jeu-texte { font-size: 17px; line-height: 1.5; }

/* Règles */
.tt-sec-vert { background: linear-gradient(135deg, var(--vert-vif), var(--vert-fonce)); color: #fff; }
.tt-sec-vert .tt-chapo { color: rgba(255,255,255,0.78); }
.tt-regles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tt-regle { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16); border-radius: 22px; padding: 24px; }
.tt-regle p { color: rgba(255,255,255,0.84); font-size: 16px; }
.tt-regle-n { display: inline-block; font-family: var(--titre); font-weight: 700; font-size: 15px; color: var(--vert-fonce); background: #fff; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; margin-bottom: 12px; }

/* Inviter */
.tt-invits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .tt-invits { grid-template-columns: 1fr; } }
.tt-invit { background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--ombre); border-top: 5px solid var(--orange); }
.tt-invit:nth-child(2) { border-top-color: var(--vert); }
.tt-invit:nth-child(3) { border-top-color: #4A6D93; }
.tt-invit p { color: var(--encre2); font-size: 16px; }

/* Témoignages */
.tt-temoins { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tt-temoin { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--ombre); }
.tt-temoin-qui { font-size: 14px; color: var(--doux); margin-top: 10px; }

/* Comparatif */
.tt-tableau-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; box-shadow: var(--ombre); }
.tt-tableau { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--surface); font-size: 15px; }
.tt-tableau th, .tt-tableau td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tt-tableau thead th { font-size: 14px; font-weight: 800; background: #FBF9F4; }
.tt-tableau tbody th { font-weight: 700; width: 24%; }
.tt-tableau td { color: var(--encre2); }
.tt-tableau tr:last-child th, .tt-tableau tr:last-child td { border-bottom: none; }
.tt-tableau .tt-nous, .tt-tableau thead th:nth-child(2) { background: var(--vert-tint); color: var(--vert-fonce); font-weight: 700; }

/* FAQ */
.tt-faq { margin-top: 18px; }
.tt-q { background: var(--surface); border-radius: 18px; margin-bottom: 10px; box-shadow: var(--ombre); }
.tt-q summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; }
.tt-q summary::-webkit-details-marker { display: none; }
.tt-q summary h3 { font-size: 17px; font-weight: 700; }
.tt-q summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 600; color: var(--vert); transition: transform 0.2s; }
.tt-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tt-r { padding: 0 22px 20px 22px; color: var(--encre2); }

/* Dernière porte */
.tt-final { background: linear-gradient(135deg, #F08A33, #D9660F); color: #fff; text-align: center; padding: 80px 0; }
.tt-final .tt-signature { color: #fff; font-family: var(--titre); font-size: clamp(26px, 4vw, 38px); line-height: 1.15; max-width: 760px; margin: 0 auto 12px auto; }
.tt-final-p { font-size: 18px; color: rgba(255,255,255,0.88); max-width: 600px; margin: 0 auto 28px auto; }

/* Pied de page */
.tt-pied { padding: 40px 0 48px 0; background: var(--fond); }
.tt-pied-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.tt-pied-base { color: var(--doux); font-size: 15px; }
.tt-pied-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.tt-pied-nav a { font-size: 14.5px; font-weight: 600; color: var(--doux); text-decoration: none; }
.tt-pied-nav a:hover { color: var(--encre); }
.tt-pied-legal { width: 100%; font-size: 13px; color: var(--doux); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .tt-sec { padding: 56px 0; }
  .tt-lede, .tt-chapo, .tt-scene { font-size: 17px; }
  .tt-btn-lg { width: 100%; }
  .tt-rue-carte { padding: 18px 8px 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
