/* =====================================================
   FRIP N FRAP — friperie rétro 70s × streetwear (v2)
   Palette : crème / orange / bleu / brun
   ===================================================== */

:root {
  --cream: #FFF4E3;
  --cream-2: #FBE8CF;
  --orange: #F4661B;
  --orange-deep: #D9480F;
  --orange-soft: #FFB25C;
  --blue: #3E6FD9;
  --blue-soft: #BCD2FF;
  --ink: #2B1B12;
  --ink-soft: #5C4634;
  --white: #FFFDF8;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(43, 27, 18, .12);
  --border: 2.5px solid var(--ink);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  /* Largeur de contenu : 65% sur grand écran */
  --container: 65vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Blocage du défilement horizontal : `hidden` sur body seul est ignoré
   par Safari/Chrome mobile — il faut clipper aussi la racine.
   `clip` (avec repli sur hidden) empêche tout pan latéral au doigt. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--orange); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }

.container { width: min(var(--container), 1280px); margin-inline: auto; }
.container-wide { width: min(88vw, 1280px); margin-inline: auto; }

/* Grain rétro subtil */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}
/* Mobile / écrans tactiles : un calque fixe de 4× le viewport animé en
   permanence fait ramer le scroll et provoque des zones blanches (la page
   "se coupe"). On fige le grain à la taille de l'écran, sans animation. */
@media (max-width: 980px), (pointer: coarse) {
  .grain {
    inset: 0;
    width: 100%;
    height: 100%;
    animation: none;
  }
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 4px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 0 4px 4px 0;
}

/* ============ HEADER / NAVBAR ============ */
.topbar {
  position: sticky; top: 14px; z-index: 200;
  padding: 0 clamp(10px, 2vw, 24px);
  pointer-events: none; /* la pilule seule capte les clics */
}
.topbar-inner {
  pointer-events: auto;
  width: min(96vw, 1180px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  box-shadow: 5px 6px 0 rgba(43,27,18,.9);
  transition: box-shadow .25s, transform .25s;
}
.topbar.scrolled .topbar-inner { box-shadow: 3px 3px 0 rgba(43,27,18,.9); transform: translateY(-2px); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-svg { width: 44px; height: 34px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo-svg { transform: rotate(-8deg) scale(1.12); }
.logo-svg .lw { font: italic 900 62px var(--font-display); fill: var(--blue); letter-spacing: -2px; }
.logo-svg .lN { font: italic 900 92px var(--font-display); fill: var(--orange); stroke: var(--white); stroke-width: 10px; paint-order: stroke fill; }
.logo-words {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.25rem; letter-spacing: -.5px;
  color: var(--blue);
}
.logo-words em { color: var(--orange); font-size: 1.25em; }

/* Nav pilule avec indicateur qui glisse */
.nav {
  position: relative;
  display: flex; align-items: center;
  margin-left: auto;
  gap: 2px;
}
.nav a {
  position: relative; z-index: 2;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .92rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .25s;
  white-space: nowrap;
}
.nav a.active { color: var(--white); }
.nav-blob {
  position: absolute; z-index: 1;
  top: 4px; bottom: 4px;
  left: 0; width: 0;
  background: var(--orange);
  border-radius: 999px;
  opacity: 0;
  transition: left .35s cubic-bezier(.34,1.3,.5,1), width .35s cubic-bezier(.34,1.3,.5,1), opacity .25s, background .25s;
}
.nav-blob.visible { opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--cream);
  text-decoration: none;
  font-weight: 700; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px;
  transition: background .25s, transform .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-2px) rotate(-1deg); }
.nav-cta .cta-arrow { display: inline-block; transition: transform .25s; }
.nav-cta:hover .cta-arrow { transform: translate(2px,-2px); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.burger span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Éléments réservés au mobile (affichés dans les media queries) */
.header-search,
.nav-vinted-mobile,
.to-top { display: none; }

@keyframes navItemIn { from { opacity: 0; transform: translateY(-8px); } }

/* Bouton « retour en haut » (mobile) */
.to-top {
  position: fixed;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 180;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: var(--border);
  background: var(--orange); color: var(--white);
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(.85);
  transition: opacity .3s, transform .3s cubic-bezier(.34,1.56,.64,1), visibility .3s, box-shadow .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:active { box-shadow: 2px 2px 0 var(--ink); transform: scale(.92); }

/* Surlignage de l'article ciblé par la recherche */
@keyframes searchHit {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,102,27,0), var(--shadow); }
  15%, 65% { box-shadow: 0 0 0 4px var(--orange), 8px 12px 0 rgba(43,27,18,.85); }
}
.prod-card.search-hit { animation: searchHit 1.9s ease; }

/* Header hérité (pages du blog) */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 244, 227, .85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}
.header .nav { margin-left: 0; gap: clamp(8px, 1.6vw, 18px); }
.header .nav a:not(.nav-cta):hover { color: var(--orange-deep); }
.logo-mark { font-size: 1.7rem; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.5px; }
.logo-text em { color: var(--orange); font-style: italic; }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 60px) 0 clamp(30px, 5vw, 60px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  min-height: 72vh;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -1.5px;
}
.hero-title .line { display: block; }
.hero-title .line-2 { color: var(--orange); }
.squiggle { font-style: italic; text-decoration: underline wavy var(--blue) 5px; text-underline-offset: 10px; }
.hero-title .line { opacity: 0; transform: translateY(30px) rotate(1.5deg); animation: rise .8s cubic-bezier(.22,1,.36,1) forwards; }
.hero-title .line-2 { animation-delay: .15s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
  opacity: 0; animation: rise .8s .35s cubic-bezier(.22,1,.36,1) forwards;
}

