:root {
  --primary: #4B1E70;
  --primaryLight: #985be2;
  --primaryXL: #f3e9fc;
  --text: #2c1452;
  --muted: #7e7e90;
  --border: #e0d4f3;
  --white: #fff;
  --danger: #f87171;
  --success: #4ade80;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: #faf8ff;
  overflow-x: hidden
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

.grid {
  display: grid;
  gap: 18px
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

@media (max-width:900px) {
  .cols-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {

  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(75, 30, 112, .08)
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text)
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block
}

.brand-logo.small {
  height: 28px
}

.brand-text {
  font-weight: 800;
  font-size: 18px
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600
}

.nav-links a:hover {
  color: var(--primary)
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700
}

.btn.small {
  padding: 8px 14px;
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary)
}

.btn:hover {
  filter: brightness(1.05)
}

.badge {
  display: inline-block;
  background: var(--primaryXL);
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px
}

.muted {
  color: var(--muted)
}

.tiny {
  font-size: 12px
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 120;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  transform: translateY(-200%);
  transition: transform .2s ease;
  white-space: nowrap
}

.skip-link:focus {
  transform: translateY(0)
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px
}

/* Social icons */
.social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 8px
}

.social a {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  position: relative
}

.social a:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08)
}

.social-footer {
  align-items: flex-start
}

.ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(0)
}

.ico.insta::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%234B1E70" viewBox="0 0 24 24"><path d="M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2.2A2.8 2.8 0 1 0 14.8 12 2.8 2.8 0 0 0 12 9.2zM18 6.5a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/></svg>')
}

.ico.fb::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%234B1E70" viewBox="0 0 24 24"><path d="M13 22v-9h3l1-4h-4V7a1 1 0 0 1 1-1h3V2h-3a5 5 0 0 0-5 5v2H6v4h3v9z"/></svg>')
}

.ico.x::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%234B1E70" viewBox="0 0 24 24"><path d="M3 3h3l6 7 6-7h3l-7.5 8.7L21 21h-3l-6-7-6 7H3l7.5-9z"/></svg>')
}

.ico.tiktok::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%234B1E70" viewBox="0 0 24 24"><path d="M14 3c1 2 2 3 4 3v3c-1 0-2-.2-3-.6V15a6 6 0 1 1-6-6h1v3h-1a3 3 0 1 0 3 3V3h2z"/></svg>')
}

/* HERO */
.hero {
  background: linear-gradient(180deg, rgba(75, 30, 112, .08), rgba(75, 30, 112, 0) 80%);
  padding: 38px 0 18px
}

.hero-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center
}

.hero h1 {
  font-size: 38px;
  margin: 6px 0 10px;
  color: var(--primary)
}

.lead {
  font-size: 18px;
  line-height: 1.5
}

.cta {
  display: flex;
  gap: 10px;
  margin-top: 10px
}

.mock-wrap {
  margin: 0
}

.mock {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.social-inline {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero .social {
  margin-top: 10px;
  margin-left: 0;
  gap: 12px;
  flex-wrap: wrap
}

@media (max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 32px
  }
}

/* Screens */
.screens {
  padding: 26px 0
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover
}

/* Features */
#features {
  padding: 10px 0 24px
}

.feat h3 {
  margin: 6px 0 8px;
  color: var(--primary)
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800
}

.logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.dot-bleu {
  background: #007cc3
}

.dot-orange {
  background: #fc4c02
}

.dot-noir {
  background: #333
}

/* Legal */
section {
  scroll-margin-top: 80px
}

.legal {
  padding: 24px 0
}

.legal h1 {
  color: var(--primary)
}

.legal .card+.card {
  margin-top: 14px
}

/* Footer */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: #fff
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.footer-links a {
  text-decoration: none;
  color: var(--text)
}

.footer-links a:hover {
  color: var(--primary)
}

/* Mobile navigation */
.nav {
  position: relative
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, box-shadow .2s ease
}

.nav-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform .25s ease, opacity .2s ease, width .2s ease
}

.site-header.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.site-header.open .nav-toggle span:nth-child(2) {
  opacity: 0
}

.site-header.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media (max-width: 820px) {
  .nav-right {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .site-header.open .nav-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 20px 24px;
    z-index: 1001;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1)
  }

  .nav-links {
    flex-direction: column;
    gap: 12px
  }

  .nav-links a {
    font-size: 16px;
    padding: 6px 0
  }

  .social-header {
    margin-top: 6px;
    margin-left: 0
  }
}

/* Carousel (mobile) */
.carousel {
  display: none;
  position: relative;
  margin-top: 12px;
  overflow: hidden
}

.carousel-track {
  display: flex;
  transition: transform .3s ease;
  will-change: transform
}

.slide {
  min-width: 100%;
  padding: 0
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: block
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06)
}

.carousel-btn:hover {
  border-color: var(--primary)
}

.carousel-btn.prev {
  left: 8px
}

.carousel-btn.next {
  right: 8px
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #d9c9ef;
  cursor: pointer
}

.carousel-dots button[aria-selected="true"] {
  background: var(--primary)
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none
  }
}

/* Affichage: grid sur desktop, carousel sur petit écran */
@media (max-width: 900px) {
  .gallery-grid {
    display: none
  }

  .carousel {
    display: block
  }
}

/* Additional aspect ratios */
.mock {
  aspect-ratio: 323/700
}

.gallery-grid img {
  aspect-ratio: 323/700
}

.slide img {
  aspect-ratio: 323/700
}

/* overlay sombre derrière le menu mobile */
.nav-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);           /* assombrit le fond */
  z-index: 1100;
}
.site-header.open ~ .nav-overlay{ display: block; }

/* Titre/logo alignés mieux sur mobile */
@media (max-width: 420px){
  .brand-text{ font-size:16px; font-weight:800; }
  .brand-logo{ height:32px; }
}

.ico.yt::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%234B1E70" viewBox="0 0 24 24"><path d="M10 15l5.19-3L10 9v6zm12-3c0 1.66-.2 3.27-.2 3.27s-.19 1.39-.78 2.02c-.75.81-1.6.8-1.99.85C16.22 18.3 12 18.3 12 18.3s-4.22 0-7.03-.16c-.39-.05-1.24-.04-1.99-.85-.59-.63-.78-2.02-.78-2.02S2 13.66 2 12s.2-3.27.2-3.27.19-1.39.78-2.02c.75-.81 1.6-.8 1.99-.85C7.78 5.7 12 5.7 12 5.7s4.22 0 7.03.16c.39.05 1.24.04 1.99.85.59.63.78 2.02.78 2.02S22 10.34 22 12z"/></svg>');
}
