/* ===== SAFEMARK - SITE WEB COMPLET ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

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

:root {
  --yellow: #FFD600;
  --yellow-dark: #C8A800;
  --yellow-glow: rgba(255,214,0,0.08);
  --dark: #111111;
  --darker: #0A0A0A;
  --card: #1A1A1A;
  --card2: #1E1E1E;
  --card-hover: #222222;
  --red: #D63030;
  --red-bg: #1A0808;
  --white: #FFFFFF;
  --warm-gray: #B0A090;
  --mid-gray: #777;
  --dark-gray: #444;
}

html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--darker); color: var(--white); line-height: 1.7; }

a { color: var(--yellow); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--white); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  background: rgba(10,10,10,0.97); backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--yellow);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 54px; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a {
  color: var(--white); font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; padding: 5px 0;
  border-bottom: 2px solid transparent; transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.nav-cta {
  background: var(--yellow); color: var(--dark); padding: 10px 22px; border-radius: 4px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.5px; border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--white); color: var(--dark); }
.nav-phone { color: var(--warm-gray); font-size: 13px; font-weight: 600; }
.nav-phone strong { color: var(--yellow); }

.mobile-menu { display: none; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--darker) 0%, #1A1400 40%, #0F0F00 70%, var(--darker) 100%);
  position: relative; overflow: hidden;
}
.hero.hero-bg {
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,214,0,0.05) 0%, transparent 65%);
  border-radius: 50%; z-index: 2;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.3; z-index: 2;
}
.hero-content { max-width: 650px; z-index: 3; position: relative; }
.hero-tag {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 7px 18px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 22px; border-radius: 2px;
  animation: fadeInUp 0.8s ease;
}
.hero h1 {
  font-family: 'Oswald', sans-serif; font-size: 56px; font-weight: 700;
  line-height: 1.1; margin-bottom: 22px; animation: fadeInUp 0.8s ease 0.15s both;
}
.hero h1 span { color: var(--yellow); }
.hero-text {
  font-size: 19px; color: var(--warm-gray); margin-bottom: 35px;
  max-width: 520px; font-weight: 300; animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.45s both; }
.btn-primary {
  display: inline-block; background: var(--yellow); color: var(--dark); padding: 15px 34px;
  font-weight: 700; font-size: 15px; border-radius: 4px; letter-spacing: 0.5px;
  transition: all 0.3s; border: 2px solid var(--yellow);
}
.btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,214,0,0.15); }
.btn-secondary {
  display: inline-block; border: 2px solid var(--yellow); color: var(--yellow);
  padding: 15px 34px; font-weight: 700; font-size: 15px; border-radius: 4px;
}
.btn-secondary:hover { background: var(--yellow); color: var(--dark); }

.hero-stats {
  display: flex; gap: 45px; margin-top: 50px; padding-top: 30px;
  border-top: 1px solid rgba(255,214,0,0.12);
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stat strong {
  font-family: 'Oswald', sans-serif; font-size: 38px;
  color: var(--yellow); display: block; line-height: 1;
}
.hero-stat span { font-size: 13px; color: var(--warm-gray); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 140px 0 50px;
  background: linear-gradient(160deg, var(--darker) 0%, #1A1400 50%, var(--darker) 100%);
  border-bottom: 1px solid rgba(255,214,0,0.1);
}
.page-header h1 {
  font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 700;
  letter-spacing: 1px;
}
.page-header h1 span { color: var(--yellow); }
.page-header p { color: var(--warm-gray); font-size: 17px; margin-top: 10px; max-width: 600px; }
.breadcrumb { font-size: 13px; color: var(--mid-gray); margin-bottom: 15px; }
.breadcrumb a { color: var(--mid-gray); }
.breadcrumb a:hover { color: var(--yellow); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-dark { background: var(--dark); }
.section-darker { background: var(--darker); }
.section-title {
  font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: 1px;
}
.section-title span { color: var(--yellow); }
.section-sub { color: var(--warm-gray); font-size: 16px; margin-bottom: 45px; max-width: 600px; }

/* ===== LEGAL BOX ===== */
.legal-box {
  background: var(--red-bg); border-left: 5px solid var(--red);
  padding: 30px 35px; border-radius: 4px; margin: 30px 0;
}
.legal-box h3 { color: var(--red); font-family: 'Oswald', sans-serif; font-size: 19px; margin-bottom: 12px; letter-spacing: 0.5px; }
.legal-box p { font-size: 15px; color: var(--white); line-height: 1.8; }
.legal-box .ref { color: var(--warm-gray); font-size: 13px; font-style: italic; margin-top: 10px; }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 22px; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card-grid-2 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--card); padding: 30px; border-radius: 6px;
  border: 1px solid rgba(255,214,0,0.06); transition: all 0.3s;
}
.card:hover { border-color: rgba(255,214,0,0.2); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,0,0,0.3); }
.card .icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { font-family: 'Oswald', sans-serif; font-size: 18px; margin-bottom: 10px; letter-spacing: 0.3px; }
.card p { color: var(--warm-gray); font-size: 14px; line-height: 1.6; }

/* ===== BEFORE/AFTER ===== */
.ba-item { margin-bottom: 40px; }
.ba-label { font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--yellow); margin-bottom: 12px; letter-spacing: 1px; }
.ba-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-photo { position: relative; border-radius: 6px; overflow: hidden; }
.ba-photo img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.5s; }
.ba-photo:hover img { transform: scale(1.03); }
.ba-photo .tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 16px; font-size: 12px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 3px;
}
.tag-avant { background: var(--red); color: var(--white); }
.tag-apres { background: var(--yellow); color: var(--dark); }

