@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Fraunces:opsz,wght,SOFT,WONK@9..144,400..900,0..100,0..1&family=Shrikhand&display=swap");

/* Soft & Curious — styles des composants. Valeurs : tokens.css (tokens.json). */

.sc-root, .sc-root * { box-sizing: border-box; }
.sc-root { font-family: var(--font-sans); color: var(--brun-encre); background: var(--creme); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; }

/* Typo : Fraunces toujours en SOFT 100 */
.sc-display, .sc-h1, .sc-h2, .sc-h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; text-wrap: balance; margin: 0; color: var(--brun-encre); }
.sc-display { font-size: clamp(56px, 9vw, 96px); line-height: .92; font-weight: 900; letter-spacing: -.02em; }
.sc-h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.015em; }
.sc-h2 { font-size: clamp(34px, 4.5vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.sc-h3 { font-size: 28px; line-height: 1.15; font-weight: 800; }
.sc-titre-orange { color: var(--orange-soft); text-shadow: var(--shadow-titre); }
.sc-accent { font-family: var(--font-accent); font-weight: 400; }
.sc-label { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sc-price { font-family: var(--font-mono); font-size: 20px; line-height: 24px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Rayures signature : bandes nettes orange / abricot, épaisseurs décroissantes */
.sc-rayures { background: linear-gradient(180deg, var(--orange-soft) 0 40%, var(--orange-abricot) 40% 52%, var(--orange-soft) 52% 60%, var(--orange-abricot) 60% 69%, var(--orange-soft) 69% 76%, var(--orange-abricot) 76% 83%, var(--orange-soft) 83% 88%, var(--orange-abricot) 88% 100%); }
.sc-grain { position: relative; isolation: isolate; }
.sc-grain::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .18; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* Focus */
.sc-root :focus-visible { outline: 3px solid var(--anneau-focus); outline-offset: 3px; }

/* Bouton */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 48px; padding: 0 var(--space-24); border-radius: var(--radius-pill); border: 2px solid var(--brun-encre); font: 500 17px/1 var(--font-sans); cursor: pointer; text-decoration: none; transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease; box-shadow: var(--shadow-brun); }
.sc-btn:hover { transform: translate(-1px, -3px); box-shadow: var(--shadow-brun-lg); }
.sc-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--brun-encre); }
.sc-btn-primary { background: var(--orange-soft); color: var(--brun-encre); }
.sc-btn-primary:hover { background: var(--orange-abricot); }
.sc-btn-secondary { background: transparent; color: var(--brun-encre); }
.sc-btn-secondary:hover { background: var(--sable); }
.sc-btn-dark { background: var(--brun-encre); color: var(--creme); }
.sc-btn-dark { box-shadow: var(--shadow-turquoise); }
.sc-btn-dark:hover { box-shadow: var(--shadow-turquoise-lg); }
.sc-btn-sm { min-height: 40px; padding: 0 var(--space-16); font-size: 15px; }
.sc-btn[disabled], .sc-btn[aria-disabled="true"] { background: var(--sable); color: var(--brun-doux); border-color: var(--sable-fonce); box-shadow: none; transform: none; cursor: not-allowed; }
.sc-link { display: inline-flex; align-items: center; gap: var(--space-4); padding: 0; border: 0; background: none; color: var(--turquoise-profond); font: 500 17px/1.4 var(--font-sans); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--turquoise-curious); cursor: pointer; transition: color var(--duration-fast) ease, text-underline-offset var(--duration-fast) ease; }
.sc-link:hover { color: var(--brun-encre); text-underline-offset: 6px; }

