/* La bande à Tchoutchou : site vitrine
   Signature visuelle : le "sticker" du logo (contour brun épais + ombre blanche décalée).
   Tout le reste reste calme. */
:root {
  --ciel: #7cc3e8;
  --ciel-pale: #e6f5fc;
  --herbe: #2f7a45;
  --herbe-fonce: #1f5a31;
  --herbe-pale: #e3f1dc;
  --caramel: #e8964a;
  --caramel-fonce: #c9702a;
  --brou: #4a2a1d;
  --brou-doux: #6e5244;
  --creme: #fff7ea;
  --grelot: #f2c230;
  --blanc: #fffdf9;
  --contour: 3px solid var(--brou);
  --ombre-sticker: 0 5px 0 var(--brou);
  --large: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--brou);
  font: 400 18px/1.6 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 4px solid var(--grelot); outline-offset: 3px; border-radius: 8px; }

.contenu { max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.saut { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--blanc); padding: 8px 14px; border: var(--contour); border-radius: 12px; }
.saut:focus { left: 8px; }

/* ---------------------------------------------------------------- titres sticker */
.sticker {
  font-size: clamp(34px, 5.4vw, 60px);
  color: var(--caramel);
  -webkit-text-stroke: 0.16em var(--brou);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--blanc), 0 0.16em 0 rgba(74, 42, 29, 0.18);
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.sticker.vert { color: #4fae63; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1 "Fredoka", sans-serif;
  text-decoration: none;
  padding: 15px 24px 14px;
  border: var(--contour);
  border-radius: 999px;
  box-shadow: var(--ombre-sticker);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--brou); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brou); }
.btn-orange { background: var(--caramel); color: var(--blanc); }
.btn-creme { background: var(--blanc); color: var(--brou); }

/* ---------------------------------------------------------------- en-tête */
.entete {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gouttiere);
}
.entete-logo { visibility: hidden; width: 150px; }
.entete-logo img { height: auto; }
.menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.menu a {
  font: 600 17px/1 "Fredoka", sans-serif; text-decoration: none;
  padding: 10px 14px; border-radius: 999px; color: var(--brou);
  background: rgba(255, 253, 249, .78);
}
.menu a:hover { background: var(--blanc); }
.menu .btn-yt { display: inline-flex; align-items: center; gap: 8px; background: #e0312b; color: #fff; border: 2px solid var(--brou); }
.menu .btn-yt:hover { background: #c4211c; }
.btn-yt svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------------------------------------------------------------- scène (hero) */
.scene {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  padding: 90px var(--gouttiere) 0;
  overflow: hidden;
  isolation: isolate;
}
.scene-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.scene::after { /* voile léger côté texte pour la lisibilité */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(260deg, rgba(255, 247, 234, .55) 0%, rgba(255, 247, 234, 0) 55%);
}
.scene-texte { max-width: 620px; justify-self: start; width: 100%; padding-bottom: 8vh; order: 2; }
.scene-perso { order: 1; }
.scene-texte h1 img { width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(74, 42, 29, .18)); }
.accroche {
  font: 600 clamp(19px, 2.1vw, 24px)/1.4 "Nunito", sans-serif;
  max-width: 30ch; margin: 6px 0 26px 4%;
  background: var(--blanc); border: var(--contour); border-radius: 20px;
  padding: 14px 20px; box-shadow: var(--ombre-sticker);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-left: 4%; }

.scene-perso { position: relative; margin: 0; align-self: end; justify-self: center; width: min(100%, 470px); }
.tchou { width: 100%; height: auto; aspect-ratio: 576 / 720; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(40, 60, 20, .28)); }
.bulle {
  position: absolute; top: 4%; right: -2%;
  font: 700 20px/1.2 "Fredoka", sans-serif;
  background: var(--blanc); border: var(--contour); border-radius: 22px;
  padding: 12px 16px; box-shadow: var(--ombre-sticker);
  transform: rotate(4deg);
  animation: bulle 5s ease-in-out 1s both;
}
.bulle::after {
  content: ""; position: absolute; left: 22px; bottom: -14px;
  width: 22px; height: 22px; background: var(--blanc);
  border-right: var(--contour); border-bottom: var(--contour);
  transform: rotate(45deg) skew(8deg, 8deg);
}
@keyframes bulle { 0% { opacity: 0; transform: rotate(4deg) scale(.6); } 8%, 100% { opacity: 1; transform: rotate(4deg) scale(1); } }

