/* ═══════════════════════════════════════════════════════
   ORÉVALIE · couche « maquette »
   Chargée après orevalie.css / orevalie-sections.css. Tout se règle depuis le dashboard :
   couleurs, polices, rayons, tailles = Paramètres du thème › Orévalie ·* ; les sections ont leur propre bloc
   « Mise en forme » (alignement, tailles, couleurs, espacements).
   Rien n'est figé ici : on lit uniquement les variables posées par snippets/head-config.liquid.
   ═══════════════════════════════════════════════════════ */

/* ── Titres : police des titres + minuscules (réglages « Maquette ») ── */
h1, h2, h3, h4, h5, h6,
.section-head h2, .ov-bhead__title, .eyebrow-title{
  font-family: var(--font-heading, var(--font-family));
}
body[data-ov-lower] :is(h1, h2, h3, h4, h5, h6, .eyebrow, .section-head .text-link, .card-meta, .badge span){
  text-transform: lowercase;
}
body[data-ov-lower] .eyebrow{ letter-spacing: var(--eyebrow-tracking); }

/* ── Mots mis en valeur *entre étoiles* ── */
body[data-ov-em="pen"] :is(h1, h2, h3, h4) em{
  font-family: inherit; font-style: normal; font-weight: inherit; color: inherit;
  position: relative; display: inline-block; white-space: nowrap;
}
body[data-ov-em="pen"] :is(h1, h2, h3, h4) em::after{
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.1em; height: .2em;
  /* le trait prend la couleur réglée (--em-pen) grâce à un masque */
  background: var(--em-pen);
  -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C60 6 120 3 190 6c40 2 80 5 107 4' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
          mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C60 6 120 3 190 6c40 2 80 5 107 4' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scaleX(0); transform-origin: left; animation: ov-pen .9s cubic-bezier(.2,.7,.2,1) .35s forwards;
}
body[data-ov-em="color"] :is(h1, h2, h3, h4) em{ font-family: inherit; font-style: normal; color: var(--em-pen); }
@keyframes ov-pen{ to{ transform: scaleX(1); } }

/* ── Boutons : léger soulèvement (réglage « Mouvement ») ── */
button.primary, .yc-btn.primary, .btn, a.btn, .ov-btn{
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .25s ease;
}
button.primary:hover, .yc-btn.primary:hover, .btn:hover, a.btn:hover, .ov-btn:hover{
  transform: translateY(var(--ov-lift, 0px));
}

@media (prefers-reduced-motion: reduce){
  body[data-ov-em="pen"] :is(h1, h2, h3, h4) em::after{ animation: none; transform: none; }
  button.primary:hover, .yc-btn.primary:hover, .btn:hover, a.btn:hover, .ov-btn:hover{ transform: none; }
}

/* ── PIED DE PAGE sombre : les couleurs du texte viennent du réglage « Texte » de la section ── */
/* (la bande newsletter du haut garde les couleurs de la page : on ne remappe que le bas du footer) */
footer.orv-footer :is(.footer-main, .footer-bottom, .demo-note){
  --ink: rgb(var(--footer-text-color));
  --muted: rgba(var(--footer-text-color), .74);
  --line: rgba(var(--footer-text-color), .18);
  --hover: var(--brand-gold);
}
footer.orv-footer .footer-col h3{ text-transform: var(--ov-lower); letter-spacing: .02em; font-size: 13px; opacity: .8; font-family: var(--font-heading); }
footer.orv-footer .footer-col a{ font-size: 15px; }
footer.orv-footer .footer-brand p{ font-size: 15px; max-width: 34ch; }
footer.orv-footer .footer-big{
  font-family: var(--ov-word-font, var(--font-heading)); font-weight: 400; text-transform: uppercase;
  font-size: var(--fb-size, 14vw); letter-spacing: .16em; line-height: .9; text-align: center; white-space: nowrap;
  padding: .12em var(--pad) 0; margin-top: 8px; opacity: .96; user-select: none; overflow: hidden;
  color: rgb(var(--footer-text-color));
}
footer.orv-footer .footer-bottom{ font-size: 13px; }
footer.orv-footer .footer-bottom a{ font-size: 13px; }

