/* ===================================================================
   SHIELD SÉCURITÉ PRIVÉE — Design System
   Palette : noir profond / or — typographie Cinzel + Manrope
   Signature : cadres "viseur" (coins) + ligne de balayage en hero
   =================================================================== */

:root {
  /* Couleurs */
  --bg: #0b0a09;
  --bg-elevated: #161310;
  --bg-elevated-2: #201b15;
  --gold: #c9a227;
  --gold-bright: #ecc85a;
  --gold-deep: #6e5414;
  --text: #f4efe4;
  --text-muted: #a7a094;
  --text-faint: #6f6a60;
  --line: rgba(201, 162, 39, 0.16);
  --line-strong: rgba(201, 162, 39, 0.40);
  --shadow-deep: rgba(0, 0, 0, 0.55);

  /* Typo */
  --font-display: 'Cinzel', serif;
  --font-body: 'Manrope', sans-serif;

  /* Layout */
  --container: 1180px;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,162,39,0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(201,162,39,0.04), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
p { color: var(--text-muted); }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text); font-weight: 400; }
strong { color: var(--text); font-weight: 700; }

/* Eyebrow (label de section) */
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* Divider losange */
.divider {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; max-width: 220px; margin: 1.75rem auto 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.divider::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.divider-diamond { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* ---------- Layout ---------- */
.section { padding: var(--section-pad) clamp(1.5rem, 4vw, 4rem); }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-alt { background: var(--bg-elevated); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto var(--section-pad); }
.section-head p { margin-top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 2.25rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #15110a; }
.btn-primary:hover { background: var(--gold-bright); box-shadow: 0 12px 32px -12px rgba(201,162,39,0.55); transform: translateY(-2px); }
.btn-secondary { border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,162,39,0.06); transform: translateY(-2px); }
.btn-row { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(10, 9, 8, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; z-index: 210; }
.brand img { height: 48px; width: auto; transition: height 0.4s var(--ease); }
.navbar.scrolled .brand img { height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.14em; color: var(--gold); }
.brand-text span { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }

.nav-links {
  display: flex; gap: clamp(1.3rem, 3vw, 2.6rem); align-items: center;
}
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--text-muted); position: relative; padding-bottom: 6px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 210; }
.nav-toggle span { display: block; height: 1px; background: var(--gold); width: 100%; transition: transform 0.3s, opacity 0.3s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(8, 7, 6, 0.98); gap: 2.4rem;
    transform: translateY(-100%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 5rem;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 35%, rgba(201,162,39,0.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 45%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px; top: 18%;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  animation: scan 3.6s ease-in-out 0.6s 1 both;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 14%; opacity: 0; }
  18% { opacity: 0.65; }
  82% { opacity: 0.4; }
  100% { top: 86%; opacity: 0; }
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-emblem {
  width: clamp(150px, 22vw, 260px); margin: 0 auto 2rem;
  filter: drop-shadow(0 0 50px rgba(201,162,39,0.22));
  animation: emblem-in 1.2s var(--ease) both;
}
@keyframes emblem-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero h1 { margin-bottom: 1.4rem; animation: rise-in 1s var(--ease) 0.25s both; }
.hero .lead { max-width: 48ch; margin: 0 auto 2.75rem; animation: rise-in 1s var(--ease) 0.45s both; }
.hero .btn-row { animation: rise-in 1s var(--ease) 0.65s both; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-faint);
  z-index: 2;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 38px; background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Page header (sous-pages) ---------- */
.page-header {
  padding: 10rem clamp(1.5rem, 4vw, 4rem) 4.5rem;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201,162,39,0.09), transparent 65%);
  pointer-events: none;
}
.page-header h1 { position: relative; z-index: 1; }
.page-header .lead { max-width: 52ch; margin: 1.25rem auto 0; position: relative; z-index: 1; }

/* ---------- Cadre signature "viseur" ---------- */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease);
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.frame:hover::before, .frame:hover::after { border-color: var(--gold); width: 30px; height: 30px; }

/* ---------- Grilles génériques ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* ---------- Piliers (Pourquoi SHIELD) ---------- */
.pillar { padding: 2.75rem 2.25rem; background: var(--bg-elevated); }
.pillar-icon { width: 44px; height: 44px; margin-bottom: 1.75rem; color: var(--gold); }
.pillar h3 { margin-bottom: 0.9rem; }

/* ---------- Cartes prestations ---------- */
.service-card { padding: 2.75rem 2.25rem; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 1.1rem; }
.service-card-icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 0.5rem; }
.service-card h3 { font-family: var(--font-display); text-transform: none; font-size: 1.4rem; letter-spacing: 0.01em; font-weight: 600; }
.service-card .service-link { margin-top: auto; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.6rem; transition: gap 0.3s; }
.service-card .service-link:hover { gap: 1rem; }