.hero-actions {
  margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: rise .8s .5s cubic-bezier(.22,1,.36,1) forwards;
}

.hero-proof {
  margin-top: 26px;
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; color: var(--ink-soft);
  opacity: 0; animation: rise .8s .65s cubic-bezier(.22,1,.36,1) forwards;
}
.stars { color: var(--orange); letter-spacing: 3px; font-size: 1.05rem; }
.stars.big { font-size: 1.5rem; }

.hero-badges { position: relative; height: 0; }
.sticker {
  position: absolute;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border: var(--border); border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.sticker-1 { top: -36px; left: 0; background: var(--orange-soft); rotate: -6deg; }
.sticker-2 { top: -58px; left: clamp(140px, 16vw, 300px); background: var(--blue-soft); rotate: 4deg; animation-delay: 1.2s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }
.float-soft { animation: floaty 6s ease-in-out infinite; }

/* Arches 70s + logo suspendu */
.hero-arch { position: relative; height: 100%; min-height: 420px; }
.arch {
  position: absolute; bottom: 0; left: 50%;
  translate: -50% 0;
  border-radius: 999px 999px 0 0;
  border: var(--border); border-bottom: none;
  transition: height .6s cubic-bezier(.22,1,.36,1);
}
.arch-1 { width: 82%; height: 90%; background: var(--orange); }
.arch-2 { width: 58%; height: 64%; background: var(--blue-soft); }
.arch-3 { width: 34%; height: 38%; background: var(--cream-2); }
.sun {
  position: absolute; top: 2%; right: 4%;
  width: clamp(50px, 6vw, 84px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange-soft);
  border: var(--border);
  animation: floaty 6s ease-in-out infinite;
}
.hero-logo-card {
  position: absolute;
  left: 50%; bottom: 14%;
  translate: -50% 0;
  width: clamp(150px, 16vw, 230px);
  background: var(--white);
  border: var(--border); border-radius: 18px;
  padding: 10px;
  box-shadow: 6px 8px 0 var(--ink);
  rotate: -4deg;
}

/* ============ MARQUEE ============ */
.marquee {
  position: relative; z-index: 2;
  background: var(--ink); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 13px 0;
  border-top: var(--border); border-bottom: var(--border);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; letter-spacing: 1px;
  /* ruban légèrement incliné, façon scotch rétro */
  rotate: -1.2deg;
  width: 104vw;
  margin-left: -2vw;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite; /* durée recalculée par app.js */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq { display: flex; align-items: center; flex: 0 0 auto; }
.marquee-seq span { position: relative; padding-right: 90px; }
.marquee-seq span::after {
  content: "✿";
  position: absolute; right: 34px;
  color: var(--orange-soft);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(60px, 8vw, 110px) clamp(14px, 2vw, 0px); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-kicker {
  display: block; /* toujours au-dessus du titre */
  font-family: var(--font-display); font-style: italic;
  color: var(--blue); font-size: 1.05rem;
  margin-bottom: 8px;
}
.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -1px; line-height: 1.05;
  /* espace sous le titre (le trait orange occupe les 8 premiers px) */
  margin-bottom: 24px;
}
/* trait orange qui se dessine sous le titre */
.section-title::after {
  content: "";
  position: absolute; left: 8%; bottom: -8px;
  width: 84%; height: 7px;
  background: var(--orange);
  border-radius: 8px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s .25s cubic-bezier(.22,1,.36,1);
  opacity: .85;
}
.reveal.in .section-title::after,
.section-title.in::after { transform: scaleX(1); }
.section-sub { margin-top: 0; color: var(--ink-soft); }

/* Apparition au scroll — variantes directionnelles */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-left { opacity: 0; transform: translateX(-46px) rotate(-1.2deg); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-right { opacity: 0; transform: translateX(46px) rotate(1.2deg); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

/* Le kicker bleu rebondit à l'apparition de la section */
.reveal.in .section-kicker,
.section-kicker.reveal.in { animation: kickerIn .55s cubic-bezier(.34,1.56,.64,1) backwards; }
@keyframes kickerIn { from { opacity: 0; transform: translateY(12px) rotate(-3deg) scale(.85); } }

/* Cascade des petits éléments quand leur bloc devient visible */
.stats:not(.in) li,
.reveal:not(.in) .steps li,
.reveal:not(.in) .contact-list li,
.apropos-visual:not(.in) .polaroid { opacity: 0; }
.stats.in li,
.reveal.in .steps li,
.reveal.in .contact-list li { animation: itemIn .55s cubic-bezier(.22,1,.36,1) backwards; }
.stats.in li:nth-child(2), .reveal.in .steps li:nth-child(2), .reveal.in .contact-list li:nth-child(2) { animation-delay: .12s; }
.stats.in li:nth-child(3), .reveal.in .steps li:nth-child(3), .reveal.in .contact-list li:nth-child(3) { animation-delay: .24s; }
.stats.in li:nth-child(4), .reveal.in .steps li:nth-child(4), .reveal.in .contact-list li:nth-child(4) { animation-delay: .36s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(22px) scale(.95); } }

/* Les polaroïds sautent en place l'un après l'autre */
.apropos-visual.in .polaroid { animation: polaroidIn .65s cubic-bezier(.34,1.56,.64,1) backwards; }
.apropos-visual.in .p-2 { animation-delay: .16s; }
.apropos-visual.in .p-3 { animation-delay: .32s; }
@keyframes polaroidIn { from { opacity: 0; transform: translateY(30px) scale(.7); } }

/* ============ BOUTONS ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-block;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: var(--border);
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 5px 5px 0 var(--ink);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
/* reflet qui balaye le bouton */
.btn::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* ============ BOUTIQUE ============ */
.boutique { background: var(--cream-2); border-top: var(--border); border-bottom: var(--border); }

.cat-menu {
  /* desktop : toutes les pilules visibles, sur plusieurs lignes centrées */
  display: flex; gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 4px 10px;
  margin-bottom: 26px;
}
@media (max-width: 760px) {
  /* mobile : glisse au doigt, sans barre de défilement, avec un fondu
     sur le bord droit pour suggérer la suite */
  .cat-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 42px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 42px), transparent);
  }
  .cat-menu::-webkit-scrollbar { display: none; }
}
.cat-pill {
  flex: 0 0 auto;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white); color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.cat-pill:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 3px 4px 0 var(--ink); }