/* Badge */
.sc-badge { display: inline-flex; align-items: center; gap: var(--space-4); padding: 6px 14px 7px; border-radius: var(--radius-pill); border: 2px solid var(--brun-encre); white-space: nowrap; line-height: 1; }
.sc-badge-accent { font-family: var(--font-accent); font-size: 17px; }
.sc-badge-mono { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; }
.sc-badge-orange { background: var(--orange-soft); color: var(--brun-encre); }
.sc-badge-abricot { background: var(--orange-abricot); color: var(--brun-encre); }
.sc-badge-turquoise { background: var(--turquoise-profond); color: var(--creme); border-color: var(--turquoise-profond); }
.sc-badge-brun { background: var(--brun-encre); color: var(--creme); }
.sc-badge-creme { background: var(--creme); color: var(--brun-encre); }
.sc-badge-jaune { background: var(--jaune-soleil); color: var(--brun-encre); }
.sc-badge-tilt { transform: rotate(-4deg); box-shadow: var(--shadow-brun); }

/* Quantité */
.sc-qty { display: inline-flex; align-items: center; height: 44px; border: 2px solid var(--brun-encre); border-radius: var(--radius-pill); background: var(--creme); }
.sc-qty button { width: 40px; height: 100%; border: 0; background: none; color: var(--brun-encre); font: 500 20px/1 var(--font-mono); cursor: pointer; border-radius: var(--radius-pill); }
.sc-qty button:hover:not(:disabled) { background: var(--sable); }
.sc-qty button:disabled { color: var(--sable-fonce); cursor: not-allowed; }
.sc-qty output { min-width: 28px; text-align: center; font: 500 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; }

/* Carte produit */
.sc-card { position: relative; display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-24); background: var(--sable); border: 2px solid var(--brun-encre); border-radius: var(--radius-lg); box-shadow: var(--shadow-turquoise); transition: transform var(--duration-base) cubic-bezier(.34,1.56,.64,1), box-shadow var(--duration-base) ease; min-width: 0; }
.sc-card:hover { transform: rotate(-1.5deg); box-shadow: var(--shadow-turquoise-lg); }
.sc-card-badges { position: absolute; top: var(--space-16); left: var(--space-16); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--space-8); }
.sc-card-visuel { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; display: grid; place-items: end center; background: var(--creme); }
.sc-card-visuel::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 70%; border-radius: 999px 999px 0 0; background: var(--orange-abricot); opacity: .35; }
.sc-card-visuel img, .sc-card-visuel svg { position: relative; height: 86%; width: auto; max-width: 80%; object-fit: contain; transition: transform var(--duration-base) cubic-bezier(.34,1.56,.64,1); }
.sc-card:hover .sc-card-visuel img, .sc-card:hover .sc-card-visuel svg { transform: translateY(-12px); }
.sc-card-nom { margin: 0; font: 500 18px/1.3 var(--font-sans); }
.sc-card-meta { margin: 4px 0 0; color: var(--brun-doux); font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.sc-card-prix { display: flex; align-items: baseline; gap: var(--space-8); }
.sc-card-prix s { color: var(--brun-doux); font: 400 14px/1 var(--font-mono); }
.sc-card-actions { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; margin-top: auto; }
.sc-card-actions .sc-btn { flex: 1 1 auto; }
.sc-card-rupture .sc-card-visuel img, .sc-card-rupture .sc-card-visuel svg { filter: grayscale(1); opacity: .55; }
.sc-card-rupture:hover { transform: none; box-shadow: var(--shadow-turquoise); }
.sc-card-rupture:hover .sc-card-visuel img, .sc-card-rupture:hover .sc-card-visuel svg { transform: none; }
.sc-card-tampon { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2; }

/* Bandeau promo */
.sc-ticker { overflow: hidden; background: var(--turquoise-profond); color: var(--creme); border-block: 4px solid var(--turquoise-curious); }
.sc-ticker-piste > div { display: flex; flex: none; }
.sc-ticker-piste { display: flex; width: max-content; animation: sc-defile 32s linear infinite; }
.sc-ticker:hover .sc-ticker-piste { animation-play-state: paused; }
.sc-ticker-item { display: inline-flex; align-items: center; gap: var(--space-24); padding: var(--space-12) var(--space-24) var(--space-12) 0; font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sc-ticker-item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-soft); }
@keyframes sc-defile { to { transform: translateX(-50%); } }

