/*
Theme Name: TOMI Galaxy Flow
Theme URI: https://ammwaj.store
Author: Ammwaj
Description: Landing page WooCommerce (RTL, arabe/darija) pour la montre TOMI Galaxy Flow (3 styles: T101/T102/T103). Formulaire simple (Nom, Telephone, Ville) qui cree une commande en paiement a la livraison.
Version: 1.3.0
Requires PHP: 7.4
Text Domain: gf-tomi
*/

@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track) { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

:root{
  --paper:#faf6ee;
  --paper-2:#f2e9d6;
  --band:#f5ead2;
  --leather:#a8672f;
  --gold:#c9a063;
  --gold-strong:#dcb679;
  --ash:#7a6f61;
  --ink:#2a2118;
  --line: rgba(42,33,24,0.12);

  --bg: var(--paper);
  --bg-raised: #ffffff;
  --bg-sunken: var(--paper-2);
  --text: var(--ink);
  --text-muted: var(--ash);
  --accent: var(--leather);
  --accent-strong: #7f4a1f;
  --on-accent: #fffaf1;
  --card-line: var(--line);
  --danger: #b3261e;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, "Segoe UI", Tahoma, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
h1,h2,h3{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  font-weight:600; text-wrap:balance; margin:0; color:inherit;
}
.eyebrow{ font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; font-weight:600; color:var(--accent); }
.num{ font-variant-numeric:tabular-nums; }
a{color:inherit;}
button{font-family:inherit;}
ul{margin:0;padding:0;}

.wrap{ max-width:1120px; margin:0 auto; padding:0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- MARQUEE (scrolling top bar) ---------- */
.marquee{ background:var(--band); color:var(--accent-strong); overflow:hidden; padding:0.6rem 0; border-bottom:1px solid var(--card-line); }
.marquee-track{ display:flex; gap:2.5rem; width:max-content; white-space:nowrap; animation:gf-scroll 18s linear infinite; will-change:transform; }
.marquee-track span{ font-size:0.82rem; font-weight:600; letter-spacing:0.02em; }
@keyframes gf-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-25%); } }

/* ---------- TOPBAR (static, used on secondary pages) ---------- */
.topbar{ background:var(--band); color:var(--accent-strong); font-size:0.78rem; padding:0.55rem 0; border-bottom:1px solid var(--card-line); }
.topbar .wrap{ display:flex; justify-content:center; gap:clamp(1rem,4vw,2.2rem); flex-wrap:wrap; text-align:center; }
.topbar span{ display:inline-flex; align-items:center; gap:0.4rem; font-weight:600; }
.topbar svg{ width:14px;height:14px; color:var(--accent); flex:none; }

/* ---------- NAV (used on secondary pages) ---------- */
.nav{ background:var(--bg-raised); color:var(--text); border-bottom:1px solid var(--card-line); }
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-top:0.7rem; padding-bottom:0.7rem; }
.nav-brand{ display:flex; align-items:center; gap:0.6rem; text-decoration:none; }
.nav-brand img{ width:38px; height:38px; border-radius:50%; flex:none; }
.nav-brand .brand-name{ font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; font-size:1.05rem; letter-spacing:0.1em; line-height:1.1; color:var(--text); }
.nav-brand .brand-sub{ display:block; font-family:-apple-system,"Segoe UI",sans-serif; font-size:0.6rem; letter-spacing:0.16em; color:var(--text-muted); text-transform:uppercase; }
.nav-cta{ background:var(--accent); color:var(--on-accent); font-weight:700; font-size:0.85rem; padding:0.6rem 1.1rem; border-radius:8px; text-decoration:none; white-space:nowrap; }

/* ---------- PRODUCT HEADER ---------- */
.product-header{ background:var(--bg); padding:clamp(1.6rem,4vw,2.4rem) 0 clamp(1rem,3vw,1.4rem); text-align:center; }
.product-header .eyebrow{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size:clamp(1.3rem,6vw,1.6rem); letter-spacing:0.18em; font-weight:700;
  text-transform:none; display:block; margin-bottom:0.3rem;
}
.product-header h1{ font-size:clamp(1.5rem,3.4vw,2.1rem); line-height:1.2; margin:0.5rem 0 0.9rem; max-width:34ch; margin-left:auto; margin-right:auto; }
.header-row{ display:flex; align-items:baseline; justify-content:center; gap:0.6rem; flex-wrap:wrap; }
.price-old{ font-size:1.1rem; color:var(--text-muted); text-decoration:line-through; }
.price-now{ font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; font-size:2rem; color:var(--accent-strong); font-variant-numeric:tabular-nums; }
.price-note{ width:100%; font-size:0.85rem; color:var(--text-muted); }

