/* =========================================================
   Spidi Serrurier — maquette de refonte (style Apple)
   Design tokens
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --bg-alt-2: #EDEDF0;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --muted-2: #86868B;
  --line: #D2D2D7;
  --brass: #9C7A3C;
  --brass-deep: #7C5F2C;
  --brass-tint: #F3ECDD;
  --call: #1D1D1F;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.16);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--brass-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.88rem; font-weight: 500;
  background: var(--brass-tint); color: var(--brass-deep);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3FAE6B; flex: none;
  box-shadow: 0 0 0 0 rgba(63,174,107,0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,174,107,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(63,174,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,174,107,0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  min-height: 50px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { opacity: 0.85; }
.btn-ghost { background: var(--bg-alt); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt-2); }

.skip-link {
  position: absolute; left: -999px;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm); z-index: 300; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 60px; }

/* =========================================================
   Mockup banner
   ========================================================= */
.mockup-banner {
  background: var(--ink); color: rgba(255,255,255,0.75);
  font-size: 0.82rem; padding: 10px var(--pad); text-align: center;
}
.mockup-banner a { color: #fff; font-weight: 600; text-decoration: underline; }
.mockup-banner strong { color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 700; }
.logo svg { width: 19px; height: 19px; stroke: var(--brass); fill: none; stroke-width: 1.8; flex: none; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a { padding: 9px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.15s ease, background 0.15s ease; }
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-call { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-left: 6px; padding: 8px 16px; background: var(--bg-alt); border-radius: 999px; }
.header-call svg { width: 14px; height: 14px; stroke: var(--brass-deep); fill: none; stroke-width: 2; flex: none; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: clamp(48px, 8vw, 90px) 0 0; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); max-width: 15ch; }
.hero-sub { margin-top: 20px; max-width: 48ch; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 46px; padding: 28px var(--pad);
  background: var(--bg-alt); border-radius: var(--radius-sm);
}
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--ink); }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* =========================================================
   About
   ========================================================= */
.about { padding: clamp(60px, 9vw, 110px) 0; }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 5/4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 20ch; }
.about-body p { color: var(--muted); max-width: 58ch; font-size: 1.03rem; }
.about-body p + p { margin-top: 16px; }
.about-name {
  display: flex; align-items: center; gap: 12px; margin-top: 26px;
  padding: 14px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); width: fit-content;
}
.about-name .initial {
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%; background: var(--brass); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.about-name span { font-size: 0.86rem; color: var(--muted); }
.about-name strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* =========================================================
   Services — bento grid
   ========================================================= */
.services { padding: clamp(60px, 9vw, 110px) 0; background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); } }

.bento-tile {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.bento-tile.featured { grid-column: span 1; aspect-ratio: 4 / 3; color: #fff; justify-content: flex-end; }
@media (min-width: 720px) { .bento-tile.featured { grid-column: span 2; aspect-ratio: 16 / 7; } }
.bento-tile.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento-tile.featured::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.bento-tile.featured .tile-body { position: relative; z-index: 2; padding: 28px; }
.bento-tile.featured h3 { color: #fff; font-size: 1.3rem; }
.bento-tile.featured p { color: rgba(255,255,255,0.85); }

.tile-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bento-tile .icon { width: 34px; height: 34px; stroke: var(--brass); fill: none; stroke-width: 1.6; flex: none; }
.bento-tile h3 { font-size: 1.05rem; }
.bento-tile p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.tile-link { font-weight: 600; font-size: 0.88rem; color: var(--brass-deep); width: fit-content; margin-top: 4px; }

/* =========================================================
   Security banner (full-bleed photo)
   ========================================================= */
.banner { position: relative; padding: clamp(70px, 12vw, 130px) 0; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,12,0.62); z-index: 1; }
.banner .wrap { position: relative; z-index: 2; text-align: center; }
.banner h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 22ch; margin-inline: auto; }
.banner p { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 18px auto 0; font-size: 1.05rem; }
.banner .btn { margin-top: 30px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(60px, 9vw, 110px) 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item { background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--brass-deep); font-size: 1.3rem; flex: none; transition: transform 0.2s ease; font-weight: 400; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; max-width: 66ch; }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding: clamp(60px, 9vw, 110px) 0; }
.contact-panel {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 28px; text-align: center;
}
.contact-panel h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.4rem); max-width: 20ch; margin-inline: auto; }
.contact-panel > p { color: rgba(255,255,255,0.72); max-width: 52ch; margin-inline: auto; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.contact-phone { font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 700; color: #fff; }
.contact-panel .btn-call { background: var(--brass); }
.contact-panel .btn-call:hover { background: var(--brass-deep); }
.contact-zone { font-size: 0.86rem; color: rgba(255,255,255,0.55); width: 100%; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { font-weight: 700; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: 0.78rem; color: var(--muted-2); width: 100%; margin-top: 8px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-call { display: none; }
  .main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 20px var(--pad);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    height: calc(100vh - 64px);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 16px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 18px; }
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 0.95fr; }
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
  .about-grid.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .about-grid.reverse .about-photo { order: 2; }
}
