/* ===== Aurélys — palette tirée de la maquette : indigo nuit, magenta néon, lavande vitrée ===== */
:root {
  --bg-1: #30345e;
  --bg-2: #4b4a86;
  --bg-3: #8a86c4;
  --magenta: #ff2fd2;
  --cyan: #7ff3ff;
  --glass: rgba(190, 190, 235, .16);
  --glass-line: rgba(255, 255, 255, .35);
  --btn: #3d3f7a;
  --text: #f4f3ff;
  --font-title: "Lato", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --font-logo: "Orbitron", sans-serif; /* réservé au logo */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #25284a;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 4vw 40px;
  background:
    radial-gradient(circle at 15% 85%, rgba(160,150,230,.55), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(140,130,210,.5), transparent 40%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  overflow: hidden;
}

/* ===== Navigation ===== */
.nav { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; padding-top: 8px; }
.logo {
  font-family: var(--font-logo); font-weight: 700; font-size: .95rem; line-height: 1.05;
  color: #eaffff; letter-spacing: .12em;
  text-shadow: 0 0 6px var(--cyan), 0 0 16px rgba(127,243,255,.7);
  border: 1px solid rgba(127,243,255,.5); padding: 6px 10px; border-radius: 4px;
}
.nav__links { display: flex; align-items: center; gap: 22px; font-weight: 400; font-size: .85rem; }
.nav__links a:not(.pill):hover { text-shadow: 0 0 10px #fff; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* Boutons en pilule, effet verre bombé */
.pill {
  display: inline-block; cursor: pointer;
  padding: 14px 34px; border-radius: 999px;
  font-family: var(--font-title); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #8f8cd2 0%, #4a4a90 100%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 6px 18px rgba(20,20,60,.45), inset 0 2px 6px rgba(255,255,255,.35);
  transition: transform .25s, box-shadow .25s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,47,210,.35), inset 0 2px 6px rgba(255,255,255,.4); }
.pill:focus-visible, .nav__toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pill--small { padding: 5px 20px; font-family: var(--font-body); font-size: .78rem; text-transform: none; letter-spacing: 0; }
.pill--dark { background: linear-gradient(180deg, #4d4f95, #34376d); padding: 9px 34px; font-family: var(--font-body); font-size: .9rem; text-transform: none; letter-spacing: 0; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 640px; margin-top: -50px; }
.hero__photo {
  /* On ne garde que la partie gauche de l'illustration (femme + épaules) ;
     le panneau « Nouveautés » du site vient se poser sur son épaule droite. */
  position: absolute; left: 62%; top: 62px; transform: translateX(-50%);
  width: min(410px, 42%); aspect-ratio: 270 / 380; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent), linear-gradient(to bottom, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 82%, transparent), linear-gradient(to bottom, #000 88%, transparent);
          mask-composite: intersect;
}
.hero__photo img {
  /* L'image fait 456 px de large : on affiche les 270 premiers px (59 %) */
  display: block; width: 168.9%; max-width: none; height: auto;
}
.hero__glow { display: none; }
.pixels { display: none; } /* les carrés sont déjà dans l'image */
.pixels i { position: absolute; background: rgba(150,150,215,.55); transition: opacity 1.2s; }

.hero__text { position: relative; z-index: 3; max-width: 360px; padding-top: 210px; }
.tag {
  display: inline-block; font-size: .62rem; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid var(--glass-line); margin-bottom: 14px;
}
.hero h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin-bottom: 14px; }
.hero__text p { font-size: .8rem; font-weight: 300; margin-bottom: 22px; }

/* ===== Panneau vitré ===== */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15,15,50,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.news { position: absolute; right: 0; top: 90px; width: 270px; padding: 16px; z-index: 4; text-align: center; }
.news h2 { font-size: .95rem; font-weight: 500; text-align: left; margin-bottom: 10px; }
.news ul { list-style: none; display: grid; gap: 9px; margin-bottom: 18px; }
.news__item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  transition: transform .25s, background .25s;
}
.news__item:hover { transform: translateX(-4px); background: rgba(255,255,255,.24); }
.news__item.is-light { background: linear-gradient(110deg, rgba(255,255,255,.2), rgba(255,255,255,.6)); }
.news__item b { display: block; font-size: .72rem; font-weight: 500; }
.news__item small { font-size: .56rem; opacity: .75; }

/* Icônes en hexagone / rond */
.hex { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: #1d1f3c; border: 1px solid rgba(255,255,255,.6); }
.hex--round { border-radius: 50%; }
.hex svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Séparateur lumineux ===== */
.divider { height: 2px; margin: 10px 0 28px; background: linear-gradient(90deg, transparent, #fff 25%, #fff 55%, transparent); box-shadow: 0 0 10px rgba(255,255,255,.7); opacity: .85; }

/* ===== Cartes ===== */
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7vw; padding: 0 1vw; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s; }
.card:hover { transform: translateY(-6px); }
.card__img { height: 150px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.9); transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(180deg, rgba(70,70,160,.4), rgba(50,52,110,.65)); mix-blend-mode: multiply; pointer-events: none; }
.card__hex { position: absolute; right: 22px; top: 126px; width: 40px; height: 44px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border: 0; background: #14162e; z-index: 2; }
.card__hex svg { width: 20px; height: 20px; }
.card__body { padding: 28px 20px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.card h3 { align-self: stretch; text-align: left; font-size: .95rem; font-weight: 500; padding-bottom: 8px; border-bottom: 1px solid rgba(20,20,60,.7); }
.card__lead { align-self: stretch; text-align: left; font-size: .8rem; font-weight: 500; }
.card__body p:not(.card__lead) { align-self: stretch; text-align: left; font-size: .68rem; font-weight: 300; margin-bottom: 8px; }
.card .pill { margin-top: auto; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; font-size: .75rem; opacity: .8; }

/* ===== Tablette ===== */
@media (max-width: 1000px) {
  .hero { min-height: auto; margin-top: 10px; display: grid; gap: 30px; }
  .hero__photo { position: relative; transform: none; left: auto; width: 100%; height: auto; margin: 0 auto; max-width: 380px; order: 2; }
  .hero__text { order: 1; padding-top: 30px; max-width: 520px; }
  .news { position: relative; top: auto; width: 100%; max-width: 420px; order: 3; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; gap: 28px; max-width: 460px; margin: 0 auto; }
}
/* ===== Mobile ===== */
@media (max-width: 700px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 20px 24px; border-radius: 14px; background: rgba(40,42,90,.95); border: 1px solid var(--glass-line);
  }
  .nav__links.is-open { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
