/* ==========================================================================
   ETcaisse — design system
   Mobile-first. Pas de framework. Pas de build.
   Couleurs : bleu Majorelle (Marrakech) + orange safran pour les actions.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #F6F5FB;
  --bg-2:      #EEEBFA;
  --surface:   #FFFFFF;
  --surface-2: #FAF9FE;

  --ink:       #12102B;
  --ink-2:     #2E2B4A;
  --muted:     #686585;

  --line:      #E3E0F1;
  --line-2:    #EFEDF8;

  --brand:     #4B3FD1;   /* bleu Majorelle */
  --brand-dk:  #3A2FB0;
  --brand-lt:  #EEECFF;
  --brand-ink: #221A77;

  --cta:       #FF7A1A;   /* orange safran — boutons d'achat */
  --cta-dk:    #E8650A;
  --cta-lt:    #FFF1E6;

  --gold:      #F5B83D;
  --wa:        #1FAF55;   /* WhatsApp */
  --wa-dk:     #178F45;
  --ok:        #14A36B;
  --bad:       #D64545;

  --dark:      #110E2E;
  --dark-2:    #1A1646;
  --dark-3:    #26206A;

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;

  --sh-sm: 0 1px 2px rgba(18,16,43,.07), 0 1px 1px rgba(18,16,43,.04);
  --sh:    0 14px 30px -16px rgba(18,16,43,.25), 0 2px 6px rgba(18,16,43,.05);
  --sh-lg: 0 36px 70px -30px rgba(33,24,120,.40), 0 8px 20px -10px rgba(18,16,43,.14);

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
ul { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.32rem); font-weight: 750; }
h4 { font-size: 1.02rem; font-weight: 750; }
p  { text-wrap: pretty; }
.lead { font-size: clamp(1.03rem, 2vw, 1.2rem); color: var(--muted); line-height: 1.7; }
strong { color: var(--ink); font-weight: 700; }
.accent { color: var(--brand); }
.accent-cta { color: var(--cta); }
.darija { font-style: italic; color: var(--brand); font-weight: 650; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-soft    { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.bg-dark    { background: var(--dark); color: #C4C0E8; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark strong { color: #fff; }
.bg-dark .lead { color: #A7A2D6; }

.grid > *, .hero-grid > *, .split > *, .plans > *, .steps > *,
.footer-grid > *, .header-inner > *, .pack-grid > * { min-width: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.g-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .g-2 { grid-template-columns: repeat(2, 1fr); } }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead { margin-top: 14px; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev > :first-child { order: 2; }
}

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cta); border-radius: 2px; }
.bg-dark .eyebrow { color: #B5ADFF; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 650; color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
.chip-brand { background: var(--brand-lt); border-color: rgba(75,63,209,.2); color: var(--brand-ink); box-shadow: none; }
.chip-cta   { background: var(--cta-lt); border-color: #FFD3B0; color: #9A3F00; box-shadow: none; }
.chip-dark  { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #E4E1FF; box-shadow: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot-live { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,163,107,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(20,163,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,163,107,0); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: 999px; font-weight: 700; font-size: .97rem; letter-spacing: -.01em;
  cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .22s ease, background-color .18s ease, border-color .18s ease;
  box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn-cta { --btn-bg: var(--cta); box-shadow: 0 12px 24px -10px rgba(255,122,26,.75); }
.btn-cta:hover { --btn-bg: var(--cta-dk); box-shadow: 0 18px 32px -12px rgba(255,122,26,.7); }
.btn-wa { --btn-bg: var(--wa); box-shadow: 0 12px 24px -12px rgba(31,175,85,.8); }
.btn-wa:hover { --btn-bg: var(--wa-dk); }
.btn-brand { --btn-bg: var(--brand); box-shadow: 0 12px 24px -12px rgba(75,63,209,.8); }
.btn-brand:hover { --btn-bg: var(--brand-dk); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: #D3CFEA; box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-bd: #BDB7E0; }
.bg-dark .btn-ghost, .cta-band .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.bg-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { --btn-bg: rgba(255,255,255,.1); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-lg { min-height: 58px; padding: 15px 30px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--dark), var(--dark-3) 60%, var(--brand));
  color: #E2DFFF; font-size: .84rem; text-align: center;
  padding: 9px var(--gutter); line-height: 1.45;
}
.announce strong { color: #fff; }
.announce a { color: #FFD7B5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce .hide-xs { display: none; }
@media (min-width: 640px) { .announce .hide-xs { display: inline; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px -18px rgba(18,16,43,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--brand); }
.brand-tag { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
  background: var(--surface); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; gap: 4px;
  padding: 88px 22px 28px; transform: translateX(105%); transition: transform .3s ease; z-index: 70;
  overflow-y: auto;
}
.nav.is-open { transform: none; }
.nav > a:not(.btn) {
  padding: 13px 14px; border-radius: 12px; font-weight: 650; color: var(--ink-2);
}
.nav > a:not(.btn):hover { background: var(--bg); color: var(--ink); }
.nav > a[aria-current="page"]:not(.btn) { color: var(--brand); background: var(--brand-lt); }
.nav .btn { margin-top: 12px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(18,16,43,.45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 55; }
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.nav-toggle { position: relative; z-index: 80; }
.header-phone { display: none; }

@media (min-width: 1180px) {
  .nav-toggle, .nav-backdrop { display: none; }
  .nav {
    position: static; transform: none; width: auto; box-shadow: none; background: none;
    flex-direction: row; align-items: center; padding: 0; gap: 2px; overflow: visible;
  }
  .nav > a:not(.btn) { padding: 9px 13px; font-size: .94rem; }
  .nav .btn { margin: 0 0 0 10px; min-height: 44px; padding: 10px 18px; font-size: .92rem; }
  .nav > a { white-space: nowrap; }
}

/* ---------- Zellige pattern ---------- */
.zellige {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(106,92,255,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255,122,26,.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%234B3FD1' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M28 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.bg-dark.zellige, .zellige-dark {
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(106,92,255,.35), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255,122,26,.18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Cpath d='M28 14l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 92px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { margin-block: 16px 18px; }
.hero .lead { max-width: 580px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .btn-group { margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--muted); }

.checklist { display: grid; gap: 10px; margin-top: 22px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-weight: 550; color: var(--ink-2); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist.two { grid-template-columns: 1fr; }
@media (min-width: 560px) { .checklist.two { grid-template-columns: 1fr 1fr; } }
.bg-dark .checklist li { color: #DDD9FF; }

/* The hero "pack" card */
.pack-card {
  position: relative; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); border: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 22px); padding-bottom: 0; overflow: hidden;
}
.pack-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 36%;
  background: linear-gradient(180deg, transparent, var(--brand-lt));
}
.pack-card img { position: relative; width: 100%; aspect-ratio: 1440 / 900; object-fit: contain; }
.pack-card .pack-foot {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center;
  padding: 12px 6px 18px;
}
.pack-foot span { font-size: .78rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--ink-2); }

.price-badge {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  width: clamp(112px, 22vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FFA15C, var(--cta) 55%, #E0590A);
  color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: 0 16px 34px -12px rgba(255,122,26,.8), inset 0 0 0 4px rgba(255,255,255,.25);
  transform: rotate(8deg); line-height: 1.05;
  animation: bob 4s ease-in-out infinite;
}
.price-badge small { display: block; font-size: clamp(.62rem, 1.4vw, .74rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.price-badge b { display: block; font-family: var(--font-display); font-size: clamp(1.45rem, 4vw, 2.05rem); font-weight: 800; letter-spacing: -.03em; margin: 3px 0 2px; }
.price-badge em { font-style: normal; font-size: clamp(.62rem, 1.4vw, .76rem); font-weight: 700; }
@keyframes bob { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-6px); } }

.pack-label {
  position: absolute; z-index: 2; left: 14px; top: 14px;
  background: var(--ink); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 12px; border-radius: 999px;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; gap: 40px; padding: 16px 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 650; color: var(--ink-2); font-size: .94rem; }
.marquee span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--cta); }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-strip:hover .marquee { animation-play-state: paused; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
@media (min-width: 820px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 22px 20px; }
.stat-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.1rem); color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.stat-lbl { font-size: .88rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #D6D1F2; }
.card p { color: var(--muted); font-size: .96rem; }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-lt); color: var(--brand); margin-bottom: 4px; flex: none;
}
.card .ico.o { background: var(--cta-lt); color: var(--cta-dk); }
.card .ico.g { background: #E4F7EE; color: var(--ok); }
.card .ico svg { width: 24px; height: 24px; }
.bg-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.bg-dark .card p { color: #A7A2D6; }
.bg-dark .card .ico { background: rgba(106,92,255,.2); color: #C3BCFF; }

/* Pack content — "Chno kayn f l'pack" */
.pack-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .pack-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .pack-grid { grid-template-columns: repeat(5, 1fr); } }
.pack-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .25s;
}
.pack-item:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.pack-item .pi-img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--line-2); }
.pack-item .pi-img img { width: 100%; height: 100%; object-fit: contain; }
.pack-item .pi-img.cover { padding: 0; }
.pack-item .pi-img.cover img { object-fit: cover; }
.pack-item .pi-body { padding: 14px 16px 18px; }
.pack-item h3 { font-size: 1.02rem; }
.pack-item p { font-size: .86rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.pack-num { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--cta-dk); letter-spacing: .1em; margin-bottom: 4px; }

.pack-plus {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.pack-plus span {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: .9rem;
}
.pack-plus span b { color: var(--gold); }

/* Image cards (sectors / services) */
.img-card {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--dark);
  aspect-ratio: 4 / 3.3; box-shadow: var(--sh-sm); isolation: isolate;
}
.img-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.img-card:hover img { transform: scale(1.05); }
.img-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(17,14,46,.88)); }
.img-card .ic-body { position: absolute; inset: auto 0 0 0; padding: 16px 18px; color: #fff; }
.img-card h3 { color: #fff; font-size: 1.08rem; }
.img-card p { color: #D9D6F5; font-size: .85rem; margin-top: 3px; line-height: 1.45; }

.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: #fff; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.contain img { object-fit: contain; }
.photo-tag {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; font-size: .84rem; font-weight: 650; box-shadow: var(--sh);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px);
}
.photo-tag b { color: var(--ok); font-size: 1.1rem; }

/* ---------- Comparison (sans / avec) ---------- */
.versus { display: grid; gap: 16px; }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs-col { border-radius: var(--r); padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); background: var(--surface); }
.vs-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vs-col li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .96rem; }
.vs-col li:first-child { border-top: 0; }
.vs-bad li::before { content: "✕"; color: var(--bad); font-weight: 800; flex: none; }
.vs-good { background: linear-gradient(160deg, #fff, var(--brand-lt)); border-color: #CFC9F7; box-shadow: var(--sh); }
.vs-good li::before { content: "✓"; color: var(--ok); font-weight: 900; flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 14px; box-shadow: 0 10px 20px -10px rgba(75,63,209,.8);
}
.step p { color: var(--muted); font-size: .94rem; margin-top: 6px; }
.bg-dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.bg-dark .step p { color: #A7A2D6; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-sm);
}
.plan.featured { border: 2px solid var(--cta); box-shadow: var(--sh-lg); }
@media (min-width: 900px) { .plan.featured { transform: scale(1.03); } }
.plan-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cta); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.plan-sub { font-size: .92rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .amt { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 2.9rem); color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price .cur { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.price .per { color: var(--muted); font-size: .9rem; }
.price.quote .amt { font-size: clamp(1.7rem, 4vw, 2.1rem); }
.plan .checklist { margin-top: 4px; }
.plan .checklist li { font-size: .94rem; }
.plan .btn { margin-top: auto; }
.plan-foot { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Specs table ---------- */
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { width: 38%; color: var(--ink); font-weight: 700; background: var(--surface-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }

/* ---------- Feature list with icons (inline) ---------- */
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-lt); color: var(--brand); flex: none; }
.feat .ico svg { width: 21px; height: 21px; }
.feat h4 { margin-bottom: 2px; }
.feat p { color: var(--muted); font-size: .93rem; }
.feat-list { display: grid; gap: 20px; }

/* ---------- Quote / darija callout ---------- */
.callout {
  border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px);
  background: linear-gradient(135deg, var(--brand), #6A5CFF); color: #fff; box-shadow: var(--sh-lg);
  position: relative; overflow: hidden;
}
.callout h3, .callout strong { color: #fff; }
.callout p { color: #E8E5FF; }
.callout .darija { color: #FFD7B5; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-lt); color: var(--brand); font-weight: 800; font-size: 1.1rem; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  display: grid; gap: 22px; align-items: center; box-shadow: var(--sh-lg);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D8D4FF; margin-top: 10px; }
.cta-band .btn-group { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-group { justify-content: flex-end; } }

/* ---------- Contact / devis form ---------- */
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 34px); box-shadow: var(--sh-lg); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #D6D2EC; background: var(--surface-2);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(75,63,209,.14); background: #fff; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }

.contact-list { display: grid; gap: 14px; margin-top: 22px; }
.contact-list a { display: flex; gap: 14px; align-items: center; font-weight: 650; }
.contact-list .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; flex: none; }
.contact-list small { display: block; font-weight: 500; color: #A7A2D6; font-size: .82rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(34px, 6vw, 72px); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--brand); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #A7A2D6; padding-block: 60px 28px; font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #B5ADFF; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; }
.kw { font-size: .8rem; color: #7E79AE; margin-top: 16px; line-height: 1.6; }

/* ---------- Floating WhatsApp + mobile sticky bar ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31,175,85,.8);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: ring 2.4s infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(18,16,43,.5);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .92rem; }
  body { padding-bottom: 76px; }
  .wa-float { display: none; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .marquee { animation: none; } .price-badge { animation: none; } }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 12px; } .mt { margin-top: 24px; } .mt-l { margin-top: 40px; }
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Drapeau marocain (les emoji drapeaux ne s'affichent pas sous Windows) ---------- */
.flag-ma {
  display: inline-block; width: 1.35em; height: .9em; vertical-align: -.08em; border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Crect width='90' height='60' fill='%23C1272D'/%3E%3Cpath d='M45 17 L51 35.5 L35.3 24.1 L54.7 24.1 L39 35.5 Z' fill='none' stroke='%23006233' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center/cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
@media (min-width: 1320px) {
  .header-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 9px 10px; white-space: nowrap; }
}
.hero h1 { font-size: clamp(2.05rem, 4.8vw, 3.35rem); }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.pack-item .pi-img { position: relative; overflow: hidden; }
.pack-item .pi-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.pack-item .pi-img.cover img { inset: 0; width: 100%; height: 100%; }
.stat-val .flag-ma { font-size: .8em; }
/* Sur mobile, le pack et son prix passent au-dessus du texte : on voit l'offre tout de suite. */
@media (max-width: 979px) { .hero .hero-grid > .hero-visual { order: -1; } }
.bg-dark .form-card h3 { color: var(--ink); }
@media (min-width: 900px) { .g-3.cols-3 { grid-template-columns: repeat(3, 1fr); } }
/* Pack card avec une vraie photo (plein cadre) */
.pack-card.pack-photo { padding: 0; }
.pack-card.pack-photo::before { display: none; }
.pack-card.pack-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.pack-card.pack-photo .pack-foot { background: var(--surface); border-top: 1px solid var(--line-2); padding: 12px 10px 14px; }
