/*
Theme Name: Mariam Optic
Theme URI: https://www.mariam-optic.com/
Author: Mariam Optic
Description: Thème sur mesure pour Mariam Optic, opticien à Ribat El Medina, Sfax. Page d'accueil complète, coordonnées modifiables dans Apparence → Personnaliser → Coordonnées.
Version: 1.1.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mariam-optic
*/

  :root {
    --ink-950: #1c130c;
    --ink-900: #241a11;
    --ink-800: #332416;
    --ink-500: #6b5544;
    --ink-300: #a3907e;
    --cream: #faf5ee;
    --cream-2: #f2e9dc;
    --white: #fffdfb;
    --orange-700: #9a3f14;
    --orange-600: #c1531f;
    --orange-500: #de6c2b;
    --orange-400: #ea9152;
    --orange-200: #f6cda2;
    --orange-100: #fbe5c9;
    --muted: #7d6a5a;
    --radius: 16px;
    --ease: cubic-bezier(.22,.61,.36,1);
    --shadow: 0 24px 45px -22px rgba(28,19,12,.28);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--ink-900);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  svg { display: block; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; letter-spacing: -0.01em; }
  .arabic { font-family: 'Cairo', sans-serif; direction: rtl; }
  .eyebrow {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .16em; color: var(--orange-600);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--orange-500); display: inline-block; }

  /* ---------- Scroll progress ---------- */
  #progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
    z-index: 999; transition: width .1s linear;
  }

  .btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  }
  .btn::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: rgba(255,255,255,.35); transform: skewX(-20deg);
    transition: left .55s var(--ease);
  }
  .btn:hover::before { left: 130%; }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--orange-500); color: var(--white); }
  .btn-primary:hover { background: var(--orange-600); box-shadow: 0 16px 30px -12px rgba(193,83,31,.55); transform: translateY(-2px); }
  .btn-ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
  .btn-ghost:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.07); transform: translateY(-2px); }
  .btn-dark { background: var(--ink-950); color: var(--white); }
  .btn-dark:hover { background: var(--ink-800); transform: translateY(-2px); box-shadow: var(--shadow); }
  .icon { width: 20px; height: 20px; flex-shrink: 0; }

  /* ---------- Reveal animation ---------- */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: .08s; }
  .reveal-delay-2 { transition-delay: .16s; }
  .reveal-delay-3 { transition-delay: .24s; }
  .reveal-delay-4 { transition-delay: .32s; }

  .word { display: inline-block; opacity: 0; transform: translateY(16px); filter: blur(3px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
    transition-delay: calc(var(--i, 0) * .07s); }
  .hero.ready .word { opacity: 1; transform: translateY(0); filter: blur(0); }

  /* ---------- Header ---------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(28,19,12,0);
    transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
  }
  header.scrolled { background: rgba(28,19,12,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  .nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand-mark {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(145deg, var(--orange-400), var(--orange-600));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform .4s var(--ease);
  }
  .brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
  .brand-logo {
    width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.45);
    transition: transform .4s var(--ease);
  }
  .brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
  .brand-mark svg { width: 22px; height: 22px; color: var(--ink-950); }
  .brand-name { color: var(--white); font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; line-height: 1.2; }
  .brand-sub { color: var(--orange-200); font-size: 11px; opacity: .9; }
  nav.links { display: none; gap: 34px; font-size: 14px; font-weight: 500; color: var(--cream-2); }
  nav.links a { position: relative; padding: 4px 0; opacity: .88; transition: opacity .25s; }
  nav.links a:hover { opacity: 1; }
  nav.links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--orange-400); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  nav.links a:hover::after { transform: scaleX(1); }
  .nav-phone { display: none; }
  .menu-btn { background: none; border: none; color: var(--white); padding: 8px; cursor: pointer; }
  .menu-btn svg { width: 24px; height: 24px; }
  .mobile-menu {
    max-height: 0; overflow: hidden; background: var(--ink-950);
    transition: max-height .4s var(--ease);
  }
  .mobile-menu.open { max-height: 380px; }
  .mobile-menu-inner { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a { color: var(--cream-2); padding: 12px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobile-menu .btn { margin-top: 14px; }

  @media (min-width: 980px) {
    nav.links { display: flex; }
    .nav-phone { display: inline-flex; }
    .menu-btn { display: none; }
  }

  /* ---------- Hero (split layout) ---------- */
  .hero {
    position: relative; padding: 116px 0 0; overflow: hidden;
    background: var(--ink-950);
  }
  .hero-grid {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 40px; align-items: center; padding-bottom: 90px;
  }
  @media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; padding-bottom: 60px; } }

  .hero-copy .arabic { font-size: 18px; color: var(--orange-300, var(--orange-200)); margin-bottom: 16px; opacity: .95; }
  .hero-copy h1 { font-size: clamp(32px, 4.4vw, 50px); color: var(--white); line-height: 1.16; }
  .hero-copy h1 .accent { color: var(--orange-400); }
  .hero-copy p.lead { margin-top: 22px; color: var(--ink-300); font-size: 16.5px; max-width: 460px;
    opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .5s, transform .7s var(--ease) .5s; }
  .hero.ready .lead { opacity: 1; transform: translateY(0); }
  .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px;
    opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .62s, transform .7s var(--ease) .62s; }
  .hero.ready .hero-cta { opacity: 1; transform: translateY(0); }
  .hero-facts { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 26px;
    opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .74s, transform .7s var(--ease) .74s; }
  .hero.ready .hero-facts { opacity: 1; transform: translateY(0); }
  .hero-fact { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-300); }
  .hero-fact .icon { color: var(--orange-400); width: 17px; height: 17px; }

  .hero-visual {
    position: relative; opacity: 0; transform: translateY(20px) scale(.97);
    transition: opacity .9s var(--ease) .3s, transform .9s var(--ease) .3s;
  }
  .hero.ready .hero-visual { opacity: 1; transform: translateY(0) scale(1); }
  .hero-frame {
    position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
    background: radial-gradient(120% 120% at 30% 20%, #2a1d13 0%, var(--ink-950) 60%);
  }
  .hero-frame svg { width: 100%; height: 100%; display: block; }
  .hero-ring, .hero-glasses, .sparkle, .drift-dot { transform-box: fill-box; transform-origin: 50% 50%; }
  .hero-ring { animation: spin-slow 60s linear infinite; }
  .hero-glasses { animation: float-y 6s ease-in-out infinite; }
  .hero-wordmark .wm-script { font-family: 'Great Vibes', cursive; font-size: 52px; fill: #fbe5c9; }
  .hero-wordmark .wm-caps { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 7px; fill: #ea9152; }
  .hero-wordmark { opacity: 0; transition: opacity 1s var(--ease) .9s; }
  .hero.ready .hero-wordmark { opacity: 1; }
  .shine { animation: shine-sweep 5s ease-in-out infinite; }
  .sparkle { animation: twinkle 2.6s ease-in-out infinite; }
  .drift-dot { animation: drift 4.5s ease-in-out infinite; }
  @keyframes spin-slow { to { transform: rotate(360deg); } }
  @keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes shine-sweep {
    0%, 12% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
    28% { opacity: .5; }
    44%, 100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
  }
  @keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.55); } 50% { opacity: 1; transform: scale(1); } }
  @keyframes drift { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(2px,-3px); } }
  .hero-corner {
    position: absolute; width: 46px; height: 46px; border-color: var(--orange-500);
    z-index: 2;
  }
  .hero-corner.tl { top: -14px; left: -14px; border-top: 3px solid; border-left: 3px solid; border-radius: 6px 0 0 0; }
  .hero-corner.br { bottom: -14px; right: -14px; border-bottom: 3px solid; border-right: 3px solid; border-radius: 0 0 6px 0; }
  .hero-badge {
    position: absolute; left: -26px; bottom: 34px; background: var(--white);
    border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px; z-index: 3; max-width: 210px;
  }
  @media (max-width: 640px) { .hero-badge { left: 12px; bottom: -22px; } }
  /* Mobile : le logo (lunettes) passe avant le texte */
  @media (max-width: 940px) {
    .hero { padding-top: 104px; }
    .hero-grid { row-gap: 0; }
    .hero-copy { display: contents; }
    .hero-copy .arabic { order: -2; margin-bottom: 22px; }
    .hero-visual { order: -1; width: 100%; max-width: 460px; margin: 0 auto 44px; }
    .hero-frame { aspect-ratio: 1 / 1; }
    .hero-badge { position: relative; left: auto; bottom: auto; margin: -26px auto 0; width: max-content; max-width: 90%; }
  }
  .hero-badge .stars { color: var(--orange-500); font-size: 13px; letter-spacing: 1px; }
  .hero-badge strong { display: block; font-size: 14px; color: var(--ink-950); }
  .hero-badge span { font-size: 11.5px; color: var(--muted); }

  /* ---------- Marquee strip ---------- */
  .marquee {
    background: var(--orange-600); overflow: hidden; padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .marquee-track { display: flex; width: max-content; animation: scroll-left 26s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-item {
    display: flex; align-items: center; gap: 10px; padding: 0 34px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--orange-100);
    white-space: nowrap; text-transform: uppercase;
  }
  .marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange-200); opacity: .7; }
  @keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ---------- Section shell ---------- */
  section.block { padding: 100px 0; }
  .section-head { max-width: 620px; margin: 0 0 52px; }
  .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
  .section-head h2 { font-size: clamp(27px, 3.2vw, 36px); color: var(--ink-950); margin-top: 12px; }
  .section-head p { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 480px; }
  .section-head.center p { margin-left: auto; margin-right: auto; }
  .section-head.center .eyebrow::before { display: none; }

  /* ---------- Services ---------- */
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
  .service-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid #ece2d4; transition: transform .12s linear, box-shadow .4s var(--ease);
    will-change: transform;
  }
  .service-card:hover { box-shadow: var(--shadow); }
  .service-media { height: 148px; overflow: hidden; }
  .service-media svg { width: 100%; height: 100%; display: block; transition: transform .6s var(--ease); }
  .service-card:hover .service-media svg { transform: scale(1.06); }
  .service-body { padding: 24px; }
  .service-icon {
    width: 42px; height: 42px; border-radius: 12px; background: var(--ink-950);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
    transition: background .35s var(--ease);
  }
  .service-card:hover .service-icon { background: var(--orange-600); }
  .service-icon .icon { color: var(--orange-200); width: 20px; height: 20px; }
  .service-body h3 { font-size: 17px; color: var(--ink-950); }
  .service-body p { margin-top: 8px; font-size: 13.8px; color: var(--muted); line-height: 1.55; }

  /* ---------- Boutique ---------- */
  .boutique { background: var(--cream-2); }
  .boutique-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  @media (max-width: 900px) { .boutique-grid { grid-template-columns: 1fr; gap: 44px; } }
  .boutique-photo { position: relative; width: 100%; max-width: 440px; justify-self: center; }
  .boutique-photo img {
    width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow);
  }
  .boutique-photo .hero-corner.tl { top: -12px; left: -12px; }
  .boutique-photo .hero-corner.br { bottom: -12px; right: -12px; }
  .boutique-copy .section-head { margin-bottom: 26px; }
  .boutique-points { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
  .boutique-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-800); }
  .boutique-points .icon { color: var(--orange-600); width: 19px; height: 19px; margin-top: 3px; }

  /* ---------- Comfort ---------- */
  .comfort { background: var(--ink-950); }
  .comfort .section-head h2 { color: var(--white); }
  .comfort .section-head p { color: var(--ink-300); }
  .comfort .eyebrow { color: var(--orange-300, var(--orange-200)); }
  .comfort .eyebrow::before { background: var(--orange-400); }
  .comfort-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.09);
    border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.09); }
  @media (max-width: 700px) { .comfort-list { grid-template-columns: 1fr; } }
  .comfort-item {
    background: var(--ink-950); padding: 30px 28px; display: flex; align-items: flex-start; gap: 18px;
    transition: background .35s var(--ease);
  }
  .comfort-item:hover { background: #2a1d13; }
  .comfort-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: rgba(222,108,43,.14); display: flex; align-items: center; justify-content: center;
  }
  .comfort-icon .icon { color: var(--orange-400); width: 20px; height: 20px; }
  .comfort-item h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: var(--white); }
  .comfort-item p { margin-top: 6px; font-size: 13px; color: var(--ink-300); }

  /* ---------- Contact ---------- */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-card {
    background: var(--white); border-radius: 22px; border: 1px solid #ece2d4;
    box-shadow: var(--shadow); padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  }
  .info-row { display: flex; gap: 16px; }
  .info-row + .info-row { margin-top: 26px; }
  .info-icon {
    width: 42px; height: 42px; border-radius: 12px; background: var(--ink-950);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .info-icon .icon { color: var(--orange-200); width: 19px; height: 19px; }
  .info-row h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink-950); }
  .info-row p, .info-row a.info-link { margin-top: 4px; font-size: 14px; color: var(--muted); }
  .info-link { color: var(--orange-600); font-weight: 600; }
  .hours-row { display: flex; justify-content: space-between; max-width: 220px; font-size: 13.8px; padding: 3px 0; }
  .hours-row span:first-child { color: var(--muted); }
  .hours-row span:last-child { font-weight: 600; color: var(--ink-950); }
  .closed { color: #b5462b !important; }
  .contact-side { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
  @media (max-width: 560px) { .contact-side { grid-template-columns: 1fr; } }
  .building {
    position: relative; margin: 0; border-radius: 22px; overflow: hidden;
    border: 1px solid #ece2d4; box-shadow: var(--shadow); min-height: 420px;
  }
  .building img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; position: absolute; inset: 0; }
  .building figcaption {
    position: absolute; left: 12px; right: 12px; top: 12px;
    background: rgba(28,19,12,.82); backdrop-filter: blur(6px); color: var(--cream);
    font-size: 12.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px;
  }
  .building figcaption strong { color: var(--orange-200); display: block; font-size: 13px; }
  .map-frame {
    border-radius: 22px; overflow: hidden; border: 1px solid #ece2d4; box-shadow: var(--shadow);
    min-height: 420px;
  }
  .map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(.08) saturate(1.05); }

  /* ---------- Footer ---------- */
  footer { background: var(--ink-950); padding: 44px 0; border-top: 1px solid rgba(255,255,255,.06); }
  .footer-row {
    display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center;
    color: var(--ink-300); font-size: 13px;
  }
  @media (min-width: 760px) { .footer-row { flex-direction: row; justify-content: space-between; text-align: left; } }
  .footer-brand { display: flex; align-items: center; gap: 10px; }
  .footer-brand .brand-mark { width: 32px; height: 32px; }
  .footer-brand .brand-mark svg { width: 17px; height: 17px; }
  .footer-brand strong { color: var(--white); font-family: 'Fraunces', serif; font-size: 14.5px; }

  @media (prefers-reduced-motion: reduce) {
    .marquee-track, .hero-ring, .hero-glasses, .shine, .sparkle, .drift-dot { animation: none; }
    .reveal, .word, .hero-copy p.lead, .hero-cta, .hero-facts, .hero-visual, .hero-wordmark { transition: none; opacity: 1; transform: none; filter: none; }
  }

  /* ---------- Google rating ---------- */
  a.hero-badge { transition: transform .35s var(--ease); }
  a.hero-badge:hover { transform: translateY(-3px); }
  .avis { background: var(--orange-600); padding: 44px 0; }
  .avis-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
  .avis-score { display: flex; align-items: center; gap: 16px; }
  .avis-number { font-family: 'Fraunces', serif; font-size: 58px; font-weight: 600; line-height: 1; color: var(--white); }
  .avis-stars { display: block; color: var(--orange-100); font-size: 20px; letter-spacing: 3px; }
  .avis-count { display: block; color: var(--orange-100); font-size: 14px; font-weight: 600; margin-top: 2px; }
  .avis-text { flex: 1 1 280px; color: var(--orange-100); font-size: 15.5px; max-width: 460px; }
  .avis .btn-primary { background: var(--ink-950); }
  .avis .btn-primary:hover { background: var(--ink-800); box-shadow: var(--shadow); }

  /* ---------- Contact actions ---------- */
  .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .btn-outline { border-color: #d9cbb8; color: var(--ink-950); }
  .btn-outline:hover { border-color: var(--ink-950); transform: translateY(-2px); }

  /* ---------- Montures ---------- */
  .montures-home { background: var(--white); }
  .montures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 1080px) { .montures-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 780px) { .montures-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
  .monture-card {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid #ece2d4;
    border-radius: var(--radius); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .monture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .monture-media { position: relative; aspect-ratio: 4/3; background: #fbf8f4; overflow: hidden; }
  .monture-media img, .monture-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .monture-card:hover .monture-media img { transform: scale(1.05); }
  .monture-tag {
    position: absolute; top: 10px; left: 10px; background: rgba(28,19,12,.82); color: var(--orange-100);
    font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
  }
  .monture-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
  .monture-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); }
  .monture-body h3 { font-size: 16.5px; color: var(--ink-950); line-height: 1.3; }
  .monture-price { font-weight: 700; color: var(--ink-950); font-size: 15px; margin-top: 4px; }
  .montures-more { text-align: center; margin-top: 44px; }

  /* Carrousel « Nos montures du moment » : glisser au doigt (mobile), flèches (ordinateur) */
  .montures-carousel { position: relative; }
  .montures-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px -14px;
  }
  .montures-track::-webkit-scrollbar { display: none; }
  .montures-track > .monture-card { scroll-snap-align: start; }
  .montures-track:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 4px; border-radius: 8px; }
  @media (max-width: 1080px) { .montures-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
  @media (max-width: 780px) { .montures-track { grid-auto-columns: 72%; gap: 14px; } }
  .carousel-arrow {
    position: absolute; top: 38%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: var(--white); color: var(--ink-950); border: 1px solid #ece2d4; box-shadow: var(--shadow);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  }
  .carousel-arrow svg { width: 20px; height: 20px; }
  .carousel-arrow:hover { background: var(--ink-950); color: var(--white); transform: scale(1.06); }
  .carousel-arrow.prev { left: -22px; }
  .carousel-arrow.next { right: -22px; }
  .carousel-arrow[disabled] { opacity: 0; pointer-events: none; }
  @media (max-width: 1240px) { .carousel-arrow.prev { left: 6px; } .carousel-arrow.next { right: 6px; } }
  @media (hover: none), (max-width: 780px) { .carousel-arrow { display: none; } }
  .montures-carousel.no-scroll .carousel-arrow { display: none; }

  /* Fiche monture : flèches sur la photo (ordinateur), glisser au doigt (mobile) */
  .monture-single-media { position: relative; touch-action: pan-y; }
  .photo-zone {
    position: absolute; top: 0; bottom: 0; width: 38%; z-index: 2; display: flex; align-items: center;
    cursor: pointer; transition: background .3s var(--ease);
  }
  .photo-zone.prev { left: 0; justify-content: flex-start; padding-left: 14px; }
  .photo-zone.next { right: 0; justify-content: flex-end; padding-right: 14px; }
  .photo-zone.prev:hover { background: linear-gradient(90deg, rgba(28,19,12,.22), rgba(28,19,12,0)); }
  .photo-zone.next:hover { background: linear-gradient(270deg, rgba(28,19,12,.22), rgba(28,19,12,0)); }
  .photo-zone .carousel-arrow { position: static; }
  .photo-zone:hover .carousel-arrow { background: var(--ink-950); color: var(--white); transform: scale(1.08); }
  .photo-zone:focus-visible { outline: 2px solid var(--orange-500); outline-offset: -4px; }
  @media (hover: none), (max-width: 780px) { .photo-zone { display: none; } }
  .monture-counter { z-index: 3; pointer-events: none; }
  .monture-counter {
    position: absolute; right: 12px; bottom: 12px; background: rgba(28,19,12,.78); color: var(--orange-100);
    font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px;
  }
  .monture-single-media.swiping img { transition: transform .25s var(--ease), opacity .25s var(--ease); }
  @media (max-width: 480px) {
    .monture-body { padding: 12px 12px 14px; }
    .monture-body h3 { font-size: 14.5px; }
  }

  .monture-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .monture-filters a {
    padding: 8px 18px; border-radius: 999px; border: 1px solid #d9cbb8; font-size: 14px; font-weight: 500;
    color: var(--ink-800); transition: background .25s, color .25s, border-color .25s;
  }
  .monture-filters a:hover { border-color: var(--ink-950); }
  .monture-filters a.active { background: var(--ink-950); border-color: var(--ink-950); color: var(--white); }
  #catalogue { scroll-margin-top: 100px; }
  .admin-bar #catalogue { scroll-margin-top: 132px; }

  /* Pages sans grand bandeau (fiche monture) : menu toujours sur fond sombre, photo juste en dessous */
  body.catalogue-single #siteHeader { background: rgba(28,19,12,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  body.catalogue-single .page-body { padding-top: 96px; }
  .monture-back { margin-bottom: 14px; }
  .monture-back .back-link { color: var(--orange-600); font-weight: 600; }
  .monture-back .back-link:hover { color: var(--ink-950); }
  @media (max-width: 780px) { body.catalogue-single .page-body { padding-top: 88px; } }

  .monture-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
  .monture-toolbar .monture-filters { margin-bottom: 0; }
  .per-page { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
  .per-page span { margin-right: 4px; }
  .per-page a {
    min-width: 38px; text-align: center; padding: 5px 11px; border-radius: 999px; border: 1px solid #d9cbb8;
    color: var(--ink-800); font-weight: 500; transition: background .25s, color .25s, border-color .25s;
  }
  .per-page a:hover { border-color: var(--ink-950); }
  .per-page a.active { background: var(--orange-600); border-color: var(--orange-600); color: var(--white); }

  .page-hero-slim { padding: 118px 0 26px; }
  .back-link { color: var(--orange-200); font-size: 14px; font-weight: 500; }
  .back-link:hover { color: var(--white); }
  .monture-single { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  @media (max-width: 900px) { .monture-single { grid-template-columns: 1fr; gap: 32px; } }
  .monture-single-media { border-radius: 20px; overflow: hidden; background: #fbf8f4; border: 1px solid #ece2d4; box-shadow: var(--shadow); }
  .monture-single-media img, .monture-single-media svg { width: 100%; height: auto; display: block; }
  .monture-single-info h1 { font-size: clamp(28px, 3.4vw, 40px); color: var(--ink-950); line-height: 1.15; margin-top: 8px; }
  .monture-price-lg { font-size: 24px; margin-top: 14px; }
  .monture-facts { margin-top: 22px; border-top: 1px solid #ece2d4; }
  .monture-facts div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #ece2d4; font-size: 14.5px; }
  .monture-facts dt { color: var(--muted); }
  .monture-facts dd { font-weight: 600; color: var(--ink-950); }
  .monture-facts dd a { color: var(--orange-600); }
  .monture-description { margin: 24px 0 0; max-width: none; font-size: 15.5px; }
  .monture-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .monture-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

  /* ---------- WordPress: menus ---------- */
  nav.links ul { display: flex; gap: 34px; list-style: none; }
  .mobile-menu-inner ul { list-style: none; display: flex; flex-direction: column; }
  .mobile-menu-inner ul a { display: block; }

  /* ---------- WordPress: admin bar ---------- */
  .admin-bar header { top: 32px; }
  @media (max-width: 782px) { .admin-bar header { top: 46px; } }

  /* ---------- WordPress: accessibility ---------- */
  .screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
  }
  .skip-link:focus {
    clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
    top: 8px; left: 8px; padding: 10px 16px; background: var(--white); color: var(--ink-950); border-radius: 8px;
  }

  /* ---------- Inner pages ---------- */
  .page-hero { background: var(--ink-950); padding: 150px 0 64px; }
  .page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); margin-top: 12px; line-height: 1.15; }
  .page-hero .eyebrow { color: var(--orange-200); }
  .page-hero .meta { margin-top: 12px; color: var(--ink-300); font-size: 14px; }
  .page-body { padding: 72px 0 100px; }
  .entry-content { max-width: 760px; margin: 0 auto; font-size: 16px; color: var(--ink-800); }
  .entry-content > * + * { margin-top: 1.1em; }
  .entry-content h2 { font-size: 28px; color: var(--ink-950); margin-top: 1.6em; }
  .entry-content h3 { font-size: 21px; color: var(--ink-950); margin-top: 1.4em; }
  .entry-content a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }
  .entry-content ul, .entry-content ol { padding-left: 1.3em; }
  .entry-content img { border-radius: 14px; height: auto; }
  .entry-content figure { margin: 1.6em 0; }
  .entry-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
  .entry-content blockquote { border-left: 3px solid var(--orange-500); padding-left: 18px; font-style: italic; }
  .entry-content .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: 100vw; }
  .entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
  .entry-content .aligncenter { margin-left: auto; margin-right: auto; }
  .entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
  .entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
  .post-list { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; }
  .post-card { background: var(--white); border: 1px solid #ece2d4; border-radius: var(--radius); padding: 26px 28px; transition: box-shadow .35s var(--ease); }
  .post-card:hover { box-shadow: var(--shadow); }
  .post-card h2 { font-size: 22px; color: var(--ink-950); }
  .post-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
  .pagination { max-width: 760px; margin: 40px auto 0; display: flex; gap: 10px; justify-content: center; }
  .pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid #ece2d4; font-size: 14px; }
  .pagination .current { background: var(--ink-950); color: var(--white); border-color: var(--ink-950); }
  .empty-state { text-align: center; color: var(--muted); }
  .empty-state .btn { margin-top: 24px; }

  /* ---------- Réseaux sociaux ---------- */
  .social-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
  .social-links .info-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 0; }
  .social-links .icon { width: 17px; height: 17px; }
  .social-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
  .social-buttons .icon { width: 18px; height: 18px; }
  .footer-social { display: flex; gap: 10px; }
  .footer-social a {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.18); color: var(--orange-200); transition: background .25s, color .25s;
  }
  .footer-social a:hover { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }
  .footer-social .icon { width: 17px; height: 17px; }

  /* ---------- Page Lentilles ---------- */
  .lentilles-content { max-width: 1040px; }
  .lentilles-content > h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 2.2em; }
  .lentilles-content > h2:first-child { margin-top: 0; }
  .lentilles-content .lentilles-intro { font-size: 17px; color: var(--ink-800); max-width: 720px; }
  .lentilles-content .lentilles-steps { gap: 18px; margin-top: 1.4em; }
  .lentilles-content .lentilles-steps .wp-block-column {
    background: var(--white); border: 1px solid #ece2d4; border-radius: var(--radius); padding: 22px 22px 18px;
  }
  .lentilles-content .lentilles-steps h3 { margin-top: 0; font-size: 18px; }
  .lentilles-content .lentilles-steps p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
  /* Galeries en carrousel : glisser au doigt, flèches sur ordinateur (voir main.js) */
  .lentilles-content .wp-block-gallery.has-nested-images {
    display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; padding-bottom: 6px;
  }
  .lentilles-content .wp-block-gallery.has-nested-images::-webkit-scrollbar { display: none; }
  .lentilles-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    flex: 0 0 min(280px, 74%) !important; width: auto !important; margin: 0 !important; scroll-snap-align: start;
  }
  .lentilles-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--cream-2);
  }
  .lentilles-content .montures-carousel { margin-top: 1.2em; }
  .lentilles-cta {
    margin: 64px auto 0; max-width: 1040px; background: var(--ink-950); color: var(--cream); border-radius: 22px;
    padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  }
  .lentilles-cta h2 { font-size: 24px; color: var(--white); }
  .lentilles-cta p { color: var(--ink-300); font-size: 14px; margin-top: 6px; }
  .lentilles-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

  /* ---------- Carrousel « Le magasin » (photos entières, sans recadrage) ---------- */
  .montures-track.magasin-track {
    grid-auto-columns: 100%; gap: 0; padding: 0; margin: 0;
    border-radius: 20px; box-shadow: var(--shadow); background: var(--cream-2);
  }
  .magasin-slide { margin: 0; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; }
  .boutique-photo .magasin-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; }
  .magasin-slider .carousel-arrow { top: 50%; margin-top: -23px; }
  .magasin-slider .carousel-arrow.prev { left: 10px; }
  .magasin-slider .carousel-arrow.next { right: 10px; }
  .magasin-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
  .magasin-dots span { width: 8px; height: 8px; border-radius: 4px; background: #d9cbb8; transition: width .3s var(--ease), background .3s; }
  .magasin-dots span.active { width: 22px; background: var(--orange-600); }

  /* ---------- Tuiles « Services » cliquables ---------- */
  a.service-card { display: block; color: inherit; }
  a.service-card:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; }
  .service-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--orange-600); }
  a.service-card:hover .service-more span { display: inline-block; transform: translateX(3px); transition: transform .25s var(--ease); }

  /* ---------- Services compacts sur mobile : texte à gauche, image à droite ---------- */
  @media (max-width: 560px) {
    .services-grid { gap: 12px; }
    .services-grid .service-card { display: grid; grid-template-columns: 1fr 104px; align-items: stretch; }
    .service-more { margin-top: 6px; font-size: 12.5px; }
    .service-media { order: 2; height: auto; min-height: 100%; }
    .service-media svg { height: 100%; }
    .service-body { padding: 16px 16px 16px 18px; }
    .service-icon { display: none; }
    .service-body h3 { font-size: 16px; }
    .service-body p { font-size: 13px; margin-top: 4px; line-height: 1.45; }
  }