/* =========================================================
   DNA LASER — Design System partagé (FR / HE - RTL)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&family=Heebo:wght@300;400;500;700;800&display=swap');

:root {
  /* Marque neutre (accueil) */
  --brand-gold: #c8a45c;
  --brand-gold-soft: #e6cf9c;
  --ink: #0f1115;
  --ink-soft: #1a1d24;

  /* Univers Femme */
  --f-primary: #ec4899;
  --f-secondary: #f9a8d4;
  --f-accent: #8b5cf6;
  --f-bg: #fdf2f8;
  --f-fg: #831843;
  --f-border: #fbcfe8;

  /* Univers Homme */
  --h-primary: #12151c;
  --h-secondary: #1e293b;
  --h-accent: #d4361f;
  --h-gold: #c8a45c;
  --h-bg: #0f1115;
  --h-fg: #f5f5f4;
  --h-border: #2a2f3a;

  /* Système */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;

  --font-fr-display: 'Great Vibes', cursive;
  --font-fr-body: 'Cormorant Infant', Georgia, serif;
  --font-h-display: 'Oswald', sans-serif;
  --font-base: 'Inter', system-ui, sans-serif;
  --font-he: 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

/* Hébreu → bascule la police */
html[lang="he"] body,
html[dir="rtl"] body { font-family: var(--font-he); }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Visibilité par langue ---------- */
[data-lang-fr], [data-lang-he] { display: none; }
html[lang="fr"] [data-lang-fr] { display: revert; }
html[lang="he"] [data-lang-he] { display: revert; }
html[lang="fr"] .i-inline[data-lang-fr],
html[lang="he"] .i-inline[data-lang-he] { display: inline; }

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  position: fixed; top: 18px; inset-inline-end: 20px; z-index: 1000;
  display: flex; gap: 4px; padding: 4px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(10px);
  border-radius: 100px; border: 1px solid rgba(255,255,255,.18);
}
.lang-switch button {
  color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 100px; opacity: .6;
  transition: all .25s var(--ease); min-height: 38px;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: #111; opacity: 1; }
.lang-switch button:hover { opacity: 1; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px); transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700;
  font-family: var(--font-h-display); letter-spacing: .06em; font-size: 22px; text-transform: uppercase; }
