/* Faso Kids : couleurs tirées du logo (nuage bleu) */
:root {
  --encre: #0e2a4a;
  --encre-2: #2c4a6b;
  --doux: #5b7794;
  --ligne: #dbe6f0;
  --fond: #ffffff;
  --photo: #f5f0ed;
  --accent: #1f6fbe;        /* bleu du mot Faso */
  --bande: #9bd2f2;         /* bande de l'en-tête et du pied de page */
  --ciel: #eaf5fd;          /* fonds doux des sections */
  --rose: #70b8e0;
  --sombre: #14365c;
  --rayon: 14px;
  --marge: 20px;
  --large: 1440px;
  --h: 64px;
  --titre: "Fredoka", "Nunito", system-ui, sans-serif;
  --texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 760px) { :root { --marge: 40px; --h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; letter-spacing: -.01em; line-height: 1; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doux { color: var(--doux); }

/* ---------- Boutons et liens ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: var(--rayon); overflow: hidden;
  background: var(--accent); color: #fff; font-weight: 600; letter-spacing: .01em; isolation: isolate;
  border: 1px solid var(--accent); transition: color .5s var(--ease);
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--encre);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.bouton:hover { color: #fff; }
.bouton:hover::before { transform: none; }
.bouton-clair { background: #fff; color: var(--encre); }
.bouton-clair::before { background: var(--encre); }
.bouton-clair:hover { color: #fff; }
.bouton-inverse { background: #fff; color: var(--encre); border-color: #fff; }

.lien-souligne { position: relative; display: inline-block; font-weight: 500; padding-bottom: 3px; }
.lien-souligne::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right;
}
.lien-souligne:hover::after { animation: trait 1s var(--ease); }
@keyframes trait { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.lien-bouton { color: var(--doux); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--marge);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
}
.entete.plein { background: #fff; border-bottom-color: var(--ligne); }
.entete.cache { transform: translateY(-101%); }
.menu-ouvert .entete { transform: none; background: #fff; }
.marque { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1 var(--titre); letter-spacing: -.01em; justify-self: start; }
.marque img { height: 40px; width: auto; }
.entete-droite { justify-self: end; display: flex; align-items: center; gap: 18px; }
.panier-bouton { font-weight: 500; font-size: 15px; padding: 8px 0; }
.panier-bouton.saute { animation: saute .5s var(--ease); }
@keyframes saute { 40% { transform: scale(1.18); } }
.menu-bouton { width: 32px; height: 32px; position: relative; }
.menu-bouton span { position: absolute; left: 5px; right: 5px; height: 1.6px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-bouton span:first-child { top: 12px; }
.menu-bouton span:last-child { top: 19px; }
.menu-ouvert .menu-bouton span:first-child { top: 15.5px; transform: rotate(45deg); }
.menu-ouvert .menu-bouton span:last-child { top: 15.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: -1; background: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--h) var(--marge) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease), visibility 0s .8s; visibility: hidden;
}
.menu a { font: 700 clamp(40px, 11vw, 64px)/1.1 var(--titre); letter-spacing: -.01em; transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .6s; }
.menu-ouvert .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-ouvert .menu a { transform: none; opacity: 1; }
.menu-ouvert .menu a:nth-child(2) { transition-delay: .05s; }
.menu-ouvert .menu a:nth-child(3) { transition-delay: .1s; }
.menu-ouvert .menu a:nth-child(4) { transition-delay: .15s; }
.menu-ouvert .menu a:nth-child(5) { transition-delay: .2s; }

@media (min-width: 960px) {
  .menu-bouton { display: none; }
  .menu {
    position: static; z-index: auto; background: none; flex-direction: row; gap: 32px; padding: 0;
    clip-path: none; visibility: visible; transition: none;
  }
  .menu a { font: 500 15px/1 var(--texte); letter-spacing: 0; transform: none; opacity: 1; position: relative; padding: 6px 0; }
  .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .menu a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Rideau entre les pages ---------- */
.rideau {
  position: fixed; inset: 0; z-index: 200; background: var(--encre); color: #fff;
  display: grid; place-items: center; pointer-events: none;
}
.rideau.sort { transform: translateY(-100%); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.rideau.entre { animation: rideau-entre .56s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes rideau-entre { from { transform: translateY(100%); } to { transform: none; } }
.rideau-nom { overflow: hidden; font: 700 clamp(48px, 11vw, 150px)/1.05 var(--titre); letter-spacing: -.01em; }
.rideau-nom span { display: inline-block; animation: monte .9s var(--ease) .1s both; }
@keyframes monte { from { transform: translateY(105%); } }

/* ---------- Apparition des titres au chargement ---------- */
.ligne { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ligne > span { display: inline-block; }
.js .ligne > span { transform: translateY(110%); }
.pret .ligne > span { transform: none; transition: transform 1.3s var(--ease); }
.pret .ligne:nth-child(2) > span { transition-delay: .08s; }
.pret .ligne:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Curseur ---------- */
.curseur { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; }
.curseur span {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; background: var(--encre); color: #fff; font-size: 14px; font-weight: 500;
  transform: scale(0); transition: transform .5s var(--ease);
}
.curseur.grand span { transform: scale(1); }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #b6dcf5 0, #cbe8fa 45%, #e6f4fd 100%); padding: calc(var(--h) + 56px) var(--marge) 90px; }
.hero-grille { position: relative; z-index: 2; max-width: var(--large); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.hero-titre { font-size: clamp(42px, 6.4vw, 78px); line-height: 1; }
.hero-sous { max-width: 440px; margin-top: 18px; font: 500 clamp(20px, 2vw, 26px)/1.3 var(--titre); color: var(--encre-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 28px; }
.js .hero-sous, .js .hero-actions, .js .hero-points { opacity: 0; transform: translateY(18px); }
.pret .hero-sous, .pret .hero-actions, .pret .hero-points { opacity: 1; transform: none; transition: opacity 1s .4s, transform 1.2s .4s var(--ease); }
.pret .hero-actions { transition-delay: .5s; }
.pret .hero-points { transition-delay: .6s; }
.hero-points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 26px; }
.hero-points li { display: grid; justify-items: center; gap: 8px; width: 92px; text-align: center; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 1.2; }
.hero-points span { color: var(--encre); }
.hero-scene { position: relative; height: 400px; }
.arc { position: absolute; z-index: 1; left: 50%; top: 4%; width: min(92%, 520px); transform: translateX(-50%); }
.scene-photo { position: absolute; z-index: 2; bottom: 0; width: 52%; aspect-ratio: 3 / 4; filter: drop-shadow(0 18px 14px rgba(14, 42, 74, .28)); transition: transform .8s var(--ease); }
.scene-photo:hover { transform: translateY(-6px); }
.scene-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.scene-photo.p1 { left: 0; }
.scene-photo.p2 { right: 0; bottom: -4%; }
.nuage { position: absolute; z-index: 1; height: auto; max-width: none; pointer-events: none; animation: nuage 14s ease-in-out infinite alternate; }
.nuage.n1 { width: min(62vw, 560px); left: -14%; bottom: -3%; }
.nuage.n2 { width: min(46vw, 420px); right: -8%; top: 40%; animation-delay: -6s; opacity: .95; }
@media (max-width: 759px) { .nuage.n2 { display: none; } }
.nuage.n3 { width: min(40vw, 340px); left: 40%; bottom: -2%; animation-delay: -3s; z-index: 3; opacity: .98; }
@keyframes nuage { to { transform: translateX(26px); } }
@media (min-width: 900px) {
  .hero { padding-bottom: 100px; }
  .hero-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
  .hero-scene { height: 560px; }
}

/* ---------- Accueil : bannières, catégories, articles ---------- */
.bouton.petit { min-height: 40px; padding: 0 16px; font-size: 14px; }
.bannieres { max-width: var(--large); margin: 0 auto; padding: 36px var(--marge) 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .bannieres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.banniere { position: relative; display: grid; grid-template-columns: 1fr 44%; align-items: end; min-height: 220px; overflow: hidden; background: linear-gradient(140deg, #eaf5fd, #cfe8fa); border: 1px solid #d3e7f6; border-radius: 22px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.banniere:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31, 111, 190, .16); }
.banniere-texte { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 6px 22px 22px; }
.banniere h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.08; }
.banniere p { color: var(--encre-2); font-size: 15px; line-height: 1.35; }
.banniere .bouton { margin-top: 8px; }
.banniere img { width: 100%; height: 210px; object-fit: contain; object-position: bottom; padding-top: 8px; filter: drop-shadow(0 10px 8px rgba(14, 42, 74, .18)); }

.rayon { max-width: var(--large); margin: 0 auto; padding: 60px var(--marge) 0; }
.rayon-titre { text-align: center; font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 26px; }
.rayon-suite { text-align: center; margin-top: 26px; }

.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 auto; }
.categorie { display: grid; justify-items: center; gap: 4px; padding: 16px 10px 18px; text-align: center; background: var(--ciel); border: 1px solid #d3e7f6; border-radius: 20px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.categorie:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(31, 111, 190, .14); }
.categorie-img { display: grid; place-items: center; height: 130px; margin-bottom: 8px; }
.categorie-img img { max-height: 130px; width: auto; filter: drop-shadow(0 8px 6px rgba(14, 42, 74, .16)); }
.categorie strong { font: 600 17px/1.2 var(--titre); }
.categorie > span:last-child { font-size: 13px; color: var(--doux); }

.vitrine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .vitrine { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.carte-vitrine { display: flex; flex-direction: column; padding: 8px 8px 12px; background: #fff; border: 1px solid var(--ligne); border-radius: 20px; transition: box-shadow .6s var(--ease); }
.carte-vitrine:hover { box-shadow: 0 14px 28px rgba(14, 42, 74, .1); }
.carte-vitrine .carte { flex: 1; }
.carte-vitrine .carte-photo { border-radius: 14px; }
.carte-vitrine .carte-infos { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 6px 12px; }
.carte-vitrine .carte-prix { font-weight: 700; color: var(--encre-2); }
.carte-vitrine .carte-couleurs { display: none; }
.carte-bouton { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 4px; background: var(--ciel); color: var(--accent); font-size: 14px; font-weight: 700; border-radius: 12px; transition: background-color .4s, color .4s; }
.carte-bouton svg { width: 18px; height: 18px; }
.carte-bouton:hover { background: var(--accent); color: #fff; }

.garanties { max-width: var(--large); margin: 56px auto 0; padding: 0 var(--marge); }
.garanties ul { list-style: none; margin: 0; padding: 22px; display: grid; gap: 20px; background: var(--ciel); border: 1px solid #d3e7f6; border-radius: 20px; }
.garanties li { display: flex; align-items: center; gap: 14px; color: var(--accent); }
.garanties svg { flex: none; }
.garanties h3 { font: 600 16px/1.2 var(--titre); color: var(--encre); }
.garanties p { margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--encre-2); }
@media (min-width: 900px) {
  .garanties ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 22px 8px; }
  .garanties li { padding: 0 18px; }
  .garanties li + li { box-shadow: -1px 0 0 #c4dcef; }
}

.question { position: relative; display: grid; gap: 18px; align-items: center; width: calc(100% - 2 * var(--marge)); max-width: calc(var(--large) - 2 * var(--marge)); margin: 96px auto 110px; padding: 0 22px 28px; background: linear-gradient(140deg, #eaf5fd, #cfe8fa); border: 1px solid #d3e7f6; border-radius: 24px; text-align: center; }
.question img { width: 170px; height: auto; margin: -64px auto 0; filter: drop-shadow(0 14px 10px rgba(14, 42, 74, .2)); }
.question h2 { font-size: clamp(26px, 3vw, 38px); }
.question-texte p { margin-top: 8px; color: var(--encre-2); }
@media (min-width: 900px) {
  .question { grid-template-columns: 210px 1fr auto; gap: 36px; padding: 26px 44px 26px 30px; text-align: left; }
  .question img { width: 210px; margin: -100px 0 -26px; }
}

/* ---------- Cartes article ---------- */
.carte { display: block; position: relative; }
.carte-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--photo); border-radius: var(--rayon); }
.carte-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease), clip-path 1s var(--ease); }
.carte-photo .seconde { clip-path: inset(100% 0 0 0); }
.carte:hover .carte-photo .seconde, .carte:focus-visible .carte-photo .seconde { clip-path: inset(0); }
.carte:hover .carte-photo img { scale: 1.04; }
.carte-infos { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
@media (min-width: 760px) { .carte-infos { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; } }
.carte-nom { font-weight: 500; line-height: 1.3; }
.carte-prix { color: var(--doux); font-size: 14px; white-space: nowrap; }
.carte-couleurs { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.carte-couleurs span:not(.carte-couleurs-txt) { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.carte-couleurs-txt { font-size: 13px; color: var(--doux); margin-left: 4px; }
.carte.arrive { animation: arrive .8s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Pied de page ---------- */
.pied { position: relative; z-index: 0; overflow-x: clip; background: var(--bande); color: var(--encre); padding: 64px var(--marge) 20px; margin-top: 96px; }
.pied-haut { display: grid; gap: 36px; max-width: var(--large); margin: 0 auto; }
.pied-marque img { height: 120px; width: auto; }
.pied-marque p { margin-top: 8px; color: var(--encre-2); }
.pied-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pied-nav h2, .pied-appel h2 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 6px; }
.pied-nav a { color: var(--encre-2); transition: color .3s; }
.pied-nav a:hover { color: var(--encre); }
.pied-doux { color: var(--encre-2); margin-top: 10px; max-width: 420px; }
.pied-appel .bouton { margin-top: 18px; }
.pied-infos { margin-top: 14px; }
.pied-infos p { color: var(--encre-2); margin-bottom: 6px; }
.pied-liens { display: flex; gap: 20px; }
.pied-bas { max-width: var(--large); margin: 40px auto 0; padding-top: 18px; border-top: 1px solid rgba(14, 42, 74, .16); color: var(--encre-2); font-size: 14px; }
.pied-haut { justify-items: center; text-align: center; }
.pied-marque { order: -1; margin-top: -72px; }
.pied-marque img { margin: 0 auto; }
.pied-nav { align-items: center; }
.pied-doux { margin-left: auto; margin-right: auto; }
.pied-liens { justify-content: center; }
@media (min-width: 900px) {
  .pied-haut { grid-template-columns: 1fr auto 1fr; gap: 56px; justify-items: stretch; align-items: start; text-align: left; }
  .pied-nav { order: 1; align-items: flex-start; }
  .pied-marque { order: 2; margin-top: -100px; text-align: center; }
  .pied-appel { order: 3; justify-self: end; max-width: 420px; }
  .pied-doux { margin-left: 0; }
  .pied-liens { justify-content: flex-start; }
}

/* ---------- Bord en nuage (en-tête et pied) ---------- */
.bord-nuage { display: none; position: absolute; left: 50%; width: max(100%, 1100px); height: 80px; transform: translateX(-50%); pointer-events: none; z-index: -1; }
.avec-logo .entete .bord-nuage { display: block; top: calc(100% - 1px); }
.avec-logo.menu-ouvert .entete .bord-nuage { display: none; }
.pied .bord-nuage { display: block; bottom: calc(100% - 1px); transform: translateX(-50%) scaleY(-1); }
.n-avant { fill: var(--bande); }
.n-arriere { fill: #fff; opacity: .75; }
.pied .n-arriere { fill: #d3ebfa; opacity: 1; }
@media (min-width: 960px) { .bord-nuage { height: 104px; } }
.entete .bord-nuage { height: 42px; }
.entete .n-arriere { fill: #d3ebfa; opacity: 1; }
.avec-logo .hero { background: linear-gradient(180deg, #fff 0, #fff calc(var(--h) + 36px), #d4ecfb 70%, #e6f4fd 100%); }
@media (min-width: 960px) { .entete .bord-nuage { height: 56px; } }
.deco-forme { position: absolute; z-index: 1; height: auto; filter: drop-shadow(0 6px 4px rgba(14, 42, 74, .14)); animation: flotte 6s ease-in-out infinite alternate; }
.deco-forme.f1 { width: 44px; top: 2%; left: 4%; transform: rotate(-12deg); }
.deco-forme.f2 { width: 38px; top: 10%; right: 2%; animation-delay: -2s; }
.deco-forme.f3 { width: 28px; top: 44%; right: -2%; animation-delay: -4s; }
.deco-forme.f4 { width: 26px; top: 40%; left: 0; animation-delay: -3s; }
@media (min-width: 960px) { .deco-forme.f1 { width: 58px; top: 16%; } .deco-forme.f2 { width: 50px; } .deco-forme.f3 { width: 36px; } }
@keyframes flotte { to { translate: 0 -10px; } }
.hero .bord-nuage { display: block; bottom: -1px; height: 56px; transform: translateX(-50%) scaleY(-1); z-index: 4; }
.hero .n-avant { fill: #fff; }
.hero .n-arriere { fill: #fff; opacity: .55; }
@media (min-width: 960px) { .hero .bord-nuage { height: 70px; } }

.whatsapp-flottant {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 14px; background: #1f9d55; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .4s var(--ease);
}
.whatsapp-flottant:hover { transform: translateY(-3px); }

/* ---------- Panier ---------- */
.voile { position: fixed; inset: 0; z-index: 90; background: rgba(22, 19, 20, .45); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.panier-ouvert .voile { opacity: 1; pointer-events: auto; }
.panier {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(460px, 100%); background: #fff;
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform .75s var(--ease), visibility 0s .75s;
}
.panier-ouvert .panier { transform: none; visibility: visible; transition: transform .75s var(--ease); }
.panier-haut { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--marge) 18px; border-bottom: 1px solid var(--ligne); }
.panier-haut h2 { font-size: 30px; letter-spacing: -.01em; }
.panier-haut h2 span { font-family: var(--texte); font-size: 16px; font-weight: 400; color: var(--doux); letter-spacing: 0; }
.icone { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.panier-liste { flex: 1; overflow-y: auto; padding: 0 var(--marge); overscroll-behavior: contain; }
.panier-vide { padding: 40px 0; display: grid; gap: 14px; justify-items: start; color: var(--doux); }
.panier-vide .lien-souligne { color: var(--encre); }
.article-panier { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ligne); }
.article-panier img { width: 84px; height: 112px; object-fit: cover; background: var(--photo); border-radius: 3px; }
.ligne-nom { font-weight: 500; }
.ligne-detail { color: var(--doux); font-size: 14px; margin-top: 2px; }
.ligne-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.panier-bas { padding: 18px var(--marge) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); display: grid; gap: 10px; }
.total { font-weight: 500; }
.note { color: var(--doux); font-size: 14px; }
.vol { position: fixed; z-index: 120; object-fit: cover; border-radius: var(--rayon); pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

.quantite { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.quantite button { width: 40px; height: 40px; font-size: 18px; }
.quantite output { min-width: 32px; text-align: center; font-weight: 500; }

/* ---------- Page boutique ---------- */
.page-boutique { padding: calc(var(--h) + 70px) var(--marge) clamp(90px, 14vh, 140px); max-width: var(--large); margin: 0 auto; }
.page-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.titre-page { font-size: clamp(44px, 7vw, 92px); letter-spacing: -.01em; line-height: .9; }
.outils { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 40px 0 32px; border-bottom: 1px solid var(--ligne); }
.filtres { position: relative; display: flex; gap: 28px; }
.filtres button { padding: 16px 0; font-size: 16px; color: var(--doux); transition: color .4s; }
.filtres button:hover, .filtres button.actif { color: var(--encre); }
.filtres-trait { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--encre); transition: transform .7s var(--ease), width .7s var(--ease); }
.recherche { display: flex; align-items: center; gap: 8px; color: var(--doux); padding: 8px 0; }
.recherche input { border: 0; background: none; font: inherit; color: var(--encre); width: 180px; padding: 6px 0; }
.recherche input:focus { outline: none; }
.recherche:focus-within { color: var(--encre); }
.grille-produits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
@media (min-width: 760px) { .grille-produits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 22px; } }
@media (min-width: 1100px) { .grille-produits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vide { color: var(--doux); padding: 40px var(--marge); }

/* ---------- Page article ---------- */
.page-produit { padding: calc(var(--h) + 56px) 0 140px; }
.fil { display: flex; gap: 10px; padding: 0 var(--marge) 18px; font-size: 14px; color: var(--doux); max-width: var(--large); margin: 0 auto; }
.fil a:hover { color: var(--encre); }
.fil #fil-nom { color: var(--encre); }
.galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transition: opacity .32s, transform .32s var(--ease); }
.galerie::-webkit-scrollbar { display: none; }
.galerie.change { opacity: 0; transform: translateY(12px); }
.galerie-photo { flex: 0 0 100%; scroll-snap-align: start; position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--photo); }
.galerie-photo img { width: 100%; height: 100%; object-fit: cover; }
.galerie-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 6px 10px; border-radius: 3px; font-size: 13px; font-weight: 500; }
.galerie-barre { height: 2px; background: var(--ligne); margin: 12px var(--marge) 0; }
.galerie-barre span { display: block; height: 100%; background: var(--encre); transform-origin: left; transition: transform .3s; }
.infos { padding: 28px var(--marge) 0; }
.titre-produit { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.01em; line-height: 1.02; }
.prix { margin-top: 12px; font-size: 18px; font-weight: 500; }
.prix.inconnu { color: var(--doux); font-weight: 400; font-size: 16px; }
.option { margin-top: 28px; }
.option-titre { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.option-titre span { color: var(--doux); font-weight: 400; margin-left: 4px; }
.pastilles-couleur { display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles-couleur button { width: 42px; height: 42px; border-radius: 50%; padding: 4px; border: 1px solid transparent; transition: border-color .3s; }
.pastilles-couleur button span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pastilles-couleur button[aria-pressed="true"] { border-color: var(--encre); }
.tailles { display: flex; flex-wrap: wrap; gap: 8px; }
.tailles button { min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.tailles button[aria-pressed="true"] { border-color: var(--encre); background: var(--encre); color: #fff; }
#champ-taille { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--ligne); border-radius: var(--rayon); font: inherit; color: var(--encre); transition: border-color .3s; }
#champ-taille:focus { outline: none; border-color: var(--encre); }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.actions .bouton { padding: 0 14px; }
.detail { border-top: 1px solid var(--ligne); }
.detail:first-of-type { margin-top: 36px; }
.detail:last-of-type { border-bottom: 1px solid var(--ligne); }
.detail summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 20px 0; font-weight: 500; }
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
.detail[open] summary::after { transform: rotate(45deg); }
.detail p { padding-bottom: 20px; color: var(--encre-2); line-height: 1.65; }
@media (max-width: 959px) {
  .actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; padding: 12px var(--marge) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); }
  body[data-page="produit"] .whatsapp-flottant { display: none; }
}
@media (min-width: 960px) {
  .produit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding: 0 var(--marge); max-width: var(--large); margin: 0 auto; }
  .galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
  .galerie-photo { border-radius: var(--rayon); }
  .galerie-barre { display: none; }
  .infos { padding: 0; }
  .infos-collant { position: sticky; top: calc(var(--h) + 24px); }
  .actions { margin-top: 32px; }
}
.suggestions { padding: clamp(90px, 14vh, 140px) var(--marge) 0; max-width: var(--large); margin: 0 auto; }
.suggestions h2 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -.01em; margin-bottom: 36px; }
.rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
@media (min-width: 900px) { .rangee { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* ---------- En-tête avec logo : bande de couleur, logo au centre sans fond ---------- */
.avec-logo #nom-site { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avec-logo { --h: 130px; }
/* en-tête : bande de couleur douce, logo au centre sans fond, grand, menu à gauche, recherche et panier à droite, bord ondulé */
.tete-recherche { display: none; }
.avec-logo .entete, .avec-logo .entete.plein { background: var(--bande); border-bottom-color: transparent; color: var(--encre); grid-template-columns: 1fr auto 1fr; }
.avec-logo.menu-ouvert .entete { background: #fff; color: var(--encre); }
.avec-logo .marque {
  grid-column: 2; grid-row: 1; justify-self: center; justify-content: center; background: none; box-shadow: none; border-radius: 0;
}
.avec-logo .marque { position: relative; z-index: 0; }
.avec-logo .marque img { height: 80px; width: auto; }
.avec-logo .entete-droite { grid-column: 3; grid-row: 1; }
.avec-logo .entete { padding-top: 34px; }
.annonce { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; justify-content: center; align-items: center; background: var(--accent); color: #fff; font-size: 13px; }
.annonce p { margin: 0; padding: 0 22px; white-space: nowrap; }
.annonce p + p { display: none; box-shadow: -1px 0 0 rgba(255, 255, 255, .35); }
.annonce span { opacity: .85; margin-left: 4px; }
@media (min-width: 760px) { .annonce p + p { display: block; } }
.menu-ouvert .annonce { display: none; }
.avec-logo .panier-bouton { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 6px; color: var(--encre); font-weight: 700; font-size: 12px; }
.panier-bouton svg { width: 26px; height: 26px; }
.compteur { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; border-radius: 9px; }
.compteur.vide { display: none; }
.avec-logo .entete-droite { gap: 10px; }
.avec-logo.menu-ouvert .panier-bouton { color: var(--encre); }
.avec-logo .menu a { color: var(--encre); }
@media (min-width: 960px) {
  .avec-logo { --h: 190px; }
  .avec-logo .marque img { height: 132px; }
  .avec-logo .menu { grid-column: 1; grid-row: 1; justify-self: start; gap: 28px; }
  .avec-logo .menu a { color: var(--encre); font-size: 16px; }
  .avec-logo .entete-droite { gap: 14px; }
  .avec-logo .tete-recherche {
    display: flex; align-items: center; gap: 10px; width: clamp(180px, 20vw, 280px); height: 44px; padding: 0 14px;
    background: #fff; border-radius: 8px; color: var(--doux);
  }
  .avec-logo .tete-recherche input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--encre); }
  .avec-logo .tete-recherche input:focus { outline: none; }
  .avec-logo .tete-recherche:focus-within { color: var(--encre); box-shadow: 0 0 0 2px var(--bande), 0 0 0 4px var(--sombre); }
}
.rideau-clair { background: #fff; }
.rideau-logo { height: min(56vh, 460px); width: auto; animation: monte 1s var(--ease) .1s both; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ligne > span, .js .hero-sous, .js .hero-actions, .js .hero-points { transform: none; opacity: 1; }
  .rideau { display: none; }
}
