/* ==========================================================================
   Klemsiteweb, page d'accueil (index.html) : la rue Klem
   Propriétaire : Claude 1. Chargé après style.css.
   ========================================================================== */


.grille .apparait:nth-child(2), .timbres .apparait:nth-child(2), .pancartes .apparait:nth-child(2) { transition-delay: 90ms; }
.grille .apparait:nth-child(3), .timbres .apparait:nth-child(3), .pancartes .apparait:nth-child(3) { transition-delay: 180ms; }
.pancartes .apparait:nth-child(4) { transition-delay: 270ms; }

.section-lien { margin: 48px 0 0; text-align: center; }

/* ==========================================================================
   Hero : la rue
   ========================================================================== */
.hero-rue { padding-top: 0; overflow: hidden; }
.hero-secours { padding: 32px var(--gouttiere); text-align: center; }

.hero-texte { text-align: center; }
.hero-texte h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); max-width: 24ch; margin-left: auto; margin-right: auto; }
.hero-texte .sous-titre { margin: 0 auto 28px; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Couleurs de saison (pilotées par data-saison) ---- */
.rue-zone {
  --ciel-haut: #F6D3B0; --ciel-bas: #F8F2E5; --soleil: #E8A23A;
  --mont: #B98A60; --ville: #E2CBB0;
  --feuillage: #D9622B; --feuillage-2: #EFA94A; --feuillage-ombre: #A8451F; --fleur: #D94A2B;
  --foret: #C8692E; --foret-ombre: #9A4A26; --foret-3: #E3A13E;
  position: relative;
}
.rue-zone[data-saison="hiver"] { --ciel-haut: #BFCFE0; --ciel-bas: #EEF1F4; --soleil: #F4F1E8; --mont: #E4E9EF; --ville: #CCD6E1; --foret: #F6F8FA; --foret-ombre: #B7C3CF; --foret-3: #DCE3EA; }
.rue-zone[data-saison="printemps"] { --ciel-haut: #CBE4F2; --ciel-bas: #F8F2E5; --soleil: #F5C04A; --mont: #A9C79A; --ville: #D6E1E6; --feuillage: #F2B3C4; --feuillage-2: #FBE0E7; --feuillage-ombre: #D98AA2; --fleur: #E8638A; --foret: #9CC27F; --foret-ombre: #7AA563; --foret-3: #F2B3C4; }
.rue-zone[data-saison="ete"] { --ciel-haut: #8FCAEE; --ciel-bas: #EEF6F2; --soleil: #F3B53A; --mont: #6F9C5D; --ville: #C5DAE6; --feuillage: #4F8A3A; --feuillage-2: #7DB35B; --feuillage-ombre: #36662A; --fleur: #E04A3A; --foret: #5E9447; --foret-ombre: #3F7232; --foret-3: #79AE58; }

#rue .ciel-haut { stop-color: var(--ciel-haut); transition: stop-color 600ms; }
#rue .ciel-bas { stop-color: var(--ciel-bas); transition: stop-color 600ms; }
#rue .soleil { fill: var(--soleil); }
#rue .mont { fill: var(--mont); }
#rue .ville { fill: var(--ville); color: var(--ville); }
#rue .feuillage { fill: var(--feuillage); }
#rue .feuillage-2 { fill: var(--feuillage-2); }
#rue .feuillage-ombre { fill: var(--feuillage-ombre); }
#rue .foret-1 { fill: var(--foret); }
#rue .foret-ombre { fill: var(--foret-ombre); }
#rue .foret-3 { fill: var(--foret-3); }
#rue .fleur { fill: var(--fleur); }
#rue .carreau { fill: #2F3E52; }
#rue .carreau-allume { fill: #FFE6A3; }

#rue .neige, #rue .feuilles-sol, #rue .particules { display: none; }
.rue-zone[data-saison="hiver"] #rue .neige { display: inline; }
.rue-zone[data-saison="hiver"] #rue .plantes { display: none; }
.rue-zone[data-saison="automne"] #rue .feuilles-sol { display: inline; }
.rue-zone[data-saison="automne"] #rue .particules-automne,
.rue-zone[data-saison="hiver"] #rue .particules-hiver,
.rue-zone[data-saison="printemps"] #rue .particules-printemps { display: inline; }

/* Particules qui tombent */
#rue .particule {
  fill: var(--feuillage);
  animation: rue-chute var(--duree) linear var(--delai) infinite;
}
#rue .particule-2 { fill: var(--feuillage-2); }
#rue .particules-hiver .particule { fill: #fff; }
#rue .particules-printemps .particule { fill: #F4BCCB; }
@keyframes rue-chute {
  from { transform: translate(var(--x), -210px) rotate(0deg); }
  to { transform: translate(calc(var(--x) + var(--derive)), 600px) rotate(540deg); }
}

/* Nuages qui dérivent */
#rue .nuages { animation: rue-nuages 40s ease-in-out infinite alternate; }
@keyframes rue-nuages { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

/* ---- Défilement de la rue ---- */
.rue-defile {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rue-defile::-webkit-scrollbar { display: none; }
#rue { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  #rue { width: 1048px; height: 563px; max-width: none; }
}

.rue-indice {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  color: var(--cuir);
  font-size: 1.45rem;
  transition: opacity 300ms;
}
.indice-doigt { display: none; }
@media (hover: none) {
  .indice-souris { display: none; }
  .indice-doigt { display: inline; }
}
.rue-visitee .rue-indice { opacity: 0.35; }

/* ---- Boutiques interactives ---- */
#rue .boutique, #rue .objet-cliquable { cursor: pointer; outline: none; }
#rue .voile { opacity: 0.22; transition: opacity 350ms ease-out; }
.js .rue-zone:not(.rue-ouverte) #rue .voile { opacity: 0.9; }
.rue-ouverte #rue .voile { animation: rue-allume 900ms ease-out calc(var(--ordre) * 180ms) backwards; }
@keyframes rue-allume { 0% { opacity: 0.9; } 55% { opacity: 0; } 100% { opacity: 0.22; } }
#rue .boutique-libre .voile { opacity: 0.15; }

#rue .halo { opacity: 0; transition: opacity 300ms; }
#rue .enseigne { transition: filter 300ms; }
#rue .bulle { opacity: 0; transform: translateY(8px); transition: opacity 200ms, transform 200ms; pointer-events: none; }
#rue .contour-focus { stroke: none; }

#rue .boutique:hover .voile, #rue .boutique:focus-visible .voile { opacity: 0; animation: none; }
#rue .boutique:hover .halo, #rue .boutique:focus-visible .halo { opacity: 0.9; }
#rue .boutique:hover .enseigne, #rue .boutique:focus-visible .enseigne { filter: brightness(1.18) saturate(1.1); }
#rue .boutique:hover .bulle, #rue .boutique:focus-visible .bulle { opacity: 1; transform: none; }
#rue .boutique:focus-visible .contour-focus,
#rue .objet-cliquable:focus-visible .contour-focus { stroke: var(--cobalt); stroke-width: 4; stroke-dasharray: 10 6; }

/* La vitrine libre : toujours un peu éclairée, ampoules qui clignotent, bulle permanente */
#rue .boutique-libre .halo { opacity: 0.55; }
#rue .bulle-fixe { opacity: 1; transform: none; animation: bulle-flotte 2.6s ease-in-out infinite; }
@keyframes bulle-flotte { 50% { transform: translateY(-5px); } }
#rue .ampoule { fill: #FFE6A3; animation: ampoule 1.2s steps(1) infinite; animation-delay: calc(var(--i) * 0.4s); }
@keyframes ampoule { 0% { fill: #FFF3C4; } 33% { fill: #C9A24A; } }
#rue .chevalet { cursor: pointer; transition: filter 200ms; }
#rue .chevalet:hover { filter: brightness(1.15) drop-shadow(0 0 6px rgba(255, 230, 163, 0.9)); }

/* Ouverture des boutiques */
#rue .store { transform-box: fill-box; transform-origin: 50% 0; }
.js .rue-zone:not(.rue-ouverte) #rue .store { transform: scaleY(0); }
.rue-ouverte #rue .store { animation: store-deroule 600ms cubic-bezier(0.3, 1.4, 0.5, 1) calc(var(--ordre) * 180ms) backwards; }
@keyframes store-deroule { from { transform: scaleY(0); } }
.js .rue-zone:not(.rue-ouverte) #rue .peint { opacity: 0; }
.rue-ouverte #rue .peint { animation: peinture 900ms ease-out backwards; }
.rue-ouverte #rue .peint-2 { animation-delay: 250ms; }
.rue-ouverte #rue .peint-3 { animation-delay: 650ms; }
@keyframes peinture { from { opacity: 0; } }
#rue .panneau { cursor: pointer; transform-box: fill-box; transform-origin: 50% -30px; }
.rue-ouverte #rue .panneau { animation: panneau-balance 1.6s ease-in-out 1.2s backwards; }
@keyframes panneau-balance { 0% { transform: rotate(0); } 20% { transform: rotate(3deg); } 45% { transform: rotate(-2deg); } 70% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
#rue .panneau:hover rect:nth-child(2), #rue .panneau:focus-visible rect:nth-child(2) { filter: brightness(1.12); }
#rue .panneau:focus-visible { outline: none; }
#rue .panneau:focus-visible rect:nth-child(2) { stroke: var(--or); stroke-width: 4; }

/* Sur écran tactile, les bulles restent visibles pour inviter à toucher */
@media (hover: none) {
  #rue .bulle { opacity: 1; transform: none; }
}

/* Petits détails vivants */
#rue .minou .queue { transform-box: fill-box; transform-origin: 100% 100%; animation: rue-queue 3s ease-in-out infinite; }
@keyframes rue-queue { 0%, 70%, 100% { transform: rotate(0deg); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(8deg); } }
#rue .minou:hover .queue { animation-duration: 0.6s; }
#rue .ecran-cv { animation: rue-ecran 1.4s steps(2) infinite; }
@keyframes rue-ecran { 50% { opacity: 0.4; } }
#rue .objet-cliquable:hover { filter: drop-shadow(0 0 6px rgba(255, 230, 163, 0.9)); }

/* ---- Choix de la saison ---- */
.saisons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding-top: 18px;
  padding-bottom: 8px;
}
.saisons-titre { font-family: var(--f-main); font-size: 1.45rem; color: var(--cuir); }
.saisons-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.saisons-choix button {
  font: 600 14px/1 var(--f-texte);
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--encre);
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.saisons-choix button:hover { background: rgba(30, 26, 21, 0.06); }
@media (max-width: 480px) {
  .saisons-choix { gap: 6px; }
  .saisons-choix button { padding: 9px 12px; font-size: 13px; }
}
.saisons-choix button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }

.rue-liste { padding-top: 16px; }

/* ==========================================================================
   Pour qui
   ========================================================================== */
.pourqui { margin-top: 56px; gap: 40px 28px; }
.pq {
  position: relative;
  background: var(--papier);
  border-radius: 0 0 var(--rayon-carte) var(--rayon-carte);
  border: 2px solid var(--encre);
  border-top: 0;
  padding: 44px 24px 24px;
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}
/* Le store festonné au-dessus de chaque carte, comme les devantures de la rue */
.pq-store {
  position: absolute;
  left: -8px; right: -8px; top: -26px;
  height: 30px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, var(--blanc-pur) 28px 56px);
  border: 2px solid var(--encre);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.pq-store::after {
  /* festons : même origine et même période que les rayures, chaque demi-cercle prolonge sa bande */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
  background:
    radial-gradient(circle at 14px 0, var(--accent) 13.5px, transparent 14px) 0 0 / 56px 14px repeat-x,
    radial-gradient(circle at 14px 0, var(--blanc-pur) 13.5px, transparent 14px) 28px 0 / 56px 14px repeat-x;
}
.pq-dessin {
  width: 150px;
  height: auto;
  margin: 0 0 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pq h3 { margin-bottom: 0.4em; }
.pq-probleme { font-weight: 600; font-size: 1.05rem; }
.pq p:not(.pq-probleme) { color: var(--gris); }

.pq-exemple {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 16px;
  border: 1.5px solid var(--encre);
  border-radius: 999px;
  background: var(--blanc-pur);
  font: 600 0.95rem var(--f-texte);
  color: var(--encre);
  cursor: pointer;
  transition: background 150ms, color 150ms, transform 150ms;
}
.pq-exemple:hover { background: var(--accent); color: var(--papier); border-color: var(--accent); transform: translateY(-2px); }
.pq-exemple .manuscrit { font-size: 1.25rem; font-weight: 500; margin-right: 2px; }

/* ==========================================================================
   Réalisations : cartes postales
   ========================================================================== */
.cartes-postales {
  display: grid;
  gap: 76px 32px;
  margin-top: 48px;
}
@media (min-width: 768px) { .cartes-postales { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cartes-postales { grid-template-columns: repeat(3, 1fr); } }

.carte-postale {
  --r: -1.5deg;
  position: relative;
  aspect-ratio: 5 / 4;
  perspective: 1400px;
  cursor: pointer;
  transform: rotate(var(--r));
  transition: transform 250ms ease-out;
}
.carte-postale:nth-child(2) { --r: 1.2deg; }
.carte-postale:nth-child(3) { --r: -0.8deg; }
.carte-postale:hover { transform: rotate(0deg) translateY(-4px); }

.cp-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 14px 30px rgba(30, 26, 21, 0.18);
  transition: transform 700ms cubic-bezier(0.4, 0.1, 0.2, 1);
}
.cp-recto { background: var(--blanc-pur); padding: 10px; transform: rotateY(0deg); }
.cp-verso { background: var(--blanc-pur); transform: rotateY(180deg); }
.tournee .cp-recto { transform: rotateY(-180deg); }
.tournee .cp-verso { transform: rotateY(0deg); }

.cp-recto { display: flex; flex-direction: column; }
.cp-recto img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; border-radius: 2px; flex: none; }
.cp-legende {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
}
.cp-souvenir { font-size: 1.45rem; line-height: 1; transform: rotate(-2deg); }
.cp-type { margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); }
.cp-voir { margin-left: 10px; font-size: 1.1rem; color: var(--gris); }
.cp-timbre {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--papier);
  font: 700 0.9rem var(--f-titre);
  border: 5px dotted var(--blanc-pur);
  outline: 1px solid rgba(30, 26, 21, 0.15);
}

.cp-verso {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  padding: 18px 18px 16px;
}
.cp-message {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  padding-right: 14px;
  border-right: 1.5px solid var(--filet);
  overflow: hidden;
}
.cp-droite { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cp-tampon {
  align-self: flex-end;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 0.62rem/1.2 var(--f-texte);
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
  opacity: 0.85;
}
.cp-adresse { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; color: var(--gris); }
.cp-adresse li { border-bottom: 1.5px solid var(--filet); padding: 4px 0; }
.cp-droite .lien-fleche { margin-top: auto; font-size: 0.85rem; overflow-wrap: anywhere; }

.carte-retourner {
  position: absolute;
  left: 50%;
  bottom: -50px;
  transform: translateX(-50%) rotate(calc(-1 * var(--r)));
  font: 600 14px var(--f-texte);
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--encre);
  background: var(--papier);
  color: var(--encre);
  cursor: pointer;
  white-space: nowrap;
}
.carte-retourner::before { content: "↻ "; }
.carte-retourner:hover { background: var(--encre); color: var(--papier); }

@media (max-width: 480px) {
  .cp-verso { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .cp-message { border-right: 0; padding-right: 0; font-size: 1.12rem; }
  .cp-droite { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .cp-tampon { display: none; }
  .cp-adresse { display: flex; gap: 10px; }
  .cp-adresse li { border: 0; padding: 0; }
  .cp-droite .lien-fleche { margin: 0 0 0 auto; }
}

/* ---- Mes propres enseignes ---- */
.enseignes-perso { margin-top: 96px; }
.enseignes-titre { font-family: var(--f-main); font-weight: 500; font-size: 2rem; color: var(--cuir); text-align: center; margin-bottom: 24px; }
.enseignes-grille { display: grid; gap: 16px; }
@media (min-width: 560px) { .enseignes-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .enseignes-grille { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.enseigne-perso {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 16px;
  border: 0;
  border-radius: var(--rayon-carte);
  background: var(--blanc-pur);
  box-shadow: var(--ombre);
  text-align: left;
  font: 400 0.9rem/1.45 var(--f-texte);
  color: var(--gris);
  cursor: pointer;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.enseigne-perso:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.enseigne-perso img, .minou-vignette {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  margin-bottom: 6px;
}
.minou-vignette { display: grid; place-items: center; background: #FFE3D8; }
.minou-vignette img { width: 38%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 6px 14px rgba(255, 127, 94, 0.35); }
.enseigne-perso strong { font-family: var(--f-titre); font-weight: 600; font-size: 1.15rem; color: var(--encre); padding: 0 4px; }
.enseigne-perso > span:last-child { padding: 0 4px; }

/* ==========================================================================
   Concrètement : pancartes suspendues sur un mur de briques
   ========================================================================== */
.mur-briques {
  background-color: #9C4430;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.22' stroke-width='3'%3E%3Cpath d='M0 1.5H96M0 25.5H96M24 0V24M72 0V24M0 24V48M48 24V48M96 24V48'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Crect x='26' y='4' width='44' height='18'/%3E%3Crect x='2' y='28' width='44' height='18'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--papier);
  position: relative;
}
.mur-briques .kicker { color: var(--or); }
.mur-briques .titre-2l em { color: var(--or); }
.mur-briques .pancarte-potence::before, .mur-briques .pancarte-potence::after { border-color: #1E1A15; }
.mur-briques .pancarte-planche { box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3); color: var(--encre); }

.pancartes {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 28px 24px;
}
@media (min-width: 768px) { .pancartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pancartes { grid-template-columns: repeat(4, 1fr); } }

.pancarte { display: flex; flex-direction: column; }
.pancarte-potence {
  position: relative;
  display: block;
  height: 30px;
  margin: 0 18px;
}
.pancarte-potence::before {
  content: "";
  position: absolute;
  left: -6px; right: -6px; top: 0;
  height: 6px;
  border-radius: 3px;
  background: var(--encre);
}
.pancarte-potence::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; top: 6px; bottom: 0;
  border-left: 2px dashed var(--encre);
  border-right: 2px dashed var(--encre);
}
.pancarte-planche {
  flex: 1;
  background: var(--papier);
  border: 2px solid var(--encre);
  border-radius: 10px;
  padding: 24px 22px;
  transform-origin: 50% -30px;
  transition: transform 300ms ease-out;
}
.pancarte:hover .pancarte-planche { animation: pancarte-balance 1.2s ease-in-out; }
@keyframes pancarte-balance {
  0% { transform: rotate(0); } 25% { transform: rotate(2.5deg); } 55% { transform: rotate(-1.6deg); } 80% { transform: rotate(0.6deg); } 100% { transform: rotate(0); }
}
.pancarte h3 { font-size: 1.35rem; }
.pancarte p { color: var(--gris); font-size: 0.97rem; }
.pancarte-preuve { margin: 0; padding-top: 14px; border-top: 1.5px dashed var(--filet); color: var(--encre) !important; }
.pancarte-preuve .manuscrit { font-size: 1.35rem; color: var(--cobalt); }

/* ==========================================================================
   Forfaits : timbres
   ========================================================================== */
.timbres {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .timbres { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.timbre {
  background: var(--blanc-pur);
  border: 12px dotted var(--papier);
  padding: 12px;
  filter: drop-shadow(0 8px 14px rgba(30, 26, 21, 0.1));
}
.timbre-dedans {
  border: 2px solid var(--encre);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.timbre h3 { font-size: 2.1rem; margin-bottom: 0.15em; }
.timbre-valeur { font-family: var(--f-titre); font-weight: 600; font-size: 1.3rem; color: var(--cobalt); order: 2; margin-bottom: 14px; }
.timbre h3 { order: 1; }
.timbre-pour { order: 3; color: var(--gris); margin-bottom: 14px; }
.timbre ul { order: 4; list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.timbre li { position: relative; padding-left: 26px; }
.timbre li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}
.timbre-comme { order: 5; margin: 0 0 6px; font-size: 1.35rem; color: var(--cuir); }
.timbre .lien-fleche { order: 6; margin-top: auto; }
.timbre .badge { order: 0; align-self: flex-start; margin-bottom: 12px; }

.timbre-bleu { background: var(--cobalt); }
.timbre-bleu .timbre-dedans { border-color: var(--papier); color: var(--papier); }
.timbre-bleu .timbre-valeur { color: var(--or); }
.timbre-bleu .timbre-pour { color: rgba(248, 242, 229, 0.8); }
.timbre-bleu li::before { border-color: var(--or); }
.timbre-bleu .timbre-comme { color: var(--or); }
.timbre-bleu .lien-fleche { color: var(--papier); }
@media (min-width: 1024px) {
  .timbre-bleu { transform: rotate(-1.5deg); }
}

.forfaits-note { margin: 40px 0 0; text-align: center; color: var(--gris); }

/* ==========================================================================
   Comment ça marche : ligne de métro, sur les carreaux d'une station
   ========================================================================== */
.carreaux-metro {
  background-color: #F3EFE6;
  background-image:
    linear-gradient(rgba(30, 26, 21, 0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(30, 26, 21, 0.07) 2px, transparent 2px);
  background-size: 44px 22px;
  border-top: 14px solid var(--cobalt);
  border-bottom: 14px solid var(--cobalt);
}
.carreaux-metro .station { background: rgba(253, 251, 247, 0.85); border-radius: 12px; padding-bottom: 16px; }
@media (min-width: 900px) { .carreaux-metro .station { padding-left: 14px; padding-right: 14px; } }

.ligne-nom { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; margin: 20px 0 0; }
.ligne-pastille {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cobalt); color: var(--papier);
  font: 700 0.9rem var(--f-titre);
}

.metro {
  --progression: 0;
  position: relative;
  list-style: none;
  margin: 44px 0 0;
  padding: 0 0 0 76px;
  display: grid;
  gap: 40px;
}
.metro-voie {
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 10px;
  border-radius: 5px;
  background: rgba(43, 79, 216, 0.18);
}
.metro-voie::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--progression) * 100%);
  border-radius: 5px;
  background: var(--cobalt);
}
.rame {
  position: absolute;
  left: 50%;
  top: calc(var(--progression) * 100%);
  width: 28px; height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: var(--cobalt);
  border: 3px solid var(--encre);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(30, 26, 21, 0.25);
  z-index: 3;
}
.rame span { width: 12px; height: 8px; border-radius: 2px; background: #FFE6A3; }

.station { position: relative; }
.station-rond {
  position: absolute;
  left: -76px; top: -6px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 8px solid var(--cobalt);
  background: var(--blanc-pur);
  color: var(--encre);
  font: 700 1.25rem var(--f-titre);
  transition: background 300ms, color 300ms;
  z-index: 1;
}
.station.atteinte .station-rond { background: var(--cobalt); color: var(--papier); }
.station h3 { font-size: 1.45rem; margin-bottom: 0.3em; }
.station p { color: var(--gris); margin-bottom: 0.6em; }
.station-livrable { color: var(--encre) !important; font-weight: 600; font-size: 0.95rem; }
.station-livrable span { display: block; font-family: var(--f-main); font-weight: 500; font-size: 1.3rem; color: var(--cuir); }

@media (min-width: 900px) {
  .metro { padding: 0; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
  .metro-voie { left: 12.5%; right: 12.5%; top: 27px; bottom: auto; width: auto; height: 10px; }
  .metro-voie::before { inset: 0 auto 0 0; height: 100%; width: calc(var(--progression) * 100%); }
  .rame { left: calc(var(--progression) * 100%); top: 50%; width: 54px; height: 28px; grid-auto-flow: column; align-content: center; }
  .station { padding-top: 88px; }
  .station-rond { left: 50%; top: 0; transform: translateX(-50%); }
  .station p { max-width: 250px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   CTA final : la rue la nuit
   ========================================================================== */
.cta-nuit { background: #141B33; padding-top: 0; position: relative; overflow: hidden; }
.cta-nuit .nuit { display: block; width: 100%; height: clamp(240px, 34vw, 460px); margin-bottom: 48px; }
.cta-nuit .neon { animation: neon 4s infinite; }
@keyframes neon { 0%, 89%, 93%, 100% { opacity: 1; } 91% { opacity: 0.35; } 95% { opacity: 0.6; } }

/* ==========================================================================
   Fiche projet (dialog)
   ========================================================================== */
html.fiche-ouverte { overflow: hidden; }

.fiche {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(980px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  color: var(--encre);
}
.fiche::backdrop { background: rgba(20, 27, 51, 0.62); backdrop-filter: blur(3px); }
.fiche[open] .fiche-boite { animation: fiche-entre 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fiche-entre { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

.fiche-boite {
  position: relative;
  display: grid;
  background: var(--papier);
  border-radius: 18px;
  overflow: auto;
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
@media (min-width: 860px) { .fiche-boite { grid-template-columns: 1.15fr 1fr; } }

.fiche-fermer {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--encre);
  color: var(--papier);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.fiche-fermer:hover { background: var(--cobalt); }

.fiche-visuels {
  position: relative;
  background: var(--encre);
  padding: 28px 22px 40px;
  display: grid;
  align-content: center;
  min-height: 240px;
}
.fiche-ecran { border-radius: 8px; overflow: hidden; background: var(--blanc-pur); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4); width: 88%; }
.fiche-barre { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #2A2620; }
.fiche-barre > span:not(.fiche-url) { width: 8px; height: 8px; border-radius: 50%; background: rgba(248, 242, 229, 0.35); }
.fiche-url { margin-left: 8px; flex: 1; font-size: 11px; color: rgba(248, 242, 229, 0.75); background: rgba(248, 242, 229, 0.1); border-radius: 999px; padding: 2px 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fiche-ecran img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.fiche-tel {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 26%;
  max-width: 120px;
  border-radius: 16px;
  border: 5px solid #111;
  overflow: hidden;
  background: #111;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}
.fiche-tel img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }
.fiche-minou { display: none; width: 42%; max-width: 200px; height: auto; margin: 0 auto; border-radius: 22%; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25); }
.fiche-visuels-minou { background: #FF7F5E; }
.fiche-visuels-minou .fiche-ecran, .fiche-visuels-minou .fiche-tel { display: none; }
.fiche-visuels-minou .fiche-minou { display: block; }

.fiche-texte { padding: 30px 26px 28px; }
.fiche-texte h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.2em; padding-right: 40px; }
.fiche-client { color: var(--gris); }
.fiche-texte dl { margin: 18px 0 24px; }
.fiche-texte dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cuir); margin-top: 14px; }
.fiche-texte dd { margin: 4px 0 0; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.fiche-lien[hidden] { display: none; }

/* Téléphone : la fiche devient un panneau qui monte du bas */
@media (max-width: 859px) {
  .fiche { width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .fiche-boite { border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .fiche[open] .fiche-boite { animation: fiche-monte 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes fiche-monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .fiche-visuels { padding: 22px 16px 30px; }
  .fiche-actions .btn { width: 100%; justify-content: center; }
}