.site-header .brand small { font-weight: 400; opacity: .8; letter-spacing: .2em; font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: #fff; font-weight: 500; font-size: 15px; transition: color .2s var(--ease); position: relative; }
.nav-link::after { content:""; position:absolute; inset-inline-start:0; bottom:-5px; height:2px; width:0; background:currentColor; transition: width .25s var(--ease); }
.nav-link:hover::after { width:100%; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: 8px; }
.burger { display: none; width: 44px; height: 44px; color: #fff; }
.burger svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 90px 28px; gap: 22px; transform: translateX(110%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  html[dir="rtl"] .main-nav { inset: 0 auto 0 0; transform: translateX(-110%); }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { font-size: 19px; color: #fff; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: 15px;
  letter-spacing: .02em; min-height: 48px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
  animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Bouton musique flottant ---------- */
.music-btn {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(15,17,21,.85); color: #e6cf9c; backdrop-filter: blur(8px);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  border: 1px solid rgba(200,164,92,.4); transition: transform .2s var(--ease), background .25s var(--ease);
}
.music-btn:hover { transform: scale(1.08); }
.music-btn svg { width: 24px; height: 24px; }
.music-btn.playing { background: var(--brand-gold); color: #1a1205; }
.music-btn.playing::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--brand-gold); animation: musicPulse 1.6s ease-out infinite;
}
@keyframes musicPulse { 0%{opacity:.7;transform:scale(1)} 100%{opacity:0;transform:scale(1.35)} }

/* ---------- Galerie vidéos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.video-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.video-grid video { width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background:#000; }
@media (max-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Lien "voir toute la galerie" */
.gallery-more { text-align: center; margin-top: 26px; }
.gallery-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Section Technologie / Crédibilité ---------- */
.tech-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.tech-machine { text-align: center; }
.tech-machine img { max-height: 420px; width: auto; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.18)); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ti-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(200,164,92,.15); color: var(--brand-gold); }
.trust-item .ti-ic svg { width: 22px; height: 22px; }
.trust-item h4 { font-size: 15px; margin-bottom: 2px; }
.trust-item p { font-size: 13px; opacity: .75; line-height: 1.4; }
.supplier-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid #e8e4ef; background: #fff; margin-top: 8px; color: #2a2a2a; box-shadow: var(--shadow-sm); }
.supplier-row img { height: 54px; width: auto; }
.supplier-row .sr-txt { font-size: 13px; color: #555; }
.supplier-row .sr-txt strong { display: block; font-size: 14px; color: #1a1a1a; }
.tech-video { margin-top: 40px; }
.video-embed { position: relative; width: 100%; max-width: 860px; margin-inline: auto; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background:#000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .tech-split { grid-template-columns: 1fr; gap: 28px; } .tech-machine img { max-height: 320px; }
  .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Bandeau promo ---------- */
.promo-bar {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-soft));
  color: #1a1205; text-align: center; font-weight: 700;
  padding: 9px 16px; font-size: 14px; letter-spacing: .02em;
  position: relative; z-index: 2;
}
.promo-bar .code { background: #1a1205; color: var(--brand-gold-soft);
  padding: 2px 10px; border-radius: 6px; font-family: var(--font-base); letter-spacing: .12em; margin-inline: 6px; }

/* ---------- Sections génériques ---------- */
.section { padding: 84px 20px; }
.container { max-width: var(--maxw); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; opacity: .7; }
.section-title { font-size: clamp(28px, 5vw, 46px); font-weight: 700; line-height: 1.1; margin: 10px 0 14px; }
.lead { font-size: 18px; opacity: .85; max-width: 60ch; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px;
}
.gallery-grid figure {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 3/4; box-shadow: var(--shadow-sm); cursor: pointer; background:#eee;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(0,0,0,.92); place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 18px; inset-inline-end: 22px; color:#fff; font-size: 34px; line-height: 1; }
.lightbox .lb-nav { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:48px; padding:0 18px; opacity:.8; }
.lightbox .lb-prev { inset-inline-start: 6px; } .lightbox .lb-next { inset-inline-end: 6px; }

/* ---------- Cartes équipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.team-card { text-align: center; padding: 22px; border-radius: var(--radius); }
.team-card .avatar {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; box-shadow: var(--shadow-md);
}

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Cascade galerie */
.gallery-grid.in figure { opacity: 0; transform: translateY(22px) scale(.98); animation: tileIn .6s var(--ease) forwards; }
.gallery-grid.in figure:nth-child(1){animation-delay:.00s}.gallery-grid.in figure:nth-child(2){animation-delay:.06s}
.gallery-grid.in figure:nth-child(3){animation-delay:.12s}.gallery-grid.in figure:nth-child(4){animation-delay:.18s}
.gallery-grid.in figure:nth-child(5){animation-delay:.24s}.gallery-grid.in figure:nth-child(6){animation-delay:.30s}
.gallery-grid.in figure:nth-child(7){animation-delay:.36s}.gallery-grid.in figure:nth-child(8){animation-delay:.42s}
@keyframes tileIn { to { opacity: 1; transform: none; } }

/* Indicateur de défilement (hero) */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:2px; background:#fff; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* Soulignement accent des titres de section */
.section-title.accented::after { content:""; display:block; width:54px; height:4px; border-radius:2px;
  background: var(--brand-gold); margin-top: 14px; }
html[dir="rtl"] .section-title.accented::after { margin-inline-start: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd2dd; padding: 56px 20px 30px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 28px; max-width: var(--maxw); margin-inline: auto; }
.footer-bottom { text-align: center; opacity: .55; font-size: 13px; margin-top: 34px; }

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
