/* ============================================================
   VISION ECLAT'S – style.css
   Opticien-Lunetier en Côte d'Ivoire
   ============================================================ */

/* ── RESET & ROOT ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red:        #c1121f;
  --red-dark:   #9b0e18;
  --red-light:  #fdecea;
  --green:      #2e7d32;
  --green-dark: #1b5e20;
  --green-light:#e8f5e9;
  --yellow:     #f9c000;
  --dark:       #111827;
  --gray:       #6b7280;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --shadow:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);
  --radius:     16px;
  --header-height: 72px; /* hauteur par défaut de l'en-tête (ajustable par media queries) */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── UTILITIES ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.red   { color: var(--red); }
.green { color: var(--green); }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--dark);
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--green); }

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: 2px;
  margin-bottom: 20px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider.yellow-green { background: linear-gradient(90deg, var(--yellow), var(--green)); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HEADER ── */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  overflow: hidden;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.logo-tag {
  font-size: .68rem;
  color: var(--gray);
  letter-spacing: .5px;
  margin-top: 2px;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: #2d2d2d;
  transition: color .2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--red); }
.nav-link.active {
  color: var(--red);
  font-weight: 700;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1102; /* au-dessus du menu pour rester cliquable */
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all .3s;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 340px;
  background: linear-gradient(135deg, rgba(1,13,32,.95) 0%, rgba(7,27,50,.88) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 70px;
  position: relative;
  overflow: hidden;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 12px 0 18px;
}
.page-hero-content h1 em { font-style: italic; color: var(--green); }
.page-hero-content p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto;
}

/* Hero shapes */
.hero-shape {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(193,18,31,.12);
  filter: blur(70px);
  pointer-events: none;
}
.shape-1 { top: -100px; left: -100px; }
.shape-2 { bottom: -100px; right: -100px; background: rgba(46,125,50,.1); }

/* ── STATS BAR ── */
.stats-bar {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-icon {
  font-size: 2rem;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.stat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-left: 2px;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── WHY SECTION ── */
.why-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a3a 100%);
  padding: 90px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}
.why-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-5px);
}
.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 auto 18px;
}
.why-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
}

/* ── CARDS GRID (3 cols) ── */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid #EBEBEB;
  box-shadow: var(--shadow);
  transition: all .3s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 18px;
}
.icon-red   { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.icon-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p {
  font-size: .84rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 14px;
}
.service-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green-dark);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── À PROPOS ── */
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.apropos-visual {
  position: relative;
}
.apropos-img {
  border-radius: 24px;
  overflow: hidden;
  height: 440px;
}
.apropos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.apropos-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
  border: 1px solid var(--green-light);
}
.apropos-badge i { color: var(--yellow); font-size: 1.2rem; }
.apropos-text {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* Values list */
.values-list { display: flex; flex-direction: column; gap: 16px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.value-dot.red    { background: var(--red); }
.value-dot.green  { background: var(--green); }
.value-dot.yellow { background: var(--yellow); }
.value-item strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.value-item span {
  font-size: .8rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #EBEBEB;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-quote { font-size: 1.6rem; color: var(--red); opacity: .25; margin-bottom: 10px; }
.testi-stars { color: var(--yellow); font-size: .9rem; margin-bottom: 14px; }
.testi-card p { font-size: .84rem; color: var(--gray); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .84rem; font-weight: 700; }
.testi-author span { font-size: .75rem; color: var(--gray); }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .84rem;
  line-height: 1.85;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
}
.social-row { display: flex; gap: 10px; }
.soc-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  transition: all .25s;
  text-decoration: none;
}
.soc-fb { background: #1877f2; }
.soc-fb:hover { background: #0d65d9; }
.soc-ig { background: linear-gradient(135deg,#e1306c,#f77737,#fcaf45); }
.soc-ig:hover { opacity: .85; }
.soc-wp { background: #25d366; }
.soc-wp:hover { background: #1eb958; }
.soc-tk { background: #010101; border: 1px solid rgba(255,255,255,.12); }
.soc-tk:hover { background: #333; }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.footer-col ul li a i { font-size: .65rem; color: var(--green); }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact p i { color: var(--green); width: 16px; text-align: center; }

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(193,18,31,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all .3s;
  z-index: 999;
}
.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-top:hover { background: var(--red-dark); }

/* ── INSTITUTIONAL PARTNERS MARQUEE ── */
.inst-marquee-wrap { overflow: hidden; }
#instLogosTrack {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
#instLogosTrack:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.inst-logo-card-scroll, .inst-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  min-width: 180px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid #F0F0F0;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.inst-logo-card-scroll .inst-logo-inner,
.inst-logo-box img {
  max-height: 72px;
  object-fit: contain;
  transition: transform .3s ease;
}
.inst-logo-card-scroll:hover .inst-logo-inner img,
.inst-logo-box:hover img { transform: scale(1.02); }
.inst-logo-card-scroll .inst-name,
.inst-logo-box span {
  font-size: .8rem;
  color: var(--dark);
  text-align: center;
}

/* ── TESTIMONIAL SLIDER ── */
.testi-slider {
  position: relative;
}
.testi-track-wrap {
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 24px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.testi-track::-webkit-scrollbar {
  display: none;
}
.testi-card {
  width: min(320px, 100%);
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.testi-track {
  display: flex;
  gap: 24px;
  padding: 0 50px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  color: var(--dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.testi-nav:hover { transform: translateY(-50%) scale(1.05); background: var(--white); }
.testi-prev { left: 0; }
.testi-next { right: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .stats-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .apropos-grid { gap: 40px; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .apropos-grid { grid-template-columns: 1fr; }
  .apropos-visual { display: none; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: #ffffff;
    padding: 36px 24px;
    gap: 14px;
    z-index: 1101; /* au-dessus de l'en-tête (header z-index:1000) */
    box-shadow: 0 20px 40px rgba(0,0,0,.16);
    border-top: 1px solid #EBEBEB;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: 14px;
    border-bottom: none;
    width: 100%;
    background: #f4f4f0;
    color: var(--dark);
    transition: background .2s, color .2s;
  }
  .nav-link:hover { background: #ffe6e9; color: var(--red); }
  .nav-link.active {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    border-bottom: none;
  }
  .nav-cta { border-bottom: none !important; text-align: center; }
  .burger { display: flex; }

  /* Grids */
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-grid     { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .testi-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 80px 20px 60px; min-height: auto; }
}

@media (max-width: 520px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .why-grid    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .btn { padding: 11px 20px; font-size: .84rem; }
  .page-hero { padding: 70px 16px 50px; }
  :root { --header-height: 64px; }
}

@media (max-width: 480px) {
  :root { --header-height: 60px; }
}

/* Bloquer le scroll quand le menu mobile est ouvert */
body.menu-open { overflow: hidden; }