/* ===== GOPROTECT.FR — CSS ===== */

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

:root {
  --red: #e50000;
  --white: #ffffff;
  --light: #f8f8f8;
  --light-dark: #eeeeee;
  --light-grey: #dddddd;
  --dark-grey: #cccccc;
  --text-light: #333333;
  --text-muted-light: #666666;

  --black: #1a1a1a;
  --dark: #222222;
  --grey: #333333;
  --text-dark: #f0f0f0;
  --text-muted-dark: #aaaaaa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--text-light);
  line-height: 1.6;
}

body.dark-mode {
  background: var(--black);
  color: var(--text-dark);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-grey);
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark-mode header {
  background: rgba(26,26,26,0.95);
  border-bottom: 1px solid #333;
}

.logo img { max-width: 180px; height: auto; }
.logo .logo-dark { display: inline; }
.logo .logo-light { display: none; }
body.dark-mode .logo .logo-dark { display: none; }
body.dark-mode .logo .logo-light { display: inline; }

nav { display: flex; gap: 2rem; align-items: center; }

nav a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-transform: uppercase;
}

body.dark-mode nav a { color: var(--text-muted-dark); }

nav a:hover, nav a.active { color: var(--text-light); }
body.dark-mode nav a:hover, body.dark-mode nav a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
}

.nav-cta:hover { background: #c00 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
}

body.dark-mode .hamburger span {
  background: var(--text-dark);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  margin-left: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.theme-toggle:hover { color: var(--red); }
body.dark-mode .theme-toggle { color: var(--text-dark); }
body.dark-mode .theme-toggle:hover { color: var(--red); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 50%, rgba(255, 240, 240, 1) 100%);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 50%, #200000 100%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

body.dark-mode .hero h1 { color: var(--text-dark); }

.hero h1 span { color: var(--red); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.8;
}

body.dark-mode .hero p { color: var(--text-muted-dark); }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #c00; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--dark-grey);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-block;
}

