/* ============================================================
   MEDISUN TAHITI — Vitrine coffres-forts
   Palette: noir premium + accent or · Bodoni Moda / Jost
   ============================================================ */

:root {
  --ink:        #0C0A09;
  --primary:    #1C1917;
  --secondary:  #44403C;
  --stone:      #78716C;
  --line:       #E7E5E4;
  --bg:         #FAFAF9;
  --bg-warm:    #F5F4F2;
  --gold:       #CA8A04;
  --gold-soft:  #E0B43A;
  --gold-deep:  #A06E03;
  --white:      #FFFFFF;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(12,10,9,.06), 0 4px 14px rgba(12,10,9,.05);
  --shadow-md: 0 8px 30px rgba(12,10,9,.10);
  --shadow-lg: 0 24px 60px rgba(12,10,9,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--secondary); }
a  { color: inherit; text-decoration: none; }

.gold { color: var(--gold-deep); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--sans);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 20px rgba(202,138,4,.28); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 28px rgba(202,138,4,.36); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.section .btn-ghost, .showroom-info .btn-ghost { border-color: var(--secondary); color: var(--primary); }
.section .btn-ghost:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand-mark { color: var(--gold-deep); flex: none; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; line-height: 1; display: flex; flex-direction: column; }
.brand-sub { font-size: .62rem; letter-spacing: .42em; color: var(--stone); font-weight: 500; }
.main-nav { display: flex; gap: 2rem; margin-left: auto; }
.main-nav a { font-weight: 500; font-size: .98rem; color: var(--secondary); position: relative; padding: .3rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.nav-cta { margin-left: .25rem; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(202,138,4,.22), transparent 55%),
    linear-gradient(160deg, #1C1917 0%, #0C0A09 60%, #1C1917 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 80%);
}
.hero-video {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none;
  background: linear-gradient(180deg, rgba(8,7,6,.25) 0%, rgba(8,7,6,.35) 45%, rgba(8,7,6,.62) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-inner { padding: 7rem 24px 6.5rem; max-width: 880px; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-soft); }
.hero-lede { font-size: 1.2rem; color: rgba(255,255,255,.78); max-width: 620px; margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; padding: 1.8rem 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust li { font-size: .95rem; color: rgba(255,255,255,.62); }
.hero-trust strong { color: var(--gold-soft); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--primary); color: var(--white); padding: 3.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.trust-item svg { width: 30px; height: 30px; fill: var(--gold-soft); margin-bottom: .8rem; }
.trust-item h3 { color: var(--white); font-size: 1.12rem; margin-bottom: .4rem; }
.trust-item p { color: rgba(255,255,255,.6); font-size: .92rem; margin: 0; }

/* ---------- Marques distribuées (marquee) ---------- */
.brands { background: var(--ink); padding: 3.4rem 0 3.8rem; border-top: 1px solid rgba(255,255,255,.06); }
.brands-eyebrow {
  text-align: center; color: var(--gold-soft);
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 .7rem;
}
.brands-eyebrow::before, .brands-eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: rgba(224,180,58,.5); vertical-align: middle; margin: 0 .8rem;
}
.brands-title {
  text-align: center; color: rgba(255,255,255,.5);
  font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 2.4rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: brand-scroll 22s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-logo {
  flex: none; height: 40px; width: auto; object-fit: contain;
  margin-right: 3.4rem;
  opacity: .68; transition: opacity .3s var(--ease);
}
.brand-logo:hover { opacity: 1; }
.logo-invert { filter: brightness(0) invert(1); }
.brand-word {
  font-family: var(--serif); font-weight: 600; font-size: 1.85rem;
  letter-spacing: .2em; color: #fff; line-height: 1; opacity: .8;
}
@keyframes brand-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 2rem; width: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-head { max-width: 680px; margin: 0 auto 3.2rem; text-align: center; }
.section-lede { font-size: 1.12rem; color: var(--secondary); margin-top: 1rem; }

/* ---------- Product grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.card-media {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #292524, #1C1917);
  background-size: cover; background-position: center; position: relative;
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 40%, transparent, rgba(12,10,9,.35));
}
.card-body { padding: 1.5rem 1.5rem 1.7rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { font-size: .96rem; margin-bottom: 1.1rem; }
.card-link { font-weight: 600; color: var(--gold-deep); font-size: .95rem; transition: gap .2s var(--ease); }
.card-link:hover { color: var(--gold); }

/* ---------- NUGUE ---------- */
.nugue { background: var(--bg-warm); }
.nugue-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: var(--secondary); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 1.3rem; height: 1.3rem;
  background: var(--gold); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
}
.nugue-media {
  aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, #292524, #0C0A09); background-size: cover; background-position: center;
  border: 1px solid rgba(202,138,4,.25);
}

/* ---------- Showroom ---------- */
.showroom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.showroom-media {
  aspect-ratio: 16 / 11; border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #292524, #1C1917); background-size: cover; background-position: center;
}
.showroom-info h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.info-list { margin: 1.6rem 0 1.8rem; }
.info-list > div { padding: .9rem 0; border-top: 1px solid var(--line); }
.info-list dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: .2rem; }
.info-list dd { margin: 0; font-weight: 500; color: var(--primary); }
.info-list a:hover { color: var(--gold-deep); }

/* ---------- Carte ---------- */
.map-wrap {
  margin-top: 2.4rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0;
}
.map-wrap iframe { display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-warm); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 1.4rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease);
}
.faq-item[open] { border-color: var(--gold-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold-deep); font-family: var(--sans); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 1.2rem; margin: 0; font-size: .98rem; }

/* ---------- SAV ---------- */
.sav { background: var(--primary); color: var(--white); }
.sav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sav h2 { color: var(--white); }
.sav-text p { color: rgba(255,255,255,.7); }
.sav-services { list-style: none; padding: 0; margin: 0; }
.sav-services li {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; color: rgba(255,255,255,.9);
}
.sav-services span { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-soft); min-width: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-coords { margin-top: 2rem; }
.contact-coords > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.contact-coords dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.contact-coords dd { margin: .2rem 0 0; font-weight: 500; }
.contact-coords a:hover { color: var(--gold-deep); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202,138,4,.15);
}
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--stone); margin: 1rem 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-text { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.55); max-width: 340px; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { color: rgba(255,255,255,.7); font-size: .95rem; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-contact p { font-size: .92rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .nugue-inner, .showroom-grid, .sav-inner, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nugue-media { aspect-ratio: 16/10; max-height: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.2rem 24px 1.6rem; gap: 1.2rem;
  }
  .nav-cta-mobile { display: inline-flex; align-self: stretch; margin-top: .4rem; }
  .hero-inner { padding: 4.5rem 24px 4rem; position: relative; z-index: 1; }
  .hero-video { object-position: 66% center; }
  .hero-scrim { display: block; }
  .brand-logo { margin-right: 2.6rem; height: 34px; }
  .brand-word { font-size: 1.55rem; }
  .marquee-track { animation-duration: 18s; }
  .section { padding: 4rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}
