/* ─── VotreSiteWeb.ma — main.css v2.0 ─── */

/* Variables */
:root {
  --navy:    #0A2342;
  --navy2:   #0f2e56;
  --orange:  #E8571C;
  --orangeH: #f06830;
  --green:   #1D9E75;
  --bg:      #F7F7F5;
  --white:   #FFFFFF;
  --text:    #1C1C1C;
  --muted:   #6B7280;
  --border:  #E5E5E3;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg); }
.bg-navy  { background: var(--navy); }
.mb-48 { margin-bottom: 48px; }
.mb-32 { margin-bottom: 32px; }

/* Typography */
.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.c-white  { color: #fff !important; }
.c-orange { color: var(--orange) !important; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.label::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--orange); }

.section-sub { font-size: 0.96rem; color: var(--muted); line-height: 1.7; max-width: 540px; }

.section-header-center { text-align: center; margin-bottom: 48px; }
.section-header-center .label { display: flex; justify-content: center; }
.section-header-center .section-sub { margin: 0 auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  padding: 13px 26px; border-radius: 5px;
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--orangeH); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,87,28,.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 24px; border-radius: 5px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 22px; border-radius: 5px;
  font-weight: 500; font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-block { width: 100%; justify-content: center; }

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,35,66,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hdr-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.25rem; color: #fff;
  letter-spacing: -0.02em;
}
.logo-name strong { color: var(--orange); }
.logo-name em { font-style: normal; color: rgba(255,255,255,0.25); }
.logo-sub { font-size: 0.58rem; color: rgba(255,255,255,0.38); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 0.84rem; font-weight: 500; color: rgba(255,255,255,0.68); padding: 7px 12px; border-radius: 4px; transition: all 0.18s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta { background: var(--orange) !important; color: #fff !important; font-weight: 700 !important; margin-left: 6px; }
.nav-cta:hover { background: var(--orangeH) !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ─── HERO ─── */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}
.hero-glow {
  position: absolute; width: 700px; height: 700px;
  right: -150px; top: -200px;
  background: radial-gradient(circle, rgba(232,87,28,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.pre-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
}
.pre-label::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--orange); }
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #fff; line-height: 1.08;
  letter-spacing: -0.025em; margin-bottom: 20px;
}
.hero-sub { font-size: 1.02rem; color: rgba(255,255,255,0.62); line-height: 1.72; max-width: 480px; margin-bottom: 30px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.reassurance-bar { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.reassurance-bar span { font-size: 0.76rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 5px; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 36px; position: relative; overflow: hidden;
}
.hero-card-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.hero-card-label { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.9rem; color: rgba(255,255,255,0.42); margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.stat { text-align: center; }
.stat-n { display: block; font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-n em { font-style: normal; color: var(--orange); }
.stat-l { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.58); padding: 4px 12px; border-radius: 20px; font-size: 0.73rem; }

/* ─── CARDS ─── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(10,35,66,0.1); border-color: var(--orange); }
.card-icon { font-size: 1.9rem; margin-bottom: 14px; display: block; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.card-text { font-size: 0.87rem; color: var(--muted); line-height: 1.68; }

/* ─── STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute; top: 33px;
  left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.step { padding: 0 20px; text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.step-day { font-size: 0.67rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.step-text { font-size: 0.83rem; color: rgba(255,255,255,0.48); line-height: 1.68; }

/* ─── PORTFOLIO ─── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-end; }
.f-tab {
  padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--muted);
  transition: all 0.2s;
}
.f-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.f-tab:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.p-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(10,35,66,0.1); }
.p-thumb { height: 185px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.p-badge { position: absolute; top: 10px; left: 10px; background: rgba(10,35,66,0.85); color: rgba(255,255,255,0.88); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.p-result { position: absolute; bottom: 10px; right: 10px; background: rgba(29,158,117,0.92); color: #fff; font-size: 0.64rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.p-body { padding: 18px 20px; }
.p-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 4px; }
.p-meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 12px; }
.p-link { font-size: 0.79rem; color: var(--orange); font-weight: 700; transition: letter-spacing 0.2s; }
.p-link:hover { letter-spacing: 0.02em; }

/* ─── TESTIMONIALS ─── */
.temo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.temo { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.temo-featured { background: var(--navy); border-color: var(--navy); }
.temo-q { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 0.5; color: var(--orange); opacity: 0.6; display: block; margin-bottom: 14px; }
.stars { color: #F5A623; font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 12px; }
.temo-text { font-size: 0.88rem; font-style: italic; line-height: 1.72; color: var(--text); margin-bottom: 18px; }
.temo-featured .temo-text { color: rgba(255,255,255,0.82); }
.temo-author { display: flex; align-items: center; gap: 12px; }
.temo-av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.88rem; color: #fff; flex-shrink: 0;
}
.temo-featured .temo-av { background: var(--orange); }
.temo-name { font-weight: 700; font-size: 0.86rem; color: var(--navy); line-height: 1.2; }
.temo-featured .temo-name { color: #fff; }
.temo-role { font-size: 0.73rem; color: var(--muted); }
.temo-featured .temo-role { color: rgba(255,255,255,0.42); }

/* ─── PACKAGES ─── */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin-bottom: 28px; }
.pkg {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 36px 28px; position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pkg:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(10,35,66,0.1); }
.pkg-popular {
  background: var(--navy); border-color: var(--navy);
  transform: scale(1.03); box-shadow: 0 24px 56px rgba(10,35,66,0.25);
}
.pkg-popular:hover { transform: scale(1.03) translateY(-5px); }
.pkg-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pkg-name { font-size: 0.67rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pkg-popular .pkg-name { color: rgba(255,255,255,0.4); }
.pkg-price { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 4px; letter-spacing: -0.03em; }
.pkg-popular .pkg-price { color: #fff; }
.pkg-price small { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 400; opacity: 0.45; }
.pkg-for { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pkg-popular .pkg-for { color: rgba(255,255,255,0.5); border-bottom-color: rgba(255,255,255,0.1); }
.pkg-delay { font-size: 0.74rem; font-weight: 600; color: var(--green); background: rgba(29,158,117,0.1); border-radius: 6px; padding: 6px 12px; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px; }
.pkg-features { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.pkg-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.84rem; color: var(--text); line-height: 1.45; }
.pkg-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.pkg-popular .pkg-features li { color: rgba(255,255,255,0.8); }

/* Garantie */
.garantie {
  background: rgba(29,158,117,0.07); border: 1px solid rgba(29,158,117,0.22);
  border-radius: 10px; padding: 22px 28px;
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
}
.garantie span { font-size: 1.8rem; flex-shrink: 0; }
.garantie p { font-size: 0.88rem; color: var(--text); line-height: 1.65; }
.garantie strong { color: var(--green); }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; font-weight: 700; font-size: 0.95rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; font-family: inherit; transition: color 0.2s;
}
.faq-q:hover { color: var(--orange); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--muted); flex-shrink: 0; transition: all 0.2s;
}
.faq-item.open .faq-icon { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 0.88rem; color: var(--muted); line-height: 1.72; }

/* ─── CTA ─── */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.52); max-width: 500px; margin: 14px auto 28px; line-height: 1.68; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cta-contacts { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.cta-contacts a { font-size: 0.83rem; color: rgba(255,255,255,0.38); transition: color 0.2s; }
.cta-contacts a:hover { color: rgba(255,255,255,0.8); }

/* ─── FOOTER ─── */
.site-footer { background: #061524; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-tag { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.72; margin-top: 14px; max-width: 270px; }
.footer-contacts { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-contacts a { font-size: 0.83rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-contacts a:hover { color: rgba(255,255,255,0.85); }
.footer-heading { font-size: 0.67rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.28); font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.83rem; color: rgba(255,255,255,0.48); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.73rem; color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ─── WhatsApp float ─── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.42); transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 14px 42px rgba(37,211,102,0.58); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-card      { display: none; }
  .cards-3        { grid-template-columns: 1fr 1fr; }
  .pkg-grid       { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .pkg-popular    { transform: none; }
  .temo-grid      { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps          { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps::before  { display: none; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; top: 68px;
    background: rgba(10,35,66,0.98); padding: 24px; gap: 4px; z-index: 199;
  }
  .nav.open .nav-cta { margin-top: 12px; }
  .burger { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .cards-3, .temo-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .filter-bar { align-self: flex-start; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .cta-contacts { flex-direction: column; align-items: center; gap: 12px; }
}