/* ---------------------------------------------------------------- sections */
.tete-section { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.lien { font: 700 18px/1.2 "Fredoka", sans-serif; color: var(--herbe-fonce); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.intro { font-size: 19px; color: var(--brou-doux); margin: -10px 0 24px; max-width: 60ch; }

/* ---------------------------------------------------------------- vidéos */
.videos { background: var(--ciel-pale); padding: 72px 0 80px; border-top: var(--contour); }
.videos-grille { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.video-une { background: var(--blanc); border: var(--contour); border-radius: 26px; box-shadow: 0 8px 0 var(--brou); overflow: hidden; }
.lecteur { position: relative; aspect-ratio: 16 / 9; background: #1d2a1f; border-bottom: var(--contour); }
.lecteur img, .lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.lecteur button {
  position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.lecteur .play {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--caramel); border: var(--contour); box-shadow: var(--ombre-sticker);
  display: grid; place-items: center; transition: transform .15s ease;
}
.lecteur .play svg { width: 40px; height: 40px; fill: var(--blanc); margin-left: 6px; }
.lecteur button:hover .play { transform: scale(1.08); }
.video-une-texte { padding: 20px 24px 24px; }
.video-une-texte .quand { font: 600 15px/1 "Nunito", sans-serif; color: var(--herbe-fonce); background: var(--herbe-pale); border-radius: 999px; padding: 6px 12px; display: inline-block; margin-bottom: 10px; }
.video-une-texte h3 { font-size: clamp(24px, 2.6vw, 32px); }

.videos-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.videos-liste button {
  width: 100%; display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--blanc); border: 2px solid var(--brou); border-radius: 18px; padding: 8px;
}
.videos-liste button:hover, .videos-liste button[aria-current="true"] { background: #fff1d9; }
.videos-liste button[aria-current="true"] { border-width: 3px; padding: 7px; }
.videos-liste img { width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.videos-liste .t { font: 600 17px/1.25 "Fredoka", sans-serif; }
.videos-liste .d { display: block; font-size: 14px; color: var(--brou-doux); margin-top: 4px; font-family: "Nunito", sans-serif; font-weight: 600; }
.videos-liste .abonne { border-style: dashed; grid-template-columns: 1fr; text-align: center; padding: 18px; font: 600 17px/1.3 "Fredoka", sans-serif; text-decoration: none; display: block; border: 2px dashed var(--brou); border-radius: 18px; }
.videos-liste .abonne:hover { background: #fff1d9; }

/* ---------------------------------------------------------------- parents */
.parents { background: var(--herbe); color: var(--blanc); padding: 44px 0; border-top: var(--contour); border-bottom: var(--contour); }
.parents-contenu { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; }
.parents h2 { font-size: 30px; color: var(--grelot); }
.parents ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.parents li { font-size: 17px; line-height: 1.5; padding-left: 18px; border-left: 3px solid rgba(255, 253, 249, .45); }
.parents strong { display: block; font: 700 19px/1.3 "Fredoka", sans-serif; }

/* ---------------------------------------------------------------- la bande : fiche + sélecteur */
.bande { padding: 76px 0 84px; background: var(--creme); }
.bande-grille {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}

/* la fiche du chien choisi : un grand "sticker" à sa couleur */
.fiche {
  --c: var(--herbe);
  position: relative;
  background: color-mix(in srgb, var(--c) 16%, var(--blanc));
  border: var(--contour); border-radius: 32px;
  box-shadow: 0 8px 0 var(--brou);
  padding: 30px 30px 32px;
  overflow: hidden;
  position: sticky; top: 24px;
}
.fiche::before { /* grand disc de couleur derrière le portrait */
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  right: -90px; top: -110px; background: color-mix(in srgb, var(--c) 32%, var(--blanc));
}
.fiche > * { position: relative; }
.fiche-haut { display: flex; align-items: center; gap: 22px; }
.fiche .portrait {
  flex: 0 0 auto; width: clamp(150px, 15vw, 196px); aspect-ratio: 1; border-radius: 50%;
  border: 4px solid var(--brou); overflow: hidden; background: var(--blanc);
  box-shadow: 0 6px 0 var(--brou);
}
.fiche .portrait img { width: 100%; height: 100%; object-fit: cover; }
.fiche h3 { font-size: clamp(32px, 3.6vw, 46px); color: var(--brou); }
.fiche .role {
  display: inline-block; margin-top: 8px;
  font: 600 16px/1 "Fredoka", sans-serif; color: var(--blanc);
  background: var(--c); border: 2px solid var(--brou); border-radius: 999px; padding: 6px 12px;
}
.fiche .race { font-weight: 700; color: var(--brou-doux); margin-top: 8px; font-size: 16px; }
.fiche .phrase {
  margin: 24px 0 16px; max-width: 100%;
  font: 700 clamp(21px, 2.2vw, 26px)/1.25 "Fredoka", sans-serif;
  background: var(--blanc); border: var(--contour); border-radius: 22px 22px 22px 6px; padding: 14px 18px;
  box-shadow: 0 4px 0 var(--brou);
}
.fiche .texte { max-width: 56ch; }
.fiche .traits { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fiche .traits li {
  font-size: 15px; font-weight: 700; color: var(--brou);
  background: var(--blanc); border: 2px solid color-mix(in srgb, var(--c) 55%, var(--brou)); border-radius: 999px; padding: 4px 12px;
}
.fiche.change { animation: fiche .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes fiche { from { transform: scale(.98); opacity: .5; } to { transform: none; opacity: 1; } }

/* le sélecteur */
.choix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
.choix .sep {
  grid-column: 1 / -1; margin-top: 6px;
  font: 600 18px/1.2 "Fredoka", sans-serif; color: var(--brou-doux);
  display: flex; align-items: center; gap: 12px;
}
.choix .sep::after { content: ""; flex: 1; border-top: 2px dashed color-mix(in srgb, var(--brou) 35%, transparent); }
.chien {
  --c: var(--herbe);
  width: 100%; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.chien .rond {
  width: min(100%, 118px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--brou); background: var(--blanc);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, var(--creme)), 0 5px 0 5px var(--brou);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease;
}
.chien .rond img { width: 100%; height: 100%; object-fit: cover; }
.chien .nom { font: 600 17px/1.1 "Fredoka", sans-serif; text-align: center; margin-top: 6px; }
.chien:hover .rond { transform: translateY(-4px) rotate(-3deg); }
.chien[aria-pressed="true"] .rond { box-shadow: 0 0 0 6px var(--c), 0 6px 0 6px var(--brou); transform: translateY(-4px); }
.chien[aria-pressed="true"] .nom { color: var(--brou); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--c); }

/* ---------------------------------------------------------------- village */
.village { background: var(--herbe-pale); padding: 76px 0 84px; border-top: var(--contour); }
.cartes {
  list-style: none; margin: 0; padding: 10px var(--gouttiere) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 30vw, 380px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere);
  scrollbar-width: thin;
}
.cartes li { scroll-snap-align: start; }
.carte {
  margin: 0; background: var(--blanc); border: var(--contour); border-radius: 10px;
  padding: 10px 10px 14px; box-shadow: 0 6px 0 var(--brou);
  transform: rotate(var(--r, 0deg));
}
.carte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; border: 2px solid var(--brou); }
.carte figcaption { font: 600 19px/1.2 "Fredoka", sans-serif; padding: 10px 4px 0; }

/* ---------------------------------------------------------------- pied */
.pied { background: var(--brou); color: var(--creme); padding: 44px 0 52px; }
.pied-contenu { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.pied-logo { height: 54px; width: auto; }
.pied p { flex: 1 1 280px; }
.pied nav { display: flex; gap: 20px; }
.pied a { font-weight: 700; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- tailles d'écran */
@media (max-width: 980px) {
  .scene { grid-template-columns: 1fr; padding-top: 96px; min-height: 0; text-align: left; }
  .scene-texte { justify-self: start; padding-bottom: 0; order: 0; }
  .scene-perso { order: 1; }
  .scene::after { background: linear-gradient(100deg, rgba(255, 247, 234, .55) 0%, rgba(255, 247, 234, 0) 55%); }
  .scene-perso { width: min(68vw, 340px); margin-top: 10px; }
  .bulle { right: -12%; font-size: 17px; }
  .videos-grille { grid-template-columns: 1fr; }
  .parents-contenu { grid-template-columns: 1fr; }
  .parents ul { grid-template-columns: 1fr; gap: 16px; }
  .bande-grille { grid-template-columns: 1fr; }
  .fiche { position: relative; top: auto; }
  .choix { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .menu a:not(.btn-yt) { display: none; }
  .accroche, .actions { margin-left: 0; }
  .btn { font-size: 17px; padding: 13px 18px 12px; }
  .scene-texte h1 img { width: 108%; margin-left: -4%; max-width: none; }
  .fiche { padding: 22px 18px 24px; }
  .fiche-haut { gap: 14px; }
  .fiche .portrait { width: 112px; }
  .choix { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
  .chien .rond { width: min(100%, 88px); }
  .chien .nom { font-size: 15px; }
  .videos-liste button { grid-template-columns: 120px 1fr; }
  .videos-liste img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