/* ===== PRICING ===== */
.tarif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.tarif-card {
  background: var(--card); border-radius: 8px; padding: 35px 28px;
  text-align: center; border: 1px solid rgba(255,214,0,0.06); transition: all 0.3s;
}
.tarif-card:hover { border-color: rgba(255,214,0,0.2); }
.tarif-card.featured { border: 2px solid var(--yellow); position: relative; }
.tarif-card.featured::before {
  content: 'POPULAIRE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--dark); padding: 4px 18px; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; border-radius: 3px;
}
.tarif-type { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--warm-gray); margin-bottom: 18px; letter-spacing: 1px; }
.tarif-price { font-family: 'Oswald', sans-serif; font-size: 52px; color: var(--yellow); font-weight: 700; line-height: 1; }
.tarif-price small { font-size: 18px; color: var(--warm-gray); font-weight: 400; }
.tarif-desc { color: var(--warm-gray); font-size: 14px; margin-top: 8px; }
.tarif-list { text-align: left; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.05); }
.tarif-list li { list-style: none; padding: 7px 0; font-size: 14px; color: var(--white); }
.tarif-list li::before { content: '▸ '; color: var(--yellow); }

/* ===== WHY CARDS ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.why-card { text-align: center; padding: 30px 15px; }
.why-card .number { font-family: 'Oswald', sans-serif; font-size: 48px; color: var(--yellow); font-weight: 700; line-height: 1; }
.why-card h4 { font-family: 'Oswald', sans-serif; font-size: 16px; margin: 12px 0 8px; }
.why-card p { color: var(--warm-gray); font-size: 13px; }

/* ===== LAW ARTICLE ===== */
.law-article {
  background: var(--card); padding: 30px; border-radius: 6px; margin-bottom: 25px;
  border-left: 4px solid var(--yellow);
}
.law-article h3 { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--yellow); margin-bottom: 10px; }
.law-article p { color: var(--white); font-size: 14px; line-height: 1.8; }
.law-article .source { color: var(--warm-gray); font-size: 12px; font-style: italic; margin-top: 10px; }

/* ===== CONTACT ===== */
.contact-cta {
  background: var(--yellow); padding: 60px 0; text-align: center;
}
.contact-cta h2 { font-family: 'Oswald', sans-serif; font-size: 36px; color: var(--dark); margin-bottom: 10px; }
.contact-cta p { color: var(--dark); font-size: 16px; margin-bottom: 25px; opacity: 0.8; }
.contact-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.contact-item { font-size: 18px; font-weight: 700; color: var(--dark); }
.contact-item span { font-weight: 400; font-size: 13px; display: block; opacity: 0.7; }

/* ===== FOOTER ===== */
footer {
  background: var(--darker); padding: 40px 0 25px;
  border-top: 2px solid var(--yellow);
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { color: var(--mid-gray); font-size: 13px; line-height: 1.6; }
.footer-links h4 { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--yellow); margin-bottom: 12px; letter-spacing: 1px; }
.footer-links a { display: block; color: var(--mid-gray); font-size: 13px; padding: 3px 0; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--dark-gray); font-size: 12px; }

/* ===== CONTENT TEXT ===== */
.content-text { max-width: 800px; }
.content-text h2 {
  font-family: 'Oswald', sans-serif; font-size: 26px; color: var(--yellow);
  margin: 40px 0 15px; letter-spacing: 0.5px;
}
.content-text h2:first-child { margin-top: 0; }
.content-text p { font-size: 15px; line-height: 1.8; margin-bottom: 15px; color: var(--white); }
.content-text strong { color: var(--yellow); }
.content-text ul { margin: 15px 0; padding-left: 0; }
.content-text ul li {
  list-style: none; padding: 6px 0 6px 20px; font-size: 15px;
  position: relative; color: var(--white);
}
.content-text ul li::before { content: '▸'; color: var(--yellow); position: absolute; left: 0; }

/* ===== STEPS (Comment ça marche) ===== */
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
}
.step-card {
  background: var(--card); border-radius: 8px; padding: 30px 22px; text-align: center;
  border: 1px solid rgba(255,214,0,0.06); flex: 1; position: relative;
  transition: all 0.3s;
}
.step-card:hover { border-color: rgba(255,214,0,0.2); transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.3); }
.step-number {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--dark); width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px;
}
.step-icon { font-size: 36px; margin: 12px 0 10px; }
.step-card h3 { font-family: 'Oswald', sans-serif; font-size: 17px; margin-bottom: 8px; color: var(--yellow); letter-spacing: 0.3px; }
.step-card p { color: var(--warm-gray); font-size: 13px; line-height: 1.5; }
.step-arrow {
  color: var(--yellow); font-size: 28px; font-weight: 700; align-self: center;
  padding: 0 8px; flex-shrink: 0; opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.98);
    padding: 20px 30px 25px; gap: 0; border-bottom: 2px solid var(--yellow);
    animation: slideDown 0.3s ease;
  }
  .nav-links.mobile-open a {
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 16px;
  }
  .nav-links.mobile-open .nav-cta {
    margin-top: 10px; text-align: center; display: block;
  }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 36px; }
  .hero-text { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 25px; }
  .hero-buttons { flex-direction: column; }
  .section-title { font-size: 28px; }
  .ba-photo img { height: 200px; }
  .tarif-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 32px; }
  .container { padding: 0 20px; }
  .steps-grid { flex-direction: column; gap: 20px; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PRESTATIONS GALLERY RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-dark [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .section-dark [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