/* ── CARTES PRODUIT (arrondis, étiquette pilule, cœur rond) ── */
.product-card .badge{ border-radius: 99px; padding: 4px 11px; font-weight: 500; }
.product-card .heart{ border-radius: 50%; background: rgba(255,255,255,.92); width: 36px; height: 36px; display: grid; place-items: center; }
.product-card .heart svg{ width: 18px; height: 18px; }
body[data-ov-lower] .product-card :is(.info .title, .card-meta, .card-add span, .card-description){ text-transform: lowercase; }
.product-card .info .yc-btn.secondary, .product-card .product-quick-view button.secondary, .product-card .card-add{ border-radius: var(--button-border-radius); }

/* ── RYTHME DES SECTIONS (accueil) ── */
.section-head h2, .ov-bhead__title, .statement h2, .editorial h2, .wide-story h2{ text-wrap: balance; }
.text-link{ text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference){
  .product-card, .journal-card{ transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .product-card:hover, .journal-card:hover{ transform: translateY(-3px); }
}

/* ── FINITIONS ── */
footer.orv-footer .newsletter{ --muted: color-mix(in srgb, currentColor 72%, transparent); }
footer.orv-footer .newsletter-form{ border-bottom-color: currentColor; border-bottom-width: 1px; }
footer.orv-footer .newsletter-form :is(input, button){ color: inherit; }
footer.orv-footer .newsletter-form input::placeholder{ color: color-mix(in srgb, currentColor 60%, transparent); }
@media (max-width: 760px){
  footer.orv-footer .footer-big{ font-size: calc(var(--fb-size, 14vw) * 1.25); letter-spacing: .12em; }
}

/* ── PAPIER : grain léger (réglage), sélection, barres de défilement, focus ── */
body[data-ov-grain]::after{
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection{ background: var(--brand-gold); color: var(--ink); }
html{ scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 38%, transparent) transparent; }
:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── PRIX : couleurs réglables (Paramètres › Maquette › Prix) ── */
body .product-card .info .price .current,
body .single-product yc-product-info .price .current,
body .cart-item .price .current, body .cart-drawer .price .current{ color: var(--ov-price); }
body .product-card .info .price:has(.compare-at) .current,
body .single-product yc-product-info .price:has(.compare-at) .current,
body .cart-item .price:has(.compare-at) .current{ color: var(--ov-price-sale); }
body :is(.product-card, .single-product yc-product-info, .cart-item) .price .compare-at{ color: var(--muted); }

/* ── CHECKOUT EXPRESS : habillage uniquement (structure, champs et réglages inchangés) ── */
.single-product yc-product-info .buy-area .express-checkout{
  --form-head-bg: var(--sand); --form-head-text: var(--ink);
  --input-bg: #fff; --input-bg-on: #fff; --input-bg-f: #fff; --input-bc: var(--line); --input-bc-eff: var(--line);
  --input-focus: var(--ink); --input-ink: var(--ink); --input-ph: #8A8A8A;
  --input-radius-eff: 22px; --input-border-radius: 22px;
  border-radius: 22px; border-color: var(--line);
}
.single-product yc-product-info .buy-area .express-checkout :is(.form-title, .form-title--ar){ font-family: var(--font-heading); text-transform: var(--ov-lower); letter-spacing: var(--heading-tracking); }
.single-product yc-product-info .buy-area .express-checkout label{ font-family: var(--font-family); text-transform: none; letter-spacing: .01em; }

/* ── PAGES INTÉRIEURES : titres et filtres au gabarit maquette ── */
.page-heading h1, .orv-listing h1, .yc-page h1{ font-size: clamp(var(--page-title-min), var(--page-title-vw), var(--page-title-max)); line-height: .94; }
.orv-listing :is(a.chip, .chip, .filter-chip, .subcategory a){ border-radius: 999px; }

/* ── pied de page : typographie maquette ── */
footer.orv-footer .footer-col h3{ font-family:var(--font-family); font-size:12px; font-weight:500; letter-spacing:0; line-height:1.4; opacity:.7; text-transform:lowercase; }
footer.orv-footer .footer-col a{ font-size:16px; line-height:1.4; text-transform:lowercase; }
