/*
Theme Name: Sen Optic Multivision Plus
Theme URI: https://senoptic.sn
Author: Sen Optic Multivision Plus
Author URI: https://senoptic.sn
Description: Thème professionnel pour Sen Optic Multivision Plus — Spécialiste en lunetterie médicale et solaire au Sénégal. Design élégant avec palette dorée et bleu marine.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sen-optic
Tags: business, custom-logo, full-width-template, one-column, two-columns, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A0;
  --gold-pale: rgba(201, 168, 76, 0.12);
  --navy: #0A1628;
  --navy-mid: #122040;
  --cream: #FAF7F2;
  --white: #ffffff;
  --text: #1A1A2E;
  --muted: #6B6B7B;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 4px;
  --shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
  --transition: all 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #B8942E;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-ghost-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 3rem;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--white {
  background: var(--white);
}

.section--cream {
  background: var(--cream);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.logo-text span {
  color: var(--gold);
  font-style: italic;
}

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

#primary-navigation a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

#primary-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

#primary-navigation a:hover {
  color: var(--gold);
}

#primary-navigation a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--navy);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.04);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.8rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-badge span {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg {
  max-width: 480px;
  width: 100%;
  animation: floatGlasses 4s ease-in-out infinite;
}

@keyframes floatGlasses {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--gold);
  padding: 1.8rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}

.stat-item {
  border-right: 1px solid rgba(10, 22, 40, 0.15);
  padding: 0 1rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-top: 4px;
  opacity: 0.8;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.service-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(201, 168, 76, 0.2);
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.service-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section {
  background: var(--navy);
  padding: 4.5rem 3rem;
  text-align: center;
}

.brands-section .section-label {
  color: rgba(201, 168, 76, 0.7);
}

.brands-section h2 {
  color: var(--white);
  margin-bottom: 2.5rem;
}

.brands-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(201, 168, 76, 0.25);
  color: rgba(255, 255, 255, 0.65);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}

.brand-tag:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  padding: 6rem 4rem;
  background: var(--white);
}

.about-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.about-text h2 {
  margin-bottom: 1.2rem;
}

.about-para {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.feature-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 400;
}

.feature-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-section {
  padding: 5.5rem 3rem;
  background: var(--cream);
}

.testi-header {
  margin-bottom: 3rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--white);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  padding: 2.2rem 2rem;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testi-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 0.3rem;
  left: 1.4rem;
  line-height: 1;
  user-select: none;
}

.testi-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testi-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.testi-author {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy);
  padding: 5.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.06);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-contact-info {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: #06101E;
  padding: 4rem 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col-title {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.84rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom span,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.76rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border: 0.5px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   WOOCOMMERCE — CARDS PRODUITS
   ============================================================ */
.woocommerce ul.products li.product {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
}

.woocommerce ul.products li.product .price {
  color: var(--gold);
  font-weight: 500;
}

.woocommerce a.button,
.woocommerce button.button {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 2.5rem;
    text-align: center;
  }

  .hero-sub {
    margin: 0 auto 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
  }

  .about-image {
    aspect-ratio: 16/9;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 1.5rem;
  }

  #primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    padding: 1rem 0;
  }

  #primary-navigation.open {
    display: block;
  }

  #primary-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  #primary-navigation li a {
    display: block;
    padding: 0.85rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    padding-bottom: 1rem;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
