@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   MEYAURA Technologies — feuille de style principale

   Sommaire
   1.  Variables et base
   2.  En-tête et navigation
   3.  Boutons et textes
   4.  Accueil : hero et animations d'entrée
   5.  Slider des services (accueil)
   6.  Sections communes (cartes, listes, bandeaux)
   7.  Pages internes (MEY-ONE, hero de page)
   8.  Nos productions (cartes, filtres, popup)
   9.  Galerie et lightbox
   10. Contact
   11. Pied de page
   12. Animations au défilement
   13. Responsive
   14. Préférence « réduire les animations »
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. VARIABLES ET BASE
   --------------------------------------------------------------------- */
:root {
  --bg: #030714;
  --panel: #0a1530;
  --line: rgba(125, 161, 255, .2);
  --white: #f7f9ff;
  --muted: #aab6d2;
  --cyan: #13d8ff;
  --blue: #2878ff;
  --violet: #8a43ff;
  --grad: linear-gradient(110deg, #11d8ff, #2878ff 48%, #a342ff);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}


/* ---------------------------------------------------------------------
   2. EN-TÊTE ET NAVIGATION
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #030714ef;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  font-size: 16px;
}

.brand-mark {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: .4em;
  color: #c4cee5;
  margin-top: -4px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links { font-size: 11px; color: #d2d9eb; }

.nav-links a:hover,
.nav-links .active { color: var(--cyan); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: white;
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
}

.mobile-menu { display: none; }


/* ---------------------------------------------------------------------
   3. BOUTONS ET TEXTES
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px #3b49ff33;
}

.btn-ghost {
  border-color: #6376a6;
  background: #060c1e88;
  color: inherit;
}

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(38px, 5.3vw, 66px);
  line-height: 1.1;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -.04em;
  margin-bottom: 15px;
}

h3 { font-size: 17px; line-height: 1.35; }

p { color: var(--muted); }

.gradient-text {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead { font-size: 15px; max-width: 660px; line-height: 1.8; }

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

.center-row { display: flex; justify-content: center; margin-top: 34px; }


/* ---------------------------------------------------------------------
   4. ACCUEIL : HERO ET ANIMATIONS D'ENTRÉE
   --------------------------------------------------------------------- */
.hero { padding: 78px 0 70px; position: relative; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  right: -170px;
  top: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, #143db255, transparent 68%);
  pointer-events: none;
  animation: float-glow 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  left: -200px;
  bottom: -260px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, #5a2bd733, transparent 68%);
  pointer-events: none;
  animation: float-glow 15s ease-in-out infinite alternate-reverse;
}

@keyframes float-glow {
  to { transform: translate(-34px, 28px) scale(1.1); }
}

.hero-grid,
.split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-grid { z-index: 1; }

.hero-grid > *,
.split > * { min-width: 0; }

/* Titre animé : chaque mot apparaît l'un après l'autre */
.hero-title .line { display: block; }

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) scale(.97);
  filter: blur(12px);
  animation: word-in 1s cubic-bezier(.2, .75, .2, 1) forwards;
  animation-delay: calc(.2s + var(--i) * .17s);
}

