/* ==========================================================
   Thème « vitrine » — site225
   Couleurs du commerce injectées par le moteur :
   --c1 boutons et liens · --c2 accent · --c3 sombre · --c4 fond clair
   ========================================================== */
:root {
  --c1: #ff7a00; --c2: #ffb300; --c3: #16130f; --c4: #fbf8f3;
  --blanc: #ffffff;
  --wa: #25d366;
  --texte: var(--c3);
  --doux: color-mix(in srgb, var(--c3) 62%, var(--c4));
  --ligne: color-mix(in srgb, var(--c3) 12%, var(--c4));
  --carte: color-mix(in srgb, var(--blanc) 70%, var(--c4));
  --titres: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --texte-police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rayon: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c4); color: var(--texte); font: 17px/1.6 var(--texte-police); }
img { max-width: 100%; display: block; }
a { color: var(--c1); }
h1, h2, h3, h4 { font-family: var(--titres); line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 800; margin-bottom: 22px; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 1rem var(--texte-police); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.petit { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-wa { background: var(--wa); color: #06301a; }
.btn-plein { background: var(--c1); color: var(--blanc); }
.btn-clair { background: var(--blanc); color: var(--c3); }
.btn-contour { background: transparent; color: var(--c3); box-shadow: inset 0 0 0 2px var(--ligne); }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--c4) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.top-in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--c3); text-decoration: none; font: 800 1.1rem var(--titres); min-width: 0; }
.marque img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.marque span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liens { display: flex; gap: 20px; margin-left: auto; }
.liens a { color: var(--doux); text-decoration: none; font-weight: 600; font-size: .95rem; }
.liens a:hover { color: var(--c1); }
.top .btn-wa { margin-left: 4px; }
@media (max-width: 760px) { .liens { display: none; } .top .btn-wa { margin-left: auto; } }

