/* KW Security - Styles spécifiques aux pages internes (services, devis, etc.) */

/* ========================================================== */
/* ========== HERO PAGE INTERNE ============================= */
/* ========================================================== */
.page-hero {
  background: linear-gradient(115deg, var(--bleu-deep) 0%, var(--bleu) 60%, var(--bleu-light) 100%);
  color: var(--blanc);
  padding: 70px 5% 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 80px;
  pointer-events: none;
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--alert-light); }
.breadcrumb span:not(.current) { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--alert-light); font-weight: 600; }

.page-hero .eyebrow {
  color: var(--alert-light);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.page-hero h1 em { font-style: italic; color: var(--alert-light); font-weight: 600; }
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 32px;
}
.page-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--blanc);
}

/* ========================================================== */
/* ========== INTRO PAGE SERVICE ============================ */
/* ========================================================== */
.page-intro {
  background: var(--blanc);
}
.page-intro-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: start;
}
.page-intro-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.page-intro-content h2 em { font-style: italic; color: var(--alert); }
.page-intro-content p {
  color: var(--gris-700);
  line-height: 1.75;
  margin-bottom: 18px;
}

.page-intro-features {
  background: var(--bleu-pale);
  border: 1px solid var(--gris-300);
  border-radius: 8px;
  padding: 32px 28px;
  border-top: 3px solid var(--alert);
  position: sticky;
  top: 100px;
}
.page-intro-features h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gris-300);
  letter-spacing: -0.01em;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-list li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bleu);
  color: var(--blanc);
  padding: 4px;
  border-radius: 50%;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}
.feature-list li div {
  display: flex;
  flex-direction: column;
}
.feature-list li strong {
  color: var(--bleu);
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 2px;
}
.feature-list li span {
  color: var(--gris-700);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ========================================================== */
/* ========== SECTIONS DÉTAILLÉES =========================== */
/* ========================================================== */
.page-content {
  background: var(--bleu-pale);
}
.page-content-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 70px;
}
.page-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.page-section.reverse {
  direction: rtl;
}
.page-section.reverse > * {
  direction: ltr;
}
.page-section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--alert);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}
.page-section-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.page-section-text h3 em { font-style: italic; color: var(--alert); }
.page-section-text p {
  color: var(--gris-700);
  line-height: 1.75;
  margin-bottom: 16px;
}
.page-section-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-section-list li {
  padding-left: 22px;
  position: relative;
  color: var(--gris-700);
  line-height: 1.6;
}
.page-section-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--alert);
  font-weight: 700;
}

.page-section-visual {
  aspect-ratio: 4/3;
  background: var(--blanc);
  border: 1px solid var(--gris-300);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 58, 112, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 58, 112, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,58,112,0.08);
}
.page-section-placeholder {
  color: var(--bleu);
  opacity: 0.3;
}
.page-section-placeholder svg {
  width: 90px;
  height: 90px;
}

/* ========================================================== */
/* ========== CTA FIN PAGE =================================== */
/* ========================================================== */
.page-cta {
  background: var(--bleu-deep);
  color: var(--blanc);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--alert);
}
.page-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 94, 216, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(10, 91, 160, 0.2) 0%, transparent 40%);
}
.page-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-cta .eyebrow { color: var(--alert-light); }
.page-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blanc);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-cta h2 em { font-style: italic; color: var(--alert-light); font-weight: 600; }
.page-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-size: 1rem;
}
.page-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================== */
/* ========== AUTRES SERVICES =============================== */
/* ========================================================== */
.autres-services {
  background: var(--blanc);
}
.autres-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.autre-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--bleu-pale);
  border: 1px solid var(--gris-300);
  border-radius: 6px;
  text-decoration: none;
  color: var(--bleu);
  transition: all 0.3s;
  border-left: 3px solid var(--alert);
}
.autre-card:hover {
  background: var(--bleu);
  color: var(--blanc);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,58,112,0.15);
  border-left-color: var(--alert-light);
}
.autre-card-body { flex: 1; }
.autre-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: inherit;
}
.autre-card p {
  font-size: 0.78rem;
  color: var(--gris-500);
  line-height: 1.4;
  margin: 0;
}
.autre-card:hover p { color: rgba(255,255,255,0.8); }
.autre-card-arrow {
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 12px;
  transition: transform 0.3s;
}
.autre-card:hover .autre-card-arrow { transform: translateX(4px); }

/* ========================================================== */
/* ========== PAGE DEVIS ===================================== */
/* ========================================================== */
.devis-page {
  background: var(--bleu-pale);
  padding: 70px 5% 90px;
  min-height: 60vh;
}
.devis-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.devis-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.devis-info h2 em { font-style: italic; color: var(--alert); }
.devis-info > p {
  color: var(--gris-700);
  line-height: 1.7;
  margin-bottom: 30px;
}
.devis-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.devis-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--blanc);
  border: 1px solid var(--gris-300);
  border-radius: 6px;
  border-left: 3px solid var(--alert);
}
.devis-points li svg {
  width: 22px;
  height: 22px;
  color: var(--alert);
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.devis-points li strong {
  display: block;
  color: var(--bleu);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.devis-points li span {
  font-size: 0.85rem;
  color: var(--gris-700);
  line-height: 1.5;
}

/* ========================================================== */
/* ========== PAGE LÉGALE (mentions, confidentialité) ======= */
/* ========================================================== */
.legal-page {
  background: var(--blanc);
  padding: 60px 5% 80px;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu);
  margin: 24px 0 10px;
}
.legal-content p {
  color: var(--gris-700);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 14px 0 14px 24px;
  color: var(--gris-700);
}
.legal-content li {
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-content strong { color: var(--bleu); }
.legal-content a {
  color: var(--alert);
  text-decoration: underline;
}

/* ========================================================== */
/* ========== PAGE 404 ======================================= */
/* ========================================================== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  text-align: center;
  background: var(--bleu-pale);
}
.error-inner {
  max-width: 600px;
}
.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.error-code em { font-style: italic; color: var(--alert); }
.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 14px;
}
.error-page p {
  color: var(--gris-700);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ========================================================== */
/* ========== RESPONSIVE ===================================== */
/* ========================================================== */
@media (max-width: 1024px) {
  .autres-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-intro-grid,
  .page-section,
  .devis-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-section.reverse { direction: ltr; }
  .page-intro-features {
    position: static;
  }
  .page-section-visual {
    aspect-ratio: 16/10;
  }
  .page-cta-actions .btn,
  .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .autres-grid { grid-template-columns: 1fr; }
  .error-code { font-size: 5rem; }
}