/* ==========================================================================
   Klemsiteweb, page Réalisations (realisations.html) : la carte Klem
   Propriétaire : Claude 1 (repris de Claude 2 avec l'accord de Clément).
   ========================================================================== */



/* ==========================================================================
   La carte
   ========================================================================== */
.carte-section { overflow: hidden; border-bottom: 10px solid #8B5E3C; }
.carte-defile { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carte-defile::-webkit-scrollbar { display: none; }
#carte { display: block; width: 100%; height: auto; max-height: 720px; }
@media (max-width: 899px) { #carte { width: 857px; height: 400px; max-width: none; } }
.carte-legende { background: var(--blanc-pur); border-top: 3px solid var(--encre); }
.carte-legende-dedans { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 16px; padding-bottom: 16px; }
.carte-legende h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.4rem); }
.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 0.95rem; }
.legende li { display: flex; align-items: center; gap: 8px; }
.pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.carte-indice { margin: 0 0 0 auto; color: var(--cuir); font-size: 1.4rem; }
@media (max-width: 767px) { .carte-indice { margin: 0; flex-basis: 100%; } }

#carte .epingle { cursor: pointer; outline: none; }
#carte .epingle-tete { transition: transform 200ms ease-out; }
#carte .epingle:hover .epingle-tete, #carte .epingle:focus-visible .epingle-tete { transform: translateY(-6px); }
#carte .epingle:hover .epingle-etiquette, #carte .epingle:focus-visible .epingle-etiquette { fill: #FFE6A3; }
#carte .epingle:focus-visible .epingle-etiquette { stroke: var(--cobalt); stroke-width: 3; }
#carte .route { animation: route-file 1.6s linear infinite; }
@keyframes route-file { to { stroke-dashoffset: -26; } }
.js #carte .epingle-tete { animation: epingle-plante 500ms cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
#carte .epingle:nth-of-type(2) .epingle-tete { animation-delay: 120ms; }
#carte .epingle:nth-of-type(3) .epingle-tete { animation-delay: 240ms; }
#carte .epingle:nth-of-type(4) .epingle-tete { animation-delay: 360ms; }
#carte .epingle:nth-of-type(5) .epingle-tete { animation-delay: 480ms; }
@keyframes epingle-plante { from { transform: translateY(-40px); opacity: 0; } }

/* ==========================================================================
   Les études de cas : des pages de passeport tamponnées
   ========================================================================== */
.etude { scroll-margin-top: var(--header-h); }
.etude:nth-of-type(odd) { background: var(--blanc-pur); }
.etude-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .etude-grille { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .etude:nth-of-type(odd) .etude-visuels { order: 2; }
}

.etude-visuels { position: relative; padding: 0 0 40px; }
.etude-ecran {
  width: 90%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--blanc-pur);
  border: 2px solid var(--encre);
  box-shadow: 10px 12px 0 var(--accent);
}
.etude-barre { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--encre); }
.etude-barre > span:not(.etude-url) { width: 9px; height: 9px; border-radius: 50%; background: rgba(248, 242, 229, 0.35); }
.etude-url { margin-left: 8px; flex: 1; font-size: 12px; color: rgba(248, 242, 229, 0.8); background: rgba(248, 242, 229, 0.1); border-radius: 999px; padding: 2px 12px; }
.etude-ecran img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.etude-tel {
  position: absolute;
  right: 0; bottom: 0;
  width: 26%;
  max-width: 150px;
  border-radius: 20px;
  border: 6px solid var(--encre);
  overflow: hidden;
  background: var(--encre);
  box-shadow: 0 16px 28px rgba(30, 26, 21, 0.3);
}
.etude-tel img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }

.etude-texte { position: relative; }
.etude-texte h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.15em; }
.etude-client { color: var(--gris); font-size: 1.1rem; }
.etude-texte dl { margin: 22px 0; }
.etude-texte dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 16px; }
.etude-texte dd { margin: 4px 0 0; font-size: 1.05rem; }
.etude-faits { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etude-faits li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 0.88rem; background: var(--blanc-pur); }

/* Le tampon du passeport */
.tampon-passeport {
  position: absolute;
  right: 0; top: -14px;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px double var(--accent);
  color: var(--accent);
  font: 800 0.8rem/1.2 var(--f-texte);
  letter-spacing: 0.12em;
  text-align: center;
  rotate: -14deg;
  opacity: 0.8;
}
.tampon-passeport::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
}
@media (max-width: 480px) { .tampon-passeport { width: 80px; height: 80px; font-size: 0.66rem; top: -6px; } }

/* ==========================================================================
   Mes propres projets
   ========================================================================== */
.perso-grille { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 640px) { .perso-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .perso-grille { grid-template-columns: repeat(4, 1fr); } }
.perso-carte {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 18px;
  border-radius: var(--rayon-carte);
  background: var(--papier);
  border: 2px solid var(--encre);
  text-decoration: none;
  color: var(--encre);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
a.perso-carte:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 #D4A557; }
.perso-carte > img, .perso-logo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; margin-bottom: 8px; }
.perso-logo { display: grid; place-items: center; background: #FFE3D8; }
.perso-logo img { width: 34%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 6px 14px rgba(255, 127, 94, 0.35); }
.perso-type { padding: 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cuir); }
.perso-carte strong { padding: 0 6px; font-family: var(--f-titre); font-weight: 600; font-size: 1.3rem; }
.perso-phrase { padding: 0 6px; color: var(--gris); font-size: 0.92rem; line-height: 1.5; }
.perso-lien { margin-top: auto; padding: 8px 6px 0; font-weight: 600; font-size: 0.92rem; color: var(--cobalt); }
.perso-bientot { color: var(--cuir); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-epingle .grande-epingle { display: block; width: 64px; height: auto; margin: 0 auto 18px; animation: epingle-flotte 2.4s ease-in-out infinite; }
@keyframes epingle-flotte { 50% { transform: translateY(-8px); } }
