/* ================================
   JOHNNY V2 — Sécurité, Entretien & Peinture
   ================================ */

:root {
  --bg: #FAF8F4;
  --bg-soft: #F1ECE2;
  --bg-dark: #0F1B2D;
  --ink: #0A0F1A;
  --ink-soft: #4A5266;
  --ink-mute: #7A8294;
  --line: #E5DFD2;
  --line-dark: #1E2C44;
  --accent: #B8853E;
  --accent-hover: #9C6F2F;
  --accent-soft: #F1E4CD;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;

  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ================================
   BUTTONS
================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm {
  padding: 11px 20px;
  font-size: 14px;
}
.btn-block { width: 100%; }

/* ================================
   HEADER
================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.footer-brand .brand-mark { width: 56px; height: 56px; }
.brand-name { font-size: 14px; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

/* ================================
   HERO
================================= */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow-light { color: var(--accent); }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.title-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.trust-item span {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* hero visual */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 60px -20px rgba(15, 27, 45, 0.18);
  border: 1px solid var(--line);
  width: 240px;
}
.hero-card-1 {
  top: 30px;
  left: 0;
  transform: rotate(-3deg);
}
.hero-card-2 {
  bottom: 30px;
  right: 0;
  transform: rotate(2deg);
}
.hero-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.hero-card .card-icon svg { width: 22px; height: 22px; }
.hero-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -10px rgba(15, 27, 45, 0.4);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--accent); }

/* ================================
   SECTIONS
================================= */
.section {
  padding: 110px 0;
}
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: var(--bg);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 70px;
}
.section-head-left {
  text-align: left;
  margin: 0 0 70px;
  max-width: 720px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-dark .section-head h2 { color: var(--white); }
.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ================================
   SERVICES
================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.18);
}
.service-card-alt {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--line-dark);
}
.service-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card-alt .service-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service-intro {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.6;
}
.service-card-alt .service-intro { color: rgba(255, 255, 255, 0.7); }
.service-list {
  list-style: none;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}
.service-card-alt .service-list { border-top-color: var(--line-dark); }
.service-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
}
.service-card-alt .service-list li { border-bottom-color: var(--line-dark); }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}
.service-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.service-link:hover {
  border-bottom-color: var(--accent);
}

.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ================================
   PRESTATIONS (photos)
================================= */
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prestation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.prestation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.22);
}
.prestation-card:hover .prestation-photo img {
  transform: scale(1.05);
}

.prestation-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 100%);
  overflow: hidden;
}
.prestation-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  z-index: 1;
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.5;
  z-index: 0;
}
.photo-fallback svg {
  width: 56px;
  height: 56px;
  stroke: currentColor;
}
.prestation-photo.no-photo img { display: none; }

.prestation-body {
  padding: 26px 28px 30px;
  flex: 1;
}
.prestation-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.prestation-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.prestation-card-new {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 50px -25px rgba(184, 133, 62, 0.4);
}
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(184, 133, 62, 0.35);
}

/* ================================
   FEATURES (POURQUOI)
================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.feature {
  background: var(--bg-dark);
  padding: 44px 36px;
  transition: background .25s ease;
}
.feature:hover { background: #142239; }
.feature-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ================================
   SECTORS
================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sector {
  background: var(--bg);
  padding: 36px 28px;
  transition: background .25s ease;
}
.sector:hover { background: var(--white); }
.sector-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}
.sector h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sector p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ================================
   TESTIMONIALS
================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial figcaption strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.testimonial figcaption span {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* ================================
   CONTACT
================================= */
.section-contact {
  background: var(--bg-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.contact-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  line-height: 1.6;
}
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: none; }
.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 600;
}
.contact-info a, .contact-info span:not(.info-label) {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button[type="submit"] { margin-top: 8px; }
.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 4px;
}
.form-success {
  background: #E8F5EC;
  color: #1B5E2A;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  margin-top: 8px;
}

/* ================================
   FOOTER
================================= */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
}
.footer-cols a:hover { color: var(--white); }
.footer-base {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
}
.footer-base .container {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner .btn { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }

  .hero { padding: 50px 0 70px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual { height: 360px; max-width: 420px; margin: 0 auto; width: 100%; }

  .section { padding: 70px 0; }
  .section-head, .section-head-left { margin-bottom: 50px; }

  .services-grid { grid-template-columns: 1fr; }
  .prestations-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-base .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .trust-row { gap: 18px; }
  .trust-item strong { font-size: 22px; }
  .prestations-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .contact-form { padding: 28px 22px; }
  .hero-card { width: 200px; padding: 22px; }
  .hero-card h3 { font-size: 19px; }
}

/* ================================
   REVEAL ANIMATION
================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