.cat-pill.active { background: var(--ink); color: var(--cream); box-shadow: 3px 4px 0 var(--orange); }
.cat-pill .count { opacity: .55; font-size: .8em; margin-left: 4px; }

.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 22px;
  scrollbar-width: none;
  /* le carrousel déborde jusqu'aux bords de l'écran : les cartes sont
     coupées par le bord de la fenêtre, plus jamais en plein milieu de page.
     --bleed = espace entre le conteneur et le bord de l'écran, en vw
     uniquement (les % de scroll-padding se réfèrent au scrollport). */
  --bleed: calc((100vw - min(var(--container), 1280px)) / 2);
  margin-inline: calc(-1 * var(--bleed));
  padding-inline: var(--bleed);
  scroll-padding-inline: var(--bleed);
}
.carousel::-webkit-scrollbar { display: none; }

/* Sentinelle invisible en fin de carrousel : déclenche le chargement
   du lot de cartes suivant quand elle approche de la zone visible */
.carousel-sentinel { flex: 0 0 1px; align-self: stretch; }

.car-btn {
  position: absolute; top: 42%; z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: var(--border);
  background: var(--white);
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: background .2s, transform .2s;
}
.car-btn:hover { background: var(--orange-soft); transform: scale(1.1) rotate(-4deg); }
.car-prev { left: -14px; }
.car-next { right: -14px; }