/* En-tête */
.sc-header { position: sticky; top: 0; z-index: 20; background: var(--creme); border-bottom: 2px solid var(--brun-encre); transition: box-shadow var(--duration-base) ease; }
.sc-header-in { display: flex; align-items: center; gap: var(--space-32); padding-block: var(--space-16); padding-inline: max(16px, 3vw); transition: padding var(--duration-base) ease; }
.sc-header-logo { display: block; flex: none; }
.sc-header-logo img { display: block; height: 72px; width: auto; transition: height var(--duration-base) ease; }
.sc-header-nav { display: flex; gap: var(--space-24); flex-wrap: wrap; margin-right: auto; min-width: 0; }
.sc-header-nav a { color: var(--brun-encre); text-decoration: none; font-weight: 500; padding-block: 6px; background: linear-gradient(var(--orange-soft), var(--orange-soft)) 0 100% / 0 3px no-repeat; transition: background-size var(--duration-fast) ease; }
.sc-header-nav a:hover, .sc-header-nav a[aria-current="page"] { background-size: 100% 3px; }
.sc-header-outils { display: flex; align-items: center; gap: var(--space-12); }
.sc-icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brun-encre); background: var(--creme); color: var(--brun-encre); cursor: pointer; transition: background-color var(--duration-fast) ease; }
.sc-icon-btn:hover { background: var(--sable); }
.sc-icon-btn .sc-compteur { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--orange-soft); border: 2px solid var(--brun-encre); font: 500 11px/18px var(--font-mono); text-align: center; }
.sc-header.is-compact { box-shadow: 0 4px 0 var(--turquoise-curious); }
.sc-header.is-compact .sc-header-in { padding-block: var(--space-8); }
.sc-header.is-compact .sc-header-logo img { height: 44px; }
@media (max-width: 720px) { .sc-header-nav { display: none; } }

/* Fil d'Ariane */
.sc-ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.sc-ariane li { display: inline-flex; align-items: center; gap: var(--space-8); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brun-doux); }
.sc-ariane li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-soft); }
.sc-ariane a { color: var(--turquoise-profond); text-decoration: none; }
.sc-ariane a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sc-ariane [aria-current="page"] { color: var(--brun-encre); }

/* Tuile catégorie */
.sc-tuile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-8); min-height: 240px; padding: var(--space-32); border: 2px solid var(--brun-encre); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--brun-encre); box-shadow: var(--shadow-turquoise); transition: transform var(--duration-base) cubic-bezier(.34,1.56,.64,1), box-shadow var(--duration-base) ease; }
.sc-tuile:hover { transform: translateY(-4px) rotate(1deg); box-shadow: var(--shadow-turquoise-lg); }
.sc-tuile-arche { position: absolute; top: var(--space-24); right: var(--space-24); width: 112px; height: 56px; border-radius: 112px 112px 0 0; background: var(--arche-couleur, var(--orange-soft)); box-shadow: inset 0 0 0 14px var(--arche-interieur, var(--orange-abricot)); }
.sc-tuile .sc-h3 { position: relative; }
.sc-tuile-fleche { position: relative; display: inline-flex; align-items: center; gap: var(--space-8); }
.sc-tuile-orange { background: var(--orange-soft); --arche-couleur: var(--creme); --arche-interieur: var(--orange-abricot); }
.sc-tuile-abricot { background: var(--orange-abricot); --arche-couleur: var(--orange-soft); --arche-interieur: var(--creme); }
.sc-tuile-sable { background: var(--sable); --arche-couleur: var(--turquoise-curious); --arche-interieur: var(--orange-soft); }
.sc-tuile-creme { background: var(--creme); --arche-couleur: var(--orange-soft); --arche-interieur: var(--turquoise-curious); }

