/*
Theme Name: GT Protection Privée v4
Theme URI: https://gtprotectionprivee.fr
Author: GT Protection Privée
Description: Thème vitrine sur mesure pour GT Protection Privée : sécurité privée, gardiennage et sécurité incendie.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: gt-protection-privee
*/

:root {
  --green-950: #062814;
  --green-900: #07351b;
  --green-700: #12652d;
  --gold-600: #c99508;
  --gold-400: #f2c23a;
  --ink: #132018;
  --muted: #5b665f;
  --line: #dfe6df;
  --surface: #f6f8f3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 40, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(6, 40, 20, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  object-position: left center;
}

.brand span {
  max-width: 150px;
  color: var(--green-950);
  font-size: 0.9rem;
  line-height: 1.05;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #263329;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-menu li {
  margin: 0;
}

.main-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--gold-600);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.header-action,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 12px 24px rgba(7, 53, 27, 0.18);
}

.button.secondary {
  color: var(--green-950);
  border-color: rgba(7, 53, 27, 0.25);
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 4vw, 64px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(6, 40, 20, 0.96) 0%, rgba(7, 53, 27, 0.92) 61%, rgba(255, 255, 255, 0) 61.2%),
    linear-gradient(180deg, #f8faf5 0%, #ffffff 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 52%;
  height: 34%;
  content: "";
  background: linear-gradient(135deg, rgba(242, 194, 58, 0.2), rgba(18, 101, 45, 0.12));
  clip-path: polygon(14% 45%, 100% 0, 100% 100%, 0 100%);
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5.1vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  color: var(--green-950);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 0;
}

.hero-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  color: var(--gold-400);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.hero-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(7, 53, 27, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: min(100%, 420px);
  margin-inline: auto;
}

.hero-panel-text {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-panel-text strong {
  color: var(--green-950);
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero-panel-text span,
.section-heading p,
.service-card p,
.quality-copy p,
.quality-list span,
.contact-copy p {
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  padding: 34px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: var(--green-950);
}

.trust-strip h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.reference-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reference-list li {
  min-height: 72px;
  border: 1px solid rgba(242, 194, 58, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.reference-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 14px;
  color: #fff7d7;
  font-weight: 850;
  text-align: center;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.reference-list a:hover {
  color: var(--white);
  background: rgba(242, 194, 58, 0.12);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 64px);
}

.section.services {
  color: var(--ink) !important;
  background: var(--white) !important;
  background-image: none !important;
}

.section.services::before,
.section.services::after {
  display: none !important;
  content: none !important;
}

.section.services h2,
.section.services h3 {
  color: var(--green-950) !important;
}

.section.services p {
  color: var(--muted) !important;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading .section-kicker,
.quality .section-kicker,
.contact-section .section-kicker {
  color: var(--gold-600);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 244px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 149, 8, 0.36);
  box-shadow: 0 18px 40px rgba(6, 40, 20, 0.1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--green-950);
  font-weight: 950;
  background: #f6dda0;
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--surface);
}

.quality-copy {
  position: sticky;
  top: 112px;
}

.quality-list {
  display: grid;
  gap: 14px;
}

.quality-list div {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 24px;
  border-left: 5px solid var(--gold-600);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 40, 20, 0.08);
}

.quality-list strong {
  color: var(--green-950);
  font-size: 1.08rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 64px);
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f3 100%);
}

.contact-copy {
  max-width: 640px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--green-950);
  font-weight: 800;
}

.contact-details a {
  color: var(--gold-600);
}

.form-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice.success {
  color: #063d1c;
  border: 1px solid rgba(18, 101, 45, 0.28);
  background: #e8f5ea;
}

.form-notice.error {
  color: #7a230e;
  border: 1px solid rgba(122, 35, 14, 0.24);
  background: #fff0e9;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(7, 53, 27, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green-950);
  font-weight: 800;
}

.form-website {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd9cf;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(242, 194, 58, 0.28);
  border-color: var(--gold-600);
}

.contact-form button {
  width: 100%;
  min-height: 54px;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--green-950);
}

.footer-brand img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  object-position: left center;
}

.footer-brand span {
  max-width: 150px;
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.08;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.site-footer a {
  color: var(--gold-400);
  font-weight: 800;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-page {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 64px);
  color: var(--ink);
  background: var(--white);
  background-image: none !important;
}

.legal-page::before,
.legal-page::after {
  display: none !important;
  content: none !important;
}

.legal-content {
  max-width: 980px;
  margin-inline: auto;
}

.legal-content h1 {
  max-width: 900px;
  margin-bottom: 34px;
  color: var(--green-950);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.legal-content h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1.03rem;
}

.legal-content strong {
  color: var(--green-950);
}

.legal-content ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .quality,
  .contact-section,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 40, 20, 0.96) 0%, rgba(7, 53, 27, 0.92) 58%, rgba(248, 250, 245, 1) 58.2%),
      #f8faf5;
  }

  .hero-panel {
    max-width: 560px;
    margin-inline: auto;
  }

  .reference-list,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
    gap: 12px;
  }

  .brand img {
    width: 50px;
    height: 48px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    max-width: 104px;
    font-size: 0.76rem;
  }

  .header-action {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .main-nav {
    gap: 18px;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .reference-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