/* Carte produit */
.prod-card {
  flex: 0 0 min(250px, 72vw);
  scroll-snap-align: start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
  box-shadow: var(--shadow);
  animation: cardIn .55s cubic-bezier(.22,1,.36,1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }
/* la cascade des cartes ne démarre que lorsque le carrousel est visible */
.carousel-wrap:not(.in) .prod-card,
.carousel-wrap:not(.in) .blog-card { animation-play-state: paused; }
.prod-card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 8px 12px 0 rgba(43,27,18,.85); }

.prod-img { aspect-ratio: 1; background: var(--cream-2); overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prod-card:hover .prod-img img { transform: scale(1.07) rotate(.6deg); }
.prod-img .placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3rem; }
.prod-flag {
  position: absolute; top: 10px; left: 10px;
  font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  border: 2px solid var(--ink);
}

.prod-body { padding: 14px 16px 18px; }
.prod-title {
  font-weight: 700; font-size: .96rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.prod-meta { margin-top: 6px; font-size: .84rem; color: var(--ink-soft); }
.prod-price { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--orange-deep); }

.boutique-count { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }

.empty-msg {
  width: 100%; text-align: center;
  padding: 60px 20px;
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-soft); font-size: 1.1rem;
}

/* ============ QUI SUIS-JE ============ */
.apropos-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.apropos-visual { position: relative; min-height: 420px; }
.polaroid {
  position: absolute;
  width: clamp(150px, 13vw, 185px);
  background: var(--white);
  border: var(--border);
  border-radius: 10px;
  padding: 13px 13px 9px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.polaroid span {
  display: grid; place-items: center;
  font-size: 3.2rem;
  background: var(--cream-2);
  border-radius: 6px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
}
.polaroid small { display: block; margin-top: 8px; font-family: var(--font-display); font-style: italic; }
.p-1 { top: 0; left: 4%; rotate: -7deg; z-index: 1; }
.p-2 { top: 28%; right: 2%; rotate: 5deg; z-index: 2; }
.p-3 { bottom: 0; left: 18%; rotate: -3deg; z-index: 3; }
.polaroid:hover { transform: scale(1.08) rotate(0deg); z-index: 9; }

.apropos-text p { margin-bottom: 14px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin-top: 26px; }
.stats li {
  background: var(--white);
  border: var(--border); border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.stats li:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 6px 8px 0 var(--ink); }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--orange-deep); }
.stats span { font-size: .85rem; color: var(--ink-soft); }

/* ============ TIKTOK ============ */
.tiktok { background: var(--blue-soft); border-top: var(--border); border-bottom: var(--border); }
.phone-wrap {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  justify-items: center;
}
.phone {
  width: min(340px, 90vw);
  background: var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(43,27,18,.35);
  position: relative;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.phone:hover { transform: rotate(-1.5deg) scale(1.015); }
.phone-screen {
  position: relative;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 16.6;
}
/* la vidéo TikTok remplit tout l'écran du téléphone */
.phone-screen .tiktok-embed { margin: 0 !important; min-width: 0 !important; width: 100% !important; height: 100% !important; }
.phone-screen iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.phone-screen blockquote { width: 100%; height: 100%; }
.tiktok-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  color: var(--cream); padding: 30px;
  font-family: var(--font-display); font-style: italic;
}