/* ---------- GALLERY (main + thumbs + dots) ---------- */
.gallery-section{ background:var(--bg); padding-top:0.4rem; padding-bottom:1.6rem; }
.gallery-main{
  max-width:520px; margin:0 auto 0.9rem; aspect-ratio:1/1; border-radius:16px; overflow:hidden;
  border:1px solid var(--card-line); background:var(--bg-sunken); box-shadow:0 20px 50px -30px rgba(42,33,24,0.25);
}
.gallery-main img{ width:100%; height:100%; object-fit:cover; }
.thumbs{ max-width:520px; margin:0 auto 0.8rem; display:flex; gap:0.55rem; overflow-x:auto; padding-bottom:0.3rem; -webkit-overflow-scrolling:touch; }
.thumbs::-webkit-scrollbar{ height:5px; }
.thumbs::-webkit-scrollbar-thumb{ background:var(--card-line); border-radius:99px; }
.thumb{ flex:0 0 auto; width:58px; height:58px; border-radius:10px; overflow:hidden; padding:0; border:2px solid transparent; cursor:pointer; background:var(--bg-sunken); transition:border-color 0.15s ease; }
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb.active{ border-color:var(--accent); }
.dots{ max-width:520px; margin:0 auto; display:flex; flex-wrap:wrap; gap:0.35rem; justify-content:center; }
.dot{ width:6px; height:6px; border-radius:50%; padding:0; border:none; background:var(--card-line); cursor:pointer; transition:background 0.15s ease, transform 0.15s ease; }
.dot.active{ background:var(--accent); transform:scale(1.4); }

.gallery-price{ display:flex; align-items:baseline; justify-content:center; gap:0.6rem; margin-top:1rem; }
.gallery-price s{ color:var(--text-muted); font-size:1.1rem; }
.gallery-price b{ font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; font-size:1.7rem; color:var(--accent-strong); }

/* ---------- SECTION shared ---------- */
section{ padding:clamp(3rem,6vw,4.5rem) 0; }
.section-head{ max-width:46ch; margin-bottom:2.2rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head .eyebrow{ margin-bottom:0.6rem; display:block; }
.section-head h2{ font-size:clamp(1.5rem,2.6vw,2rem); }
.section-head p{ color:var(--text-muted); margin-top:0.6rem; }

/* ---------- STYLE SWATCHES (rendered inside the order card) ---------- */
.swatch-row{ display:flex; gap:0.9rem; flex-wrap:wrap; justify-content:center; }
.swatch{ position:relative; }
.swatch input{ position:absolute; opacity:0; width:1px; height:1px; }
.swatch label{ display:flex; flex-direction:column; align-items:center; gap:0.5rem; cursor:pointer; width:92px; }
.swatch .ring{ width:76px; height:76px; border-radius:50%; padding:4px; border:2px solid transparent; background:var(--bg-raised); transition:border-color 0.15s ease, transform 0.15s ease; box-shadow:0 6px 16px -8px rgba(42,33,24,0.25); }
.swatch .ring img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.swatch span.s-name{ font-size:0.78rem; color:var(--text-muted); font-weight:600; }
.swatch input:checked + label .ring{ border-color:var(--accent); transform:translateY(-2px); }
.swatch input:checked + label span.s-name{ color:var(--accent-strong); }
.swatch input:focus-visible + label .ring{ outline:2px solid var(--accent); outline-offset:2px; }

/* ---------- ORDER FORM ---------- */
.order{ background:var(--bg); }
.order-card{ background:var(--bg-raised); border:1px solid var(--card-line); border-radius:18px; padding:clamp(1.6rem,4vw,2.2rem); max-width:520px; margin:0 auto; box-shadow:0 20px 50px -30px rgba(42,33,24,0.2); }
.order-head{ text-align:center; margin-bottom:1.4rem; }
.order-head h2{ font-size:1.35rem; margin-bottom:0.3rem; }
.order-head p{ color:var(--text-muted); margin:0; font-size:0.88rem; }
.order-price{ display:flex; justify-content:center; align-items:baseline; gap:0.5rem; margin:0.8rem 0 0.4rem; }
.order-price .old{ color:var(--text-muted); text-decoration:line-through; font-size:0.95rem; }
.order-price .amt{ font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; font-size:1.8rem; color:var(--accent-strong); }
.order-price .cur{ color:var(--text-muted); font-size:0.9rem; }
.swatch-heading{ text-align:center; font-size:0.85rem; font-weight:600; color:var(--text-muted); margin:0 0 0.7rem; }
.order-card .swatch-row{ margin-bottom:1.2rem; }
.order-card .swatch .ring{ width:52px; height:52px; }
.order-card .swatch label{ width:66px; }
.order-card form{ display:flex; flex-direction:column; gap:0.85rem; }
.field{ display:flex; flex-direction:column; gap:0.35rem; }
.field label{ font-size:0.78rem; font-weight:600; letter-spacing:0.02em; color:var(--text-muted); }
.field input{ font-family:inherit; font-size:1rem; padding:0.7rem 0.85rem; border-radius:10px; border:1px solid var(--card-line); background:var(--bg); color:var(--text); }
.field input:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.submit-btn{ margin-top:0.3rem; background:var(--accent); color:var(--on-accent); border:none; padding:0.9rem 1.4rem; border-radius:10px; font-size:1rem; font-weight:700; cursor:pointer; transition:transform 0.15s ease, background 0.15s ease; }
.submit-btn:hover{ background:var(--accent-strong); transform:translateY(-1px); }
.submit-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.submit-btn:disabled{ opacity:0.7; cursor:default; transform:none; }
.form-note{ text-align:center; font-size:0.76rem; color:var(--text-muted); margin-top:0.7rem; }
.form-error{ display:none; color:var(--danger); font-size:0.85rem; text-align:center; margin-top:0.4rem; }
.form-error.show{ display:block; }

/* ---------- TRUST BADGES (3 cards, right after the form) ---------- */
.trust{ background:var(--band); padding:clamp(2rem,4vw,2.8rem) 0; }
.trust-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0.6rem; max-width:640px; margin:0 auto; }
.trust-card{ text-align:center; color:var(--accent-strong); min-width:0; }
.trust-card .icon{ width:32px; height:32px; margin:0 auto 0.5rem; color:var(--accent); }
.trust-card .icon svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.4; }
.trust-card .title{ font-size:0.72rem; letter-spacing:0.02em; line-height:1.3; }
.trust-card .title b{ font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; font-weight:700; font-size:1.15em; }
@media (max-width:400px){
  .trust-grid{ gap:0.35rem; }
  .trust-card .icon{ width:26px; height:26px; }
  .trust-card .title{ font-size:0.64rem; }
}