/* ---------- Tags (sous-domaines) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.tag {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 1rem; border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s;
}

/* ---------- Détail prestation (page prestations) ---------- */
.prestation-block {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center;
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--line);
}
.prestation-block:last-child { border-bottom: none; }
.prestation-block:nth-child(even) { direction: rtl; }
.prestation-block:nth-child(even) > * { direction: ltr; }
.prestation-visual {
  aspect-ratio: 4 / 3; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.prestation-visual svg { width: 30%; height: 30%; color: var(--line-strong); transition: color 0.4s; }
.prestation-visual:hover svg { color: var(--gold); }
.prestation-num {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gold-deep);
}

/* ---------- Couverture / disponibilité ---------- */
.coverage { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line-strong); }
.coverage-row { display: flex; flex-direction: column; }
@media (min-width: 700px) { .coverage-row { flex-direction: row; } }
.coverage-segment {
  flex: 1; padding: 2rem 1.75rem; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 700px) {
  .coverage-segment { border-bottom: none; border-right: 1px solid var(--line); }
  .coverage-segment:last-child { border-right: none; }
}
.coverage-segment .time { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); letter-spacing: 0.04em; }
.coverage-segment .label { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.coverage-segment .desc { font-size: 0.88rem; margin-top: 0.4rem; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; background: var(--bg-elevated); }
.blog-card-media {
  height: 190px; background: linear-gradient(135deg, var(--bg-elevated-2), var(--bg));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.blog-card-media svg { width: 38px; height: 38px; color: var(--line-strong); }
.blog-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201,162,39,0.04) 0 2px, transparent 2px 18px);
}
.blog-card-body { padding: 1.85rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.blog-date { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.blog-card h3 { font-family: var(--font-display); text-transform: none; font-size: 1.2rem; letter-spacing: 0.01em; font-weight: 600; }
.blog-card p { font-size: 0.92rem; flex: 1; }
.blog-readmore { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.55rem; transition: gap 0.3s; }
.blog-readmore:hover { gap: 0.95rem; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-tile {
  aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg-elevated);
}
.gallery-tile.t2 { background: var(--bg-elevated-2); }
.gallery-tile svg { width: 20%; height: 20%; color: var(--line-strong); transition: color 0.35s, transform 0.35s; }
.gallery-tile:hover svg { color: var(--gold); transform: scale(1.1); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
}
.gallery-note {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem; border: 1px dashed var(--line-strong);
  font-size: 0.88rem; color: var(--text-muted);
}
.gallery-note strong { color: var(--gold); }

/* ---------- Avis / témoignages ---------- */
.testimonial { padding: 2.4rem 2.2rem; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 1.25rem; }
.testimonial-stars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.95rem; }
.testimonial-quote { font-style: italic; color: var(--text); font-size: 0.96rem; }
.testimonial-author { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.85rem; margin-top: 2.25rem; }
.contact-info-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info-item h3 { margin-bottom: 0.35rem; }
.contact-info-item p { font-size: 0.92rem; }
.contact-map { margin-top: 2.5rem; border: 1px solid var(--line); filter: grayscale(0.25) brightness(0.85) contrast(1.05); }
.contact-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Formulaire ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.form-field label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold); background: var(--bg-elevated-2);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 4.5rem clamp(1.5rem, 4vw, 4rem) 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  max-width: var(--container); margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.footer-brand img { height: 44px; }
.footer-brand strong { font-family: var(--font-display); color: var(--gold); letter-spacing: 0.14em; font-size: 1rem; display: block; }
.footer-brand span { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }
.footer p { font-size: 0.9rem; max-width: 34ch; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint);
  max-width: var(--container); margin-inline: auto;
}

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .prestation-block { grid-template-columns: 1fr; gap: 2rem; }
  .prestation-block:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Lecteur de musique ---------- */
.music-toggle {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); cursor: pointer; transition: all 0.3s var(--ease);
}
.music-toggle:hover { border-color: var(--gold); box-shadow: 0 8px 24px -8px rgba(201,162,39,0.4); }
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle .icon-on { display: none; }
.music-toggle.playing .icon-off { display: none; }
.music-toggle.playing .icon-on { display: flex; }
.music-toggle .icon-on line {
  transform-box: fill-box; transform-origin: center bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.music-toggle .icon-on line:nth-child(2) { animation-delay: 0.15s; }
.music-toggle .icon-on line:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }
@media (max-width: 640px) {
  .music-toggle { width: 46px; height: 46px; bottom: 1.25rem; right: 1.25rem; }
  .music-toggle svg { width: 19px; height: 19px; }
}