.phone-side { max-width: 380px; }
.phone-hook { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; }
.phone-side p { margin-bottom: 18px; }

/* ============ AVIS ============ */
.avis { background: var(--cream); overflow: hidden; padding-bottom: clamp(70px, 9vw, 130px); }
.avis-rows { display: flex; flex-direction: column; gap: 22px; margin-top: 10px; }
.avis-row {
  display: flex; gap: 18px;
  width: max-content;
  animation: avisScroll 80s linear infinite;
}
.avis-row.reverse { animation-direction: reverse; animation-duration: 95s; }
.avis-rows:hover .avis-row { animation-play-state: paused; }
@keyframes avisScroll { to { transform: translateX(-50%); } }

.avis-card {
  flex: 0 0 auto;
  width: min(320px, 78vw);
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 4px 5px 0 rgba(43,27,18,.85);
  transition: transform .3s;
}
.avis-card:hover { transform: translateY(-5px) rotate(-1deg); }
.avis-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avis-avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.avis-user { font-weight: 700; font-size: .92rem; }
.avis-stars { color: var(--orange); font-size: .85rem; letter-spacing: 2px; }
.avis-text {
  font-size: .92rem; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.avis-date { margin-top: 8px; font-size: .78rem; color: var(--ink-soft); opacity: .7; font-style: italic; }

/* ============ RACHAT / CONTACT ============ */
.rachat-grid, .contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.steps { margin: 18px 0 18px 20px; }
.steps li { margin-bottom: 10px; }
.note {
  background: var(--orange-soft);
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 10px 16px;
  display: inline-block;
  font-size: .92rem;
}

/* ============ FORMULAIRES ============ */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 8px 8px 0 var(--ink);
}
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  transition: box-shadow .2s, background .2s, transform .2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px var(--orange-soft);
  transform: translateY(-1px);
}
.file-input { padding: 10px !important; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ============ BLOG ============ */
.blog-carousel { padding-bottom: 26px; }
.blog-card {
  flex: 0 0 min(310px, 80vw);
  scroll-snap-align: start;
  background: var(--white);
  border: var(--border); border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: cardIn .55s cubic-bezier(.22,1,.36,1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.blog-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: 8px 12px 0 rgba(43,27,18,.85); }
.blog-cover {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  font-size: 3rem;
  border-bottom: var(--border);
}
.blog-card:hover .blog-cover { animation: bounceEmoji .5s ease; }
@keyframes bounceEmoji { 40% { transform: scale(1.15) rotate(-5deg); } }
.blog-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  background: var(--blue-soft);
  padding: 4px 10px; border-radius: 999px;
  border: 2px solid var(--ink);
}
.blog-title-card { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.blog-excerpt { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.blog-more { font-weight: 700; color: var(--orange-deep); font-size: .9rem; }

/* ============ CONTACT ============ */
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 2px dashed rgba(43,27,18,.2);
  font-weight: 600;
}
.contact-list .ico { font-size: 1.3rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--orange-deep); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink); color: var(--cream);
  border-top: var(--border);
  padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 40px) 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-logo {
  width: 120px;
  background: var(--cream);
  border-radius: 14px;
  padding: 8px;
  border: 2px solid var(--orange);
}
.footer-brand p { margin-top: 14px; opacity: .75; font-size: .92rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav strong { font-family: var(--font-display); font-style: italic; color: var(--orange-soft); margin-bottom: 4px; }
.footer-nav a, .footer-nav span {
  color: var(--cream); text-decoration: none;
  opacity: .85; font-size: .94rem;
  transition: opacity .2s, transform .2s;
}
.footer-nav a:hover { opacity: 1; transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,244,227,.2);
  padding-top: 20px;
  font-size: .82rem; opacity: .75;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-tag { font-style: italic; }
.link-btn { background: none; border: none; cursor: pointer; color: inherit; font: inherit; text-decoration: underline; }
.admin-link { color: inherit; text-decoration: none; opacity: .5; }

/* ============ MODALS ============ */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43,27,18,.55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative;
  width: min(860px, 92vw);
  max-height: 88vh; overflow: auto;
  background: var(--cream);
  border: var(--border); border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--ink);
  animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(.92) rotate(-.5deg); opacity: 0; } }