body.dark-mode .btn-secondary { color: var(--text-dark); border-color: #555; }
body.dark-mode .btn-secondary:hover { border-color: #777; background: rgba(255,255,255,0.05); }

.btn-secondary:hover { border-color: var(--light-grey); background: rgba(0,0,0,0.05); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-grey);
}

body.dark-mode .hero-stats { border-top: 1px solid #333; }

.stat-item { text-align: left; }
.stat-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-item .label {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .stat-item .label { color: var(--text-muted-dark); }

/* ===== SECTIONS ===== */
section { padding: 90px 5%; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

body.dark-mode .section-title { color: var(--text-dark); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  max-width: 600px;
  line-height: 1.8;
}

body.dark-mode .section-subtitle { color: var(--text-muted-dark); }

/* ===== SERVICES ===== */
.services { background: var(--light-dark); }
body.dark-mode .services { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #bbb;
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

body.dark-mode .service-card { background: var(--grey); border-color: #444; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.3s;
}

.service-card:hover { border-color: #999; transform: translateY(-3px); }
body.dark-mode .service-card:hover { border-color: #666; }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(229,0,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

body.dark-mode .service-card h3 { color: var(--text-dark); }

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

body.dark-mode .service-card p { color: var(--text-muted-dark); }

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== WHY US ===== */
.why-us { background: var(--light); }
body.dark-mode .why-us { background: var(--black); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.why-items { display: flex; flex-direction: column; gap: 1.5rem; }

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.why-icon {
  width: 42px; height: 42px;
  min-width: 42px;
  background: rgba(229,0,0,0.1);
  border: 1px solid rgba(229,0,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

body.dark-mode .why-item h4 { color: var(--text-dark); }

.why-item p {
  font-size: 0.88rem;
  color: var(--text-muted-light);
  line-height: 1.7;
}

body.dark-mode .why-item p { color: var(--text-muted-dark); }

.why-visual {
  background: var(--white);
  border: 1px solid #bbb;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

body.dark-mode .why-visual { background: var(--grey); border-color: #444; }

.why-visual .big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.why-visual .big-label {
  font-size: 1rem;
  color: var(--text-muted-light);
  margin-top: 0.5rem;
}

body.dark-mode .why-visual .big-label { color: var(--text-muted-dark); }

.why-visual .divider {
  height: 1px;
  background: #ccc;
  margin: 1.5rem 0;
}

body.dark-mode .why-visual .divider { background: #444; }

.badge-list { display: flex; flex-direction: column; gap: 1rem; text-align: left; }

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

body.dark-mode .badge-item { color: var(--text-muted-dark); }

.badge-item .check {
  color: var(--red);
  font-weight: 700;
}

/* ===== SECTEURS ===== */
.secteurs { background: var(--light-dark); }
body.dark-mode .secteurs { background: var(--dark); }

.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.secteur-item {
  background: var(--white);
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

body.dark-mode .secteur-item { background: var(--grey); border-color: #444; }

.secteur-item:hover { border-color: var(--red); }

.secteur-item .icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.secteur-item p { font-size: 0.85rem; color: var(--text-muted-light); font-weight: 500; }

body.dark-mode .secteur-item p { color: var(--text-muted-dark); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 240, 240, 1), rgba(255, 220, 220, 1));
  border-top: 1px solid rgba(255, 150, 150, 0.5);
  border-bottom: 1px solid rgba(255, 150, 150, 0.5);
  text-align: center;
  padding: 80px 5%;
}

body.dark-mode .cta-banner {
  background: linear-gradient(135deg, #200000, var(--black));
  border-top: 1px solid rgba(229,0,0,0.2);
  border-bottom: 1px solid rgba(229,0,0,0.2);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}

body.dark-mode .cta-banner h2 { color: var(--text-dark); }

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
}

body.dark-mode .cta-banner p { color: var(--text-muted-dark); }

/* ===== CONTACT ===== */
.contact-section { background: var(--light); }
body.dark-mode .contact-section { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px; height: 42px;
  min-width: 42px;
  background: rgba(229,0,0,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h4 { font-size: 0.85rem; color: var(--text-muted-light); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; color: var(--text-light); font-weight: 500; }
.contact-item a { color: var(--text-light); text-decoration: none; }
.contact-item a:hover { color: var(--red); }

body.dark-mode .contact-item h4 { color: var(--text-muted-dark); }
body.dark-mode .contact-item p { color: var(--text-dark); }
body.dark-mode .contact-item a { color: var(--text-dark); }

form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

input, textarea, select {
  background: var(--white);
  border: 1px solid #bbb;
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
  background: var(--grey);
  color: var(--text-dark);
  border-color: #444;
}

input:focus, textarea:focus, select:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: #999; }
body.dark-mode input::placeholder, body.dark-mode textarea::placeholder { color: #666; }
textarea { resize: vertical; min-height: 130px; }

/* ===== FOOTER ===== */
footer {
  background: var(--light-dark);
  border-top: 1px solid #ccc;
  padding: 60px 5% 30px;
}

body.dark-mode footer { background: var(--dark); border-top-color: #333; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 1.2rem;
}

body.dark-mode .footer-col h4 { color: var(--text-muted-dark); }

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted-light);
  line-height: 1.8;
}

body.dark-mode .footer-col p { color: var(--text-muted-dark); }

.footer-col a {
  display: block;
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-light); }

body.dark-mode .footer-col a { color: var(--text-muted-dark); }
body.dark-mode .footer-col a:hover { color: var(--white); }

.footer-logo img { height: 40px; margin-bottom: 1rem; }

.footer-partners {
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
  margin-top: 1rem;
}
body.dark-mode .footer-partners { border-top-color: #333; }
.footer-partners h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.partners-list { display: flex; flex-direction: column; gap: 0.5rem; }
.partners-list a { font-size: 0.82rem; color: #888; text-decoration: none; transition: color 0.2s; }
.partners-list a:hover { color: var(--red, #e50000); }
.partners-list a strong { color: #aaa; font-weight: 600; }
body.dark-mode .partners-list a strong { color: #ccc; }

.footer-credit {
  text-align: center;
  padding: 1rem 0 0;
  font-size: 0.82rem;
  color: #888;
}
.footer-credit a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--red, #e50000); }

.footer-bottom {
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

body.dark-mode .footer-partners {
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
  margin-top: 1rem;
}
body.dark-mode .footer-partners { border-top-color: #333; }
.footer-partners h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.partners-list { display: flex; flex-direction: column; gap: 0.5rem; }
.partners-list a { font-size: 0.82rem; color: #888; text-decoration: none; transition: color 0.2s; }
.partners-list a:hover { color: var(--red, #e50000); }
.partners-list a strong { color: #aaa; font-weight: 600; }
body.dark-mode .partners-list a strong { color: #ccc; }

.footer-credit {
  text-align: center;
  padding: 1rem 0 0;
  font-size: 0.82rem;
  color: #888;
}
.footer-credit a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--red, #e50000); }

.footer-bottom { border-top-color: #333; }

.footer-bottom p { font-size: 0.82rem; color: #888; }

/* ===== PAGE HERO (sous-pages) ===== */
.page-hero {
  padding: 130px 5% 70px;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 100%);
  border-bottom: 1px solid #ccc;
}

body.dark-mode .page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
  border-bottom-color: #333;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}

body.dark-mode .page-hero h1 { color: var(--text-dark); }

.page-hero h1 span { color: var(--red); }

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted-light);
  max-width: 600px;
  line-height: 1.8;
}

body.dark-mode .page-hero p { color: var(--text-muted-dark); }

/* ===== DETAIL PAGE ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.detail-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

body.dark-mode .detail-content h2 { color: var(--text-dark); }

.detail-content p {
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

body.dark-mode .detail-content p { color: var(--text-muted-dark); }

.prestations-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.prestations-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

body.dark-mode .prestations-list li { color: var(--text-muted-dark); }

.prestations-list li::before {
  content: '▸';
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-box {
  background: var(--white);
  border: 1px solid #bbb;
  border-radius: 12px;
  padding: 2rem;
}

body.dark-mode .info-box { background: var(--grey); border-color: #444; }

.info-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #aaa;
}

body.dark-mode .info-box h3 { color: var(--text-dark); border-bottom-color: #444; }

.info-box .step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.step-num {
  width: 28px; height: 28px;
  min-width: 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.step-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }
.step-text p { font-size: 0.82rem; color: var(--text-muted-light); }

body.dark-mode .step-text h4 { color: var(--text-dark); }
body.dark-mode .step-text p { color: var(--text-muted-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .why-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 700px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--light-grey);
    gap: 1rem;
  }
  body.dark-mode nav.open {
    background: var(--dark);
    border-bottom-color: #333;
  }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
}