/* ---------- PRODUCT VIDEO ---------- */
.product-video{ background:var(--bg); }
.product-video .wrap{ display:flex; justify-content:center; }
.video-frame{ width:100%; max-width:440px; aspect-ratio:1/1; border-radius:16px; overflow:hidden; border:1px solid var(--card-line); background:var(--bg-sunken); box-shadow:0 20px 50px -30px rgba(42,33,24,0.2); }
.video-frame video{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- SPECIFICATIONS ACCORDION ---------- */
.specs{ background:var(--bg-sunken); }
.accordion{ max-width:700px; margin:0 auto; display:flex; flex-direction:column; gap:0.7rem; }
.acc-item{ border:1px solid var(--card-line); border-radius:12px; overflow:hidden; background:var(--bg-raised); }
.acc-item summary{ cursor:pointer; list-style:none; padding:1rem 1.2rem; font-weight:600; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.acc-item summary::-webkit-details-marker{ display:none; }
.acc-item summary .chev{ color:var(--accent); transition:transform 0.2s ease; flex:none; }
.acc-item[open] summary .chev{ transform:rotate(180deg); }
.acc-item .a{ padding:0 1.2rem 1.1rem; color:var(--text-muted); font-size:0.92rem; }
.acc-item .a p{ margin:0 0 0.6rem; }
.acc-item .a ul{ list-style:none; display:flex; flex-direction:column; gap:0.4rem; margin-top:0.4rem; }

/* ---------- BRAND STORY (alternating blocks) ---------- */
.story{ background:var(--bg); }
.story-block{ max-width:1040px; margin:0 auto; }
.story-block:not(:last-child){ margin-bottom:1rem; }
.story-block__grid{ display:grid; grid-template-columns:1fr; }
@media (min-width:750px){
  .story-block__grid{ grid-template-columns:1fr 1fr; align-items:stretch; }
  .story-media{ order:1; } .story-text{ order:2; }
  .story-block[data-layout="text_left"] .story-media{ order:2; }
  .story-block[data-layout="text_left"] .story-text{ order:1; }
}
.story-media{ position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; background:var(--bg-sunken); border-radius:16px; }
.story-media img, .story-media video{ width:100%; height:100%; object-fit:cover; display:block; }
.story-text{ display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:1.8rem 1.2rem; }
@media (min-width:750px){ .story-text{ padding:2.4rem 2.6rem; } }
.story-text h3{ font-size:1.35rem; margin-bottom:0.8rem; }
.story-text p{ max-width:40ch; color:var(--text-muted); margin:0; }

/* ---------- REVIEWS ---------- */
.reviews{ background:var(--bg-sunken); }
.reviews-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
@media (max-width:900px){ .reviews-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .reviews-grid{ grid-template-columns:1fr; } }
.review-card{ background:var(--bg-raised); border:1px solid var(--card-line); border-radius:14px; padding:1.1rem; display:flex; flex-direction:column; gap:0.6rem; }
.review-photo{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; background:var(--bg-sunken); }
.review-stars{ color:var(--gold); font-size:0.95rem; letter-spacing:0.05em; }
.review-comment{ font-size:0.88rem; color:var(--text); margin:0; flex:1; }
.review-name{ font-size:0.8rem; color:var(--text-muted); font-weight:600; }

/* ---------- TEXT WITH ICONS (service promises) ---------- */
.promises{ background:var(--bg); }
.promises-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
@media (max-width:780px){ .promises-grid{ grid-template-columns:1fr; } }
.promise{ text-align:center; }
.promise .icon{ width:44px; height:44px; margin:0 auto 0.8rem; color:var(--accent); }
.promise .icon svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.4; }
.promise h3{ font-size:1.02rem; margin-bottom:0.4rem; }
.promise p{ font-size:0.86rem; color:var(--text-muted); margin:0; }

/* ---------- FAQ ---------- */
.faq{ background:var(--bg-sunken); }
.faq-list{ max-width:700px; margin:0 auto; display:flex; flex-direction:column; gap:0.7rem; }

/* ---------- FOOTER ---------- */
footer{ background:var(--paper-2); color:var(--text-muted); padding:2.4rem 0 1.4rem; font-size:0.82rem; border-top:1px solid var(--card-line); }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; flex-wrap:wrap; padding-bottom:1.6rem; border-bottom:1px solid var(--card-line); }
.footer-brand{ display:flex; align-items:center; gap:0.6rem; }
.footer-brand img{ width:34px;height:34px;border-radius:50%; }
.footer-brand strong{ display:block; color:var(--text); font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif; letter-spacing:0.08em; }
.footer-links{ display:flex; gap:1.6rem; flex-wrap:wrap; }
.footer-links a{ color:var(--text-muted); text-decoration:none; font-size:0.82rem; }
.footer-links a:hover{ color:var(--accent-strong); }
.footer-bottom{ padding-top:1.2rem; text-align:center; color:var(--text-muted); font-size:0.76rem; }