.modal-text { padding: clamp(24px, 4vw, 44px); }
.modal-text h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 16px; }
.modal-text p { margin-bottom: 12px; font-size: .95rem; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: var(--border);
  background: var(--white);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .3s;
}
.modal-close:hover { background: var(--orange-soft); transform: rotate(90deg); }

/* Modal produit */
.modal-prod { display: grid; grid-template-columns: 1fr 1fr; }
.modal-prod-img { background: var(--cream-2); }
.modal-prod-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-prod-img .placeholder { display: grid; place-items: center; height: 100%; font-size: 5rem; min-height: 320px; }
.modal-prod-body { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 12px; }
.modal-prod-body h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.modal-prod-price { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--orange-deep); }
.modal-prod-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-prod-meta span {
  font-size: .8rem; font-weight: 700;
  background: var(--blue-soft);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 12px;
}
.modal-prod-desc { color: var(--ink-soft); font-size: .95rem; white-space: pre-line; }
.modal-prod-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; padding-top: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1500px) {
  :root { --container: 74vw; }
}
@media (max-width: 1200px) {
  :root { --container: 86vw; }
  .nav a { padding: 9px 10px; font-size: .88rem; }
}
@media (max-width: 980px) {
  :root { --container: 92vw; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 44px; }
  /* place aux stickers du hero (positionnés au-dessus du titre)
     pour qu'ils ne passent plus sous le header */
  .hero { padding-top: 84px; }
  .hero-arch { min-height: 300px; }
  .hero-logo-card { width: 150px; }
  .apropos-grid, .rachat-grid, .contact-grid, .phone-wrap { grid-template-columns: 1fr; }
  .apropos-visual { min-height: 350px; max-width: 430px; margin: 0 auto; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .modal-prod { grid-template-columns: 1fr; }
  .logo-words { display: none; }
}
@media (max-width: 860px) {
  /* Nav mobile : panneau déroulant accroché sous la pilule.
     (pas de position:fixed ici — le backdrop-filter de la pilule
     casse le positionnement fixed de ses descendants) */
  .topbar-inner { position: relative; gap: 10px; }
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    z-index: 150;
    margin: 0;
    flex-direction: column; align-items: stretch;
    gap: 3px;
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(255,178,92,.18), transparent 60%),
      var(--white);
    border: var(--border);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 6px 8px 0 rgba(43,27,18,.9);
    opacity: 0;
    transform: translateY(-12px) scale(.97);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .25s ease, transform .32s cubic-bezier(.34,1.3,.5,1);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    position: relative;
    display: flex; align-items: center;
    font-size: 1.04rem; font-family: var(--font-display); font-weight: 700;
    padding: 13px 16px 13px 20px;
    border-radius: 14px;
    text-align: left;
    transition: background .2s, color .2s, padding-left .2s;
  }
  /* petit accent orange qui se déploie au survol / sur la section active */
  .nav a::before {
    content: "";
    position: absolute; left: 9px; top: 50%;
    width: 4px; height: 56%; border-radius: 4px;
    background: var(--orange);
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  }
  .nav a:hover, .nav a:active { background: var(--cream-2); color: var(--ink); padding-left: 26px; }
  .nav a:hover::before, .nav a:active::before { transform: translateY(-50%) scaleY(1); }
  .nav a.active { background: var(--orange); color: var(--white); padding-left: 26px; }
  .nav a.active::before { background: var(--white); transform: translateY(-50%) scaleY(1); }
  /* entrée en cascade des entrées quand le menu s'ouvre */
  .nav.open a { animation: navItemIn .34s both cubic-bezier(.22,1,.36,1); }
  .nav.open a:nth-of-type(1) { animation-delay: .02s; }
  .nav.open a:nth-of-type(2) { animation-delay: .05s; }
  .nav.open a:nth-of-type(3) { animation-delay: .08s; }
  .nav.open a:nth-of-type(4) { animation-delay: .11s; }
  .nav.open a:nth-of-type(5) { animation-delay: .14s; }
  .nav.open a:nth-of-type(6) { animation-delay: .17s; }
  .nav.open a:nth-of-type(7) { animation-delay: .20s; }
  .nav.open a:nth-of-type(8) { animation-delay: .23s; }
  /* bouton Vinted épinglé en bas du menu */
  .nav-vinted-mobile {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding: 13px 16px !important;
    background: var(--ink); color: var(--cream) !important;
    border-radius: 14px;
    box-shadow: 3px 4px 0 var(--orange);
  }
  .nav-vinted-mobile::before { display: none; }
  .nav-vinted-mobile:hover, .nav-vinted-mobile:active { background: var(--blue) !important; color: var(--white) !important; }
  .nav-blob { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }
  .to-top { display: grid; }

  /* champ de recherche dans la pilule du header */
  .header-search {
    display: flex; align-items: center; gap: 7px;
    flex: 1 1 auto; min-width: 0;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 7px 14px;
    position: relative;
    transition: box-shadow .2s, background .2s;
  }
  .header-search:focus-within { background: var(--white); box-shadow: 0 0 0 3px var(--orange-soft); }
  .header-search-ico { font-size: .9rem; opacity: .65; flex: 0 0 auto; }
  .header-search input {
    flex: 1 1 auto; min-width: 0;
    border: none; background: none; outline: none;
    /* 16px minimum : en dessous, Safari iOS zoome automatiquement
       sur la page quand le champ prend le focus */
    font: inherit; font-size: 16px; color: var(--ink);
    padding: 0;
  }
  .header-search input::placeholder { color: var(--ink-soft); opacity: .75; }
  .header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

  .search-suggest {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%; transform: translateX(-50%);
    width: min(92vw, 440px);
    max-height: 62vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border: var(--border);
    border-radius: 22px;
    box-shadow: 6px 8px 0 rgba(43,27,18,.9);
    padding: 8px;
    z-index: 160;
  }
  .search-suggest[hidden] { display: none; }
  .search-sg {
    display: flex; align-items: center; gap: 12px; width: 100%;
    background: none; border: none; cursor: pointer;
    padding: 8px 10px; border-radius: 14px;
    text-align: left; font: inherit; color: var(--ink);
    transition: background .18s;
  }
  .search-sg:hover, .search-sg:active { background: var(--cream-2); }
  .search-sg + .search-sg { margin-top: 2px; }
  .sg-thumb {
    flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: 11px; overflow: hidden;
    border: 2px solid var(--ink); background: var(--cream-2);
    display: grid; place-items: center;
  }
  .sg-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .sg-emoji { font-size: 1.5rem; }
  .sg-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
  .sg-title { font-weight: 700; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sg-meta { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-empty { padding: 16px 12px; text-align: center; color: var(--ink-soft); font-style: italic; font-size: .9rem; }

  .topbar { top: 8px; }
  .topbar-inner {
    padding: 7px 8px 7px 14px;
    /* le flou d'arrière-plan sur un élément sticky se recalcule à chaque
       frame de scroll : très coûteux sur mobile (saccades, artefacts).
       On le remplace par un fond quasi opaque. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 253, 248, .96);
  }
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 244, 227, .97);
  }

  .header .nav { position: static; flex-direction: row; opacity: 1; pointer-events: auto; background: none; z-index: auto; }
  .header .nav a { font-size: .85rem; font-family: var(--font-body); font-weight: 600; padding: 6px 8px; opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .section { padding-inline: 0; }
  .section-head { padding-inline: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .sticker-2 { left: auto; right: 0; }
  .hero-proof { font-size: .85rem; }
  .hero-arch { min-height: 240px; }
  .arch-1 { width: 92%; }
  .hero-logo-card { width: 132px; bottom: 10%; }
  .stats { gap: 12px; }
  .stats li { padding: 10px 14px; flex: 1 1 calc(50% - 12px); }
  .polaroid { width: 44%; }
  .phone { width: min(300px, 86vw); }
  .modal-box { width: 96vw; max-height: 92vh; }
  .modal-prod-img img, .modal-prod-img .placeholder { min-height: 230px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .avis-card { width: 78vw; }
  .blog-carousel .blog-card, .prod-card { scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .avis-row { animation: none; }
}