/* ---------- Accueil ---------- */
.hero { position: relative; background: var(--c3); color: var(--blanc); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.avec-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.8) 100%);
}
.hero-in {
  position: relative; z-index: 1;
  min-height: min(78svh, 680px); display: flex; flex-direction: column; justify-content: flex-end;
  gap: 16px; padding-block: 120px 48px;
}
.hero:not(.avec-photo) .hero-in { min-height: 0; padding-block: 72px 56px; }
.surtitre { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c2); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 800; max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 46ch; opacity: .92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.etat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.etat i { width: 10px; height: 10px; border-radius: 50%; background: #9aa0a6; flex: none; }
.etat.ouvert i { background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: pouls 1.8s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

/* ---------- Blocs ---------- */
.bloc { padding-block: 72px; }
.bloc-sombre { background: var(--c3); color: var(--c4); }
.bloc-doux { background: color-mix(in srgb, var(--c2) 14%, var(--c4)); }

/* ---------- Produits ---------- */
.categorie { margin: 30px 0 14px; color: var(--c1); }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.produit { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.produit img, .produit-sans-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.produit-sans-photo { display: grid; place-items: center; background: color-mix(in srgb, var(--c2) 30%, var(--c4)); color: var(--c1); font: 800 3rem var(--titres); }
.produit-in { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produit h4 { font-size: 1.12rem; font-weight: 800; }
.produit p { color: var(--doux); font-size: .95rem; }
.produit-bas { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.prix { font: 800 1.15rem var(--titres); color: var(--c3); font-variant-numeric: tabular-nums; }
.lien-commande { font-weight: 700; font-size: .92rem; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--wa) 18%, var(--blanc)); color: #0b5d2a; }

/* ---------- À propos ---------- */
.apropos { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.apropos > * { min-width: 0; }
.apropos.sans-photo { grid-template-columns: 1fr; max-width: 760px; }
.apropos img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.apropos .texte { font-size: 1.08rem; opacity: .92; max-width: 60ch; }
.signature { margin-top: 18px; font: 700 1.1rem var(--titres); color: var(--c2); }
@media (max-width: 760px) { .apropos { grid-template-columns: 1fr; } .apropos img { aspect-ratio: 4 / 3; } }

/* ---------- Galerie ---------- */
.grille-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grille-galerie img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; transition: transform .25s ease; }
.grille-galerie a:hover img { transform: scale(1.02); }

/* ---------- Horaires ---------- */
.horaires { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.horaires > * { min-width: 0; }
.liste-horaires { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.liste-horaires li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; }
.liste-horaires li + li { border-top: 1px solid var(--ligne); }
.liste-horaires li.aujourdhui { background: var(--c3); color: var(--c4); font-weight: 700; border-top-color: transparent; }
.liste-horaires small { opacity: .75; font-weight: 400; }
@media (max-width: 760px) { .horaires { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact > * { min-width: 0; }
.coordonnees { display: flex; flex-direction: column; gap: 16px; }
.coordonnees h2 { margin-bottom: 4px; }
.etiquette { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.coordonnees a { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.formulaire { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.formulaire h3 { margin-bottom: 6px; }
.formulaire label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.formulaire input, .formulaire textarea {
  width: 100%; font: inherit; color: var(--c3); background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px;
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--c1); outline-offset: 0; border-color: transparent; }
.formulaire .btn { margin-top: 12px; align-self: flex-start; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerte { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.alerte.ok { background: #e3f7e9; color: #0b5d2a; }
.alerte.erreur { background: #fde7e4; color: #8a1c10; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Carte ---------- */
.carte iframe { display: block; width: 100%; height: 360px; border: 0; filter: saturate(.9); }

/* ---------- Pied de page ---------- */
.pied { background: var(--c3); color: color-mix(in srgb, var(--c4) 75%, var(--c3)); padding-block: 26px calc(96px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.pied-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.credit b { color: var(--c4); }

/* ---------- WhatsApp flottant ---------- */
.wa-flottant {
  position: fixed; z-index: 30;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--blanc);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.wa-flottant:hover { transform: scale(1.06); }

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

/* ==========================================================
   Motion design (CSS + un peu de JavaScript, sans bibliothèque)
   Les états cachés n'existent que si JavaScript tourne (classe .js),
   donc le site reste complet sans JavaScript.
   ========================================================== */

/* Barre de progression de lecture */
.progression { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--c1), var(--c2)); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* En-tête : plus dense une fois qu'on a défilé */
.top { transition: box-shadow .3s ease, background .3s ease; }
.top.defile { box-shadow: 0 8px 30px -18px rgba(0,0,0,.45); }

/* Accueil : photo qui respire, accroche mot par mot */
.hero.avec-photo .hero-img { animation: respire 18s ease-out both; will-change: transform; }
@keyframes respire { from { transform: scale(1.18); } to { transform: scale(1.02); } }
.mot-cadre { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mot { display: inline-block; }
.js .hero .mot { transform: translateY(110%) rotate(6deg); transition: transform .9s cubic-bezier(.2,.75,.2,1); transition-delay: calc(.25s + var(--i, 0) * .08s); }
.js.pret .hero .mot { transform: none; }
.js .hero-entree { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); transition-delay: calc(.35s + var(--i, 0) * .12s); }
.js.pret .hero-entree { opacity: 1; transform: none; }
.hero-defiler { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.55); transform: translateX(-50%); }
.hero-defiler span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: molette 1.6s ease-in-out infinite; }
@keyframes molette { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
.hero:not(.avec-photo) .hero-defiler { display: none; }

/* Bouton qui brille */
.brille { position: relative; overflow: hidden; isolation: isolate; }
.brille::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: brille 4s ease-in-out 2s infinite; }
@keyframes brille { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Bandeau défilant aux couleurs du commerce */
.bandeau { background: var(--c1); color: var(--blanc); overflow: hidden; }
.bandeau-piste { display: flex; align-items: center; width: max-content; animation: bandeau 30s linear infinite; }
.bandeau span { font: 800 clamp(1rem, 2.6vw, 1.4rem) var(--titres); padding: 14px 18px; white-space: nowrap; letter-spacing: .03em; }
.bandeau i { font-style: normal; color: var(--c2); }
@keyframes bandeau { to { transform: translateX(-50%); } }

/* Apparitions au défilement */
.js .anim { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1), clip-path 1.1s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--i, 0) * .09s); }
.js .anim.anim-gauche { transform: translateX(-36px); }
.js .anim.anim-zoom { transform: translateY(26px) scale(.94); }
.js .anim.anim-rideau { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round var(--rayon)); }
.js .anim.vu { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--rayon)); }

/* Cartes produits vivantes */
.produit { transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .8s ease; }
.produit img { transition: transform .6s ease; }
.produit:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(0,0,0,.45); border-color: var(--c2); }
.js .produit.anim.vu:hover { transform: translateY(-6px); }
.produit:hover img { transform: scale(1.06); }
.produit { overflow: hidden; }
.lien-commande { transition: transform .2s ease, background .2s ease; }
.lien-commande:hover { transform: scale(1.06); background: var(--wa); color: #05301a; }

/* À propos : photo dévoilée en rideau, légère parallaxe */
.apropos-photo { border-radius: var(--rayon); overflow: hidden; }
.apropos-photo img { transform: scale(1.12); will-change: transform; border-radius: 0; }

/* Horaires : aujourd'hui pulse doucement */
.liste-horaires li.aujourdhui { position: relative; }
.liste-horaires li.aujourdhui::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 0 var(--c2); animation: halo 2.4s ease-out 1.5s infinite; pointer-events: none; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c2) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* WhatsApp flottant : arrive en rebondissant, puis bulle d'invitation */
.js .wa-flottant { transform: scale(0); transition: transform .6s cubic-bezier(.3,1.6,.5,1) 1.2s; }
.js.pret .wa-flottant { transform: scale(1); }
.js.pret .wa-flottant:hover { transform: scale(1.08); transition-delay: 0s; }
.wa-flottant::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--wa); animation: anneau 2.4s ease-out 2s infinite; }
@keyframes anneau { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-bulle { position: fixed; z-index: 30; right: calc(88px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--blanc); color: var(--c3); font-weight: 700; font-size: .9rem; padding: 10px 14px; border-radius: 14px 14px 4px 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); opacity: 0; transform: translateX(12px) scale(.9); transform-origin: right bottom; pointer-events: none; transition: opacity .4s ease, transform .4s cubic-bezier(.3,1.5,.5,1); white-space: nowrap; }
.wa-bulle.visible { opacity: 1; transform: none; }
html:not(.js) .wa-bulle { display: none; }

/* ==========================================================
   Galerie en carrousel
   ========================================================== */
.galerie { overflow: hidden; }
.galerie-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.galerie-tete h2 { margin-bottom: 0; }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--carte); color: var(--c3); font: 800 1.2rem var(--titres); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.car-btn:hover { background: var(--c1); color: var(--blanc); border-color: var(--c1); transform: scale(1.06); }
.carrousel { margin-top: 26px; }
.car-piste {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px calc(50% - min(39vw, 280px)) 20px; outline: none; overscroll-behavior-x: contain;
}
.car-piste::-webkit-scrollbar { display: none; }
.car-piste.seule { justify-content: center; }
.car-piste:focus-visible { outline: 3px solid var(--c2); outline-offset: -4px; }
.car-diapo { flex: none; width: min(78vw, 560px); margin: 0; scroll-snap-align: center; transition: transform .5s cubic-bezier(.2,.75,.2,1), opacity .5s ease; }
.js .car-diapo:not(.actif) { transform: scale(.88); opacity: .55; }
.car-ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.car-ouvrir img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.car-diapo.actif .car-ouvrir:hover img { transform: scale(1.04); }
.car-diapo figcaption { text-align: center; color: var(--doux); font-size: .9rem; margin-top: 10px; opacity: 0; transition: opacity .4s ease; }
.car-diapo.actif figcaption, html:not(.js) .car-diapo figcaption { opacity: 1; }
.car-points { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.car-point { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--ligne); cursor: pointer; transition: width .35s ease, background .35s ease; }
.car-point.actif { width: 30px; background: var(--c1); }
.car-point:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }
@media (max-width: 640px) { .car-nav { display: none; } .car-piste { gap: 12px; } }

/* Visionneuse plein écran */
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(8,7,6,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fondu .3s ease; }
@keyframes fondu { from { opacity: 0; } }
.vis-cadre { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.vis-cadre img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 12px; object-fit: contain; animation: zoom-in .35s cubic-bezier(.2,.75,.2,1); }
@keyframes zoom-in { from { transform: scale(.92); opacity: 0; } }
.vis-cadre figcaption { color: #e9e3d8; text-align: center; }
.vis-fermer, .vis-fleche { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.vis-fermer:hover, .vis-fleche:hover { background: rgba(255,255,255,.25); }
.vis-fermer { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; font-size: 1.8rem; }
.vis-fleche { top: 50%; width: 54px; height: 54px; font-size: 2rem; transform: translateY(-50%); }
.vis-fleche.gauche { left: max(12px, env(safe-area-inset-left, 0px)); }
.vis-fleche.droite { right: max(12px, env(safe-area-inset-right, 0px)); }
.vis-compteur { position: absolute; bottom: max(18px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); color: #b9b0a3; font-weight: 700; font-size: .9rem; }
@media (max-width: 640px) { .vis-fleche { display: none; } }

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  .js .anim, .js .hero .mot, .js .hero-entree, .js .wa-flottant { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .car-diapo:not(.actif) { transform: none; opacity: 1; }
  .apropos-photo img { transform: none; }
}
/* La visionneuse reste cachée tant qu'on ne l'ouvre pas */
.visionneuse[hidden] { display: none; }
/* La photo occupe l'écran, même si elle n'a pas de taille propre */
.vis-cadre img { width: min(92vw, 1400px); height: auto; max-height: 80vh; }