/* sticky mobile CTA */
.sticky-cta{ position:fixed; left:0;right:0;bottom:0; background:var(--bg-raised); border-top:1px solid var(--card-line); padding:0.7rem 1rem; display:none; align-items:center; justify-content:space-between; gap:0.8rem; z-index:40; box-shadow:0 -8px 24px -12px rgba(42,33,24,0.15); }
.sticky-cta .p{ color:var(--text); font-size:0.95rem; font-variant-numeric:tabular-nums; }
.sticky-cta .p s{ color:var(--text-muted); font-weight:400; }
.sticky-cta .p b{ color:var(--accent-strong); }
.sticky-cta a{ background:var(--accent); color:var(--on-accent); font-weight:700; padding:0.65rem 1.1rem; border-radius:9px; text-decoration:none; font-size:0.92rem; white-space:nowrap; }
@media (max-width:640px){ .sticky-cta{ display:flex; } body{ padding-bottom:64px; } }

/* ---------- THANK YOU PAGE ---------- */
.merci{ min-height:70vh; display:flex; align-items:center; justify-content:center; background:var(--bg-sunken); color:var(--text); text-align:center; padding:3rem 1.5rem; }
.merci-box{ max-width:480px; }
.merci-icon{ width:64px;height:64px; color:var(--accent); margin:0 auto 1.2rem; }
.merci h1{ font-size:2rem; color:var(--text); margin-bottom:0.8rem; }
.merci p{ color:var(--text-muted); font-size:1rem; margin-bottom:1.6rem; }
.merci a{ display:inline-block; background:var(--accent); color:var(--on-accent); font-weight:700; padding:0.85rem 1.4rem; border-radius:10px; text-decoration:none; }

/* ---------- LEGAL PAGES ---------- */
.legal{ background:var(--bg); }
.legal .wrap{ max-width:760px; }
.legal h1{ font-size:clamp(1.6rem,3vw,2.1rem); margin-bottom:1.6rem; }
.legal h2{ font-size:1.15rem; margin-top:2rem; margin-bottom:0.6rem; }
.legal p, .legal li{ color:var(--text-muted); font-size:0.96rem; }
.legal ul{ list-style:disc; padding-right:1.2rem; padding-left:0; display:flex; flex-direction:column; gap:0.4rem; }