@keyframes word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Deuxième ligne : dégradé qui coule lentement après l'apparition */
.hero-title .flow {
  background-image: linear-gradient(110deg, #11d8ff, #2878ff, #a342ff, #2878ff, #11d8ff);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation-name: word-in, gradient-flow;
  animation-duration: 1s, 7s;
  animation-timing-function: cubic-bezier(.2, .75, .2, 1), linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-delay: calc(.2s + var(--i) * .17s), 1.2s;
}

@keyframes gradient-flow {
  to { background-position: -300% 50%; }
}

/* Apparition douce des autres éléments du hero */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.hero-art,
.visual-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #3159aa55;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 80% 0%, #284aff2c, transparent 50%),
    linear-gradient(145deg, #0c1a3b, #050b1c);
  padding: 20px;
  min-height: 340px;
}

.orb {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  right: 13%;
  top: 8%;
  background: var(--grad);
  box-shadow: 0 0 80px #276aff66;
}

.orb::after {
  content: '';
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #071027;
}

.hero-slider .orb { animation: orb-float 7s ease-in-out infinite alternate; }

@keyframes orb-float {
  to { transform: translateY(14px) scale(1.04); }
}

.mock-window {
  position: relative;
  margin-top: 65px;
  border: 1px solid #3c5ba4;
  border-radius: 14px;
  background: #040a1bf2;
  padding: 15px;
  transform: rotate(-2deg);
  box-shadow: 0 20px 50px #0008;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 10px;
  color: #dbe6ff;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.mock-card {
  border: 1px solid #1b2b55;
  border-radius: 9px;
  background: #0a1632;
  padding: 12px;
  min-height: 65px;
}

.mock-card span { font-size: 9px; color: #9baed8; }

.mock-card strong { display: block; font-size: 13px; margin-top: 5px; }

.chart {
  height: 30px;
  margin-top: 7px;
  background: linear-gradient(0deg, #147dff55, transparent);
  clip-path: polygon(0 80%, 14% 54%, 26% 66%, 40% 28%, 52% 47%, 65% 16%, 76% 38%, 90% 5%, 100% 15%, 100% 100%, 0 100%);
}

.trust-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; }

.trust-item strong { display: block; font-size: 18px; }

.trust-item span { font-size: 10px; color: var(--muted); }


/* ---------------------------------------------------------------------
   5. SLIDER DES SERVICES (cadre de l'accueil)
   --------------------------------------------------------------------- */
.hero-slider {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slides {
  position: relative;
  display: grid;
  touch-action: pan-y;
}

.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(32px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .7s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.slide.is-prev { transform: translateX(-32px); }

.slide-kicker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8fdcff;
}

.slide-kicker b { color: #fff; font-size: 13px; letter-spacing: 0; }

.slide-foot { margin-top: 18px; padding: 0 4px; }

.slide-foot p { font-size: 12px; line-height: 1.75; margin-bottom: 8px; }

.slider-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.slider-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #6376a6;
  background: #060c1e88;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}

.slider-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.slider-dots { display: flex; align-items: center; gap: 8px; }

.slider-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #3a4c7a;
  overflow: hidden;
  cursor: pointer;
  transition: width .35s, background .35s;
}

.slider-dot.is-active { width: 34px; background: #243a68; }

/* La barre qui se remplit sert aussi de minuteur pour passer à la suite */
.slider-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  animation: dot-fill 5.5s linear forwards;
}

.hero-slider:hover .slider-dot.is-active::after,
.hero-slider:focus-within .slider-dot.is-active::after { animation-play-state: paused; }

@keyframes dot-fill {
  to { transform: scaleX(1); }
}


/* ---------------------------------------------------------------------
   6. SECTIONS COMMUNES
   --------------------------------------------------------------------- */
.section { padding: 82px 0; }

.section-head { max-width: 720px; margin: 0 auto 38px; text-align: center; }

.section-head p { max-width: 630px; margin: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card,
.module-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(150deg, #0b1732, #060c1d);
  transition: .2s;
}

.card:hover { transform: translateY(-4px); border-color: #428aff80; }

.card p { font-size: 12px; line-height: 1.8; }

.iconbox {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #0bcfff2b, #8a43ff35);
  border: 1px solid #437dff55;
  color: var(--cyan);
  font-size: 20px;
  margin-bottom: 18px;
}

.text-link { color: var(--cyan); font-size: 11px; font-weight: 700; }

.visual-logo {
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -.12em;
  line-height: 1;
  text-align: center;
  margin-top: 35px;
  color: transparent;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
}

.visual-caption {
  text-align: center;
  letter-spacing: .34em;
  font-size: 10px;
  color: #dce6ff;
}

.feature-list { display: grid; gap: 15px; margin: 25px 0; }

.feature { display: flex; gap: 12px; }

.check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #13d8ff18;
  color: var(--cyan);
  border: 1px solid #13d8ff55;
  font-size: 12px;
}

.feature p { font-size: 12px; margin: 2px 0 0; }

.cta-band {
  padding: 34px;
  border-radius: 21px;
  border: 1px solid #3875ff55;
  background:
    radial-gradient(ellipse at 10% 100%, #4a25d755, transparent 45%),
    linear-gradient(110deg, #101b4b, #09142e 55%, #071b3d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta-band h2 { font-size: 28px; margin-bottom: 7px; }

.cta-band p { margin-bottom: 0; }


/* ---------------------------------------------------------------------
   7. PAGES INTERNES
   --------------------------------------------------------------------- */
.page-hero {
  text-align: center;
  padding: 75px 0 52px;
  background: radial-gradient(ellipse at 50% -30%, #173b9855, transparent 65%);
}

.page-hero h1 { max-width: 850px; margin: 14px auto 18px; }

.page-hero p { max-width: 720px; margin: auto; }

.product-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }

.product-symbol {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 40px #4b55ff35;
}

.version,
.pill {
  font-size: 10px;
  border: 1px solid #2b8bff77;
  border-radius: 99px;
  padding: 5px 9px;
  color: #8fdcff;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.module-card { padding: 21px; background: #08132a; }

.module-card .code { font-size: 10px; color: var(--cyan); letter-spacing: .16em; font-weight: 700; }

.module-card h3 { margin: 8px 0; }

.module-card p { font-size: 12px; margin: 0; }

.mini-icon { font-size: 22px; margin-bottom: 10px; }

.breadcrumbs { font-size: 10px; color: #8d9cbc; margin-bottom: 18px; }


/* ---------------------------------------------------------------------
   8. NOS PRODUCTIONS
   --------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #d2d9eb;
  border: 1px solid var(--line);
  background: #060c1e88;
  border-radius: 99px;
  padding: 9px 15px;
  cursor: pointer;
  transition: .2s;
}

.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.filter-btn[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.filter-btn span { opacity: .75; margin-left: 4px; font-weight: 600; }

.works-count { text-align: center; font-size: 11px; color: #8d9cbc; margin-bottom: 24px; }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #0b1732, #060c1d);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: #428aff80;
  box-shadow: 0 18px 40px #0007;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1530;
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.work-card:hover .work-media img { transform: scale(1.07); }

.work-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  background: #030714cc;
  border: 1px solid #2b8bff77;
  color: #8fdcff;
  backdrop-filter: blur(6px);
}

.work-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }

.work-body h3 { font-size: 15px; margin: 0 0 6px; }

/* La description s'arrête à deux lignes */
.work-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
}

.work-more { margin-top: auto; align-self: flex-start; padding: 9px 15px; }

/* Popup de détails */
.work-dialog {
  position: fixed;
  width: min(880px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--white);
  background: #070f26;
  border: 1px solid #3159aa88;
  border-radius: 22px;
  box-shadow: 0 30px 90px #000c;
}

.work-dialog::backdrop {
  background: rgba(2, 5, 14, .78);
  backdrop-filter: blur(6px);
}

.work-dialog[open] { animation: dialog-in .35s cubic-bezier(.2, .7, .2, 1); }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #6376a6;
  background: #030714cc;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: .2s;
}

.dialog-close:hover { border-color: var(--cyan); color: var(--cyan); }

.dialog-grid { display: grid; grid-template-columns: 1.05fr 1fr; }

.dialog-media { min-height: 100%; background: #0a1530; }

.dialog-media img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

.dialog-body { padding: 34px 30px 30px; }

.dialog-body h2 { font-size: 26px; margin: 8px 0 12px; }

.dialog-body > p { font-size: 13px; line-height: 1.8; }

.dialog-body h4 {
  margin: 20px 0 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dialog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.dialog-list li { display: flex; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }

.dialog-body .actions { margin-top: 24px; }


/* ---------------------------------------------------------------------
   9. GALERIE ET LIGHTBOX
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a1530;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: border-color .3s, box-shadow .3s;
}

.gallery-item:hover { border-color: #428aff80; box-shadow: 0 18px 40px #0007; }

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

/* Disposition en mosaïque (4 colonnes) */
.g1 { grid-column: span 2; grid-row: span 2; }
.g3 { grid-row: span 2; }
.g5 { grid-column: span 2; }

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 16px 14px;
  background: linear-gradient(transparent, #030714ee);
  opacity: 0;
  transform: translateY(35%);
  transition: opacity .35s, transform .35s;
}

.gallery-item:hover .cap,
.gallery-item:focus-visible .cap { opacity: 1; transform: none; }

.cap em {
  display: block;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.cap strong { display: block; font-size: 13px; margin-top: 2px; }

.gallery-item .zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #030714cc;
  border: 1px solid #6376a6;
  font-size: 14px;
  opacity: 0;
  transform: scale(.8);
  transition: .3s;
}

.gallery-item:hover .zoom,
.gallery-item:focus-visible .zoom { opacity: 1; transform: none; }

/* Sur écran tactile, la légende reste visible */
@media (hover: none) {
  .gallery-item .cap { opacity: 1; transform: none; }
}

.lightbox {
  width: min(1080px, calc(100% - 24px));
  max-width: none;
  padding: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(2, 5, 14, .92);
  backdrop-filter: blur(8px);
}

.lightbox[open] { animation: dialog-in .35s cubic-bezier(.2, .7, .2, 1); }

.lightbox-stage { position: relative; }

.lightbox img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid #3159aa55;
  background: #050b1c;
}

.lightbox-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.lightbox-cap strong { display: block; font-size: 15px; color: #fff; }

.lb-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  border: 1px solid #6376a6;
  background: #030714cc;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}

.lb-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.lb-prev { left: -14px; }
.lb-next { right: -14px; }

.lb-close {
  position: absolute;
  right: 0;
  top: -54px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #6376a6;
  background: #030714cc;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.lb-close:hover { border-color: var(--cyan); color: var(--cyan); }


/* ---------------------------------------------------------------------
   10. CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }

.contact-info,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #08132a;
  padding: 27px;
}

.contact-form label { display: block; font-size: 11px; margin-bottom: 6px; color: #dce5ff; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #030a1a;
  border: 1px solid #28395f;
  border-radius: 9px;
  color: white;
  padding: 12px;
  margin-bottom: 15px;
  outline: none;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 10px; color: #92a2c4; }

.notice {
  display: none;
  padding: 12px;
  border: 1px solid #13d8ff55;
  background: #0b2741;
  border-radius: 9px;
  font-size: 12px;
  color: #c9efff;
  margin-top: 12px;
}

.notice.show { display: block; }


/* ---------------------------------------------------------------------
   11. PIED DE PAGE
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 35px 0 20px; background: #020510; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 25px;
  padding-bottom: 27px;
}

.footer-grid h4 { font-size: 11px; margin: 0 0 12px; }

.footer-grid a:not(.brand) { display: block; font-size: 10px; color: var(--muted); margin: 8px 0; }

.footer-grid a:not(.brand):hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid #1a2540;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8090b2;
  font-size: 10px;
}


/* ---------------------------------------------------------------------
   12. ANIMATIONS AU DÉFILEMENT
   (la classe « js » est ajoutée par un petit script dans chaque page :
    sans JavaScript, tout reste visible)
   --------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}

.js [data-reveal].visible { opacity: 1; transform: none; }


/* ---------------------------------------------------------------------
   13. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 950px) {
  .nav-links { gap: 12px; }
  .nav-actions .btn { padding: 10px; }
  .hero-grid,
  .split { gap: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g5 { grid-column: span 2; }
}

@media (max-width: 740px) {
  .container { width: calc(100% - 30px); }
  .nav { height: 68px; }
  .nav-links,
  .nav-actions { display: none; }
  .menu-toggle { display: block; }

  .mobile-menu.open { display: grid; padding: 5px 16px 15px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 11px 3px; font-size: 12px; border-bottom: 1px solid #172443; color: #dce5ff; }

  .hero { padding: 55px 0 45px; }
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 290px; }
  .mock-window { margin-top: 48px; }
  .section { padding: 60px 0; }
  .cards,
  .module-grid { grid-template-columns: 1fr; }
  .visual-panel { min-height: 260px; }
  .visual-logo { font-size: 95px; }
  .cta-band { padding: 24px; align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 55px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; }
  .trust-row { gap: 18px; }

  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .dialog-body { padding: 26px 22px 24px; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 135px; gap: 10px; }
}


/* ---------------------------------------------------------------------
   14. PRÉFÉRENCE « RÉDUIRE LES ANIMATIONS »
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-title .word,
  .hero-title .flow,
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero::before,
  .hero::after,
  .hero-slider .orb { animation: none; }

  .slide { transition: none; }

  .slider-dot.is-active::after { animation: none; transform: none; }

  .js [data-reveal] { opacity: 1; transform: none; transition: none; }

  .work-dialog[open],
  .lightbox[open] { animation: none; }
}

/* =====================================================================
   Ajouts : coordonnées gérées dans l'admin, liens légaux, anti-robot
   ===================================================================== */
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--cyan); }

.footer-grid [data-contact-extra] span { display: block; font-size: 10px; color: var(--muted); margin: 8px 0; }

.contact-extra { display: grid; gap: 6px; font-size: 12px; margin-top: 10px; }
.contact-extra a { color: var(--cyan); }
.contact-extra span { color: var(--muted); }
[data-contact-extra][hidden] { display: none; }

/* Champ invisible qui piège les robots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pages légales */
.legal { max-width: 780px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.legal .todo { color: #ffcf5a; font-weight: 600; }