/* Champs */
.sc-field { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.sc-field label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sc-input { width: 100%; min-height: 48px; padding: var(--space-12) var(--space-16); border: 2px solid var(--brun-encre); border-radius: var(--radius-sm); background: var(--sable); color: var(--brun-encre); font: 400 17px/1.4 var(--font-sans); transition: box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.sc-input::placeholder { color: var(--brun-doux); }
.sc-input:hover { background: var(--creme); }
.sc-input:focus { outline: none; background: var(--creme); box-shadow: var(--shadow-turquoise); }
.sc-input:focus-visible { outline: none; }
select.sc-input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233A2418' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea.sc-input { min-height: 120px; resize: vertical; }
.sc-field-aide { margin: 0; font-size: 14px; line-height: 21px; color: var(--brun-doux); }
.sc-field-erreur { margin: 0; font-size: 14px; line-height: 21px; font-weight: 500; color: var(--orange-brule); display: flex; gap: 6px; align-items: center; }
.sc-field.is-invalid .sc-input { border-color: var(--orange-brule); box-shadow: 4px 4px 0 var(--orange-brule); }

/* Filtres */
.sc-filtres { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.sc-chip { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; padding: 0 var(--space-16); border: 2px solid var(--brun-encre); border-radius: var(--radius-pill); background: var(--creme); color: var(--brun-encre); font: 500 15px/1 var(--font-sans); cursor: pointer; transition: background-color var(--duration-fast) ease, transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.sc-chip:hover { background: var(--sable-fonce); }
.sc-chip[aria-pressed="true"] { background: var(--brun-encre); color: var(--creme); box-shadow: 3px 3px 0 var(--orange-soft); }
.sc-chip-nb { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; opacity: .8; }

/* Carte d'article */
.sc-article { display: flex; flex-direction: column; border: 2px solid var(--brun-encre); border-radius: var(--radius-md); overflow: hidden; background: var(--creme); color: var(--brun-encre); text-decoration: none; transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease; min-width: 0; }
.sc-article:hover { transform: translateY(-4px); box-shadow: var(--shadow-brun-lg); }
.sc-article-visuel { aspect-ratio: 16 / 10; max-width: 100%; border-bottom: 2px solid var(--brun-encre); overflow: hidden; }
.sc-article-visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-article-corps { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24); }
.sc-article-meta { display: flex; gap: var(--space-12); align-items: center; color: var(--brun-doux); }
.sc-article-meta .sc-label { color: var(--orange-brule); }
.sc-article p { margin: 0; color: var(--brun-encre); }

/* Pied de page */
.sc-footer { background: var(--turquoise-profond); color: var(--creme); }
.sc-footer-rayures { height: 40px; }
.sc-footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-48); padding-block: var(--space-64) var(--space-32); padding-inline: max(16px, 4vw); }
.sc-footer h2 { margin: 0 0 var(--space-16); }
.sc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.sc-footer a { color: var(--creme); text-decoration: none; }
.sc-footer a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange-abricot); }
.sc-footer-signature { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 800; font-size: 30px; line-height: 1.1; margin: 0 0 var(--space-16); text-wrap: balance; }
.sc-footer-signature em { font-family: var(--font-accent); font-style: normal; font-weight: 400; color: var(--orange-abricot); }
.sc-footer-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-16); padding-block: var(--space-24); padding-inline: max(16px, 4vw); border-top: 2px solid var(--turquoise-curious); font-size: 14px; }
@media (max-width: 860px) { .sc-footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .sc-footer-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); } }

/* Apparition douce : visible au repos, animée seulement si le navigateur sait et si le mouvement est permis */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sc-reveal { animation: sc-monte linear none; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes sc-monte { from { opacity: 0; transform: translateY(24px) rotate(-.6deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [class*="sc-"], [class*="sc-"]::before, [class*="sc-"]::after { transition-duration: 0ms !important; }
  .sc-ticker-piste { animation: none; flex-wrap: wrap; width: auto; }
  .sc-ticker-piste > [aria-hidden="true"] { display: none; }
  .sc-card:hover, .sc-tuile:hover, .sc-btn:hover, .sc-article:hover { transform: none; }
}
