/*
Theme Name: SecuriPort Serrurerie
Theme URI: https://example.com/securiport-serrurerie
Author: OpenAI
Author URI: https://openai.com
Description: Thème WordPress classique orienté conversion pour une activité de serrurerie, avec page d'accueil one page, blog et pages de contenu.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: securiport
*/

:root {
  --sp-bg: #0f141a;
  --sp-bg-soft: #151d26;
  --sp-panel: #1b2530;
  --sp-panel-2: #202d3a;
  --sp-line: rgba(255,255,255,.09);
  --sp-text: #f5f7fa;
  --sp-muted: #9fb0c1;
  --sp-accent: #f0b44b;
  --sp-accent-2: #c98b1d;
  --sp-success: #68e1b1;
  --sp-shadow: 0 18px 50px rgba(0,0,0,.28);
  --sp-radius: 22px;
  --sp-radius-sm: 14px;
  --sp-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--sp-text);
  background:
    radial-gradient(circle at top right, rgba(240,180,75,.12), transparent 20%),
    linear-gradient(180deg, #0f141a 0%, #111922 50%, #0d1217 100%);
  line-height: 1.65;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.sp-container {
  width: min(100% - 32px, var(--sp-container));
  margin-inline: auto;
}

.sp-visually-hidden,
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  z-index: 999;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(12px);
  background: rgba(13,18,23,.86);
  border-bottom: 1px solid var(--sp-line);
}

.sp-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--sp-muted);
}

.sp-topline__left,
.sp-topline__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(240,180,75,.18);
  background: rgba(240,180,75,.08);
  border-radius: 999px;
  color: #fff;
}

.sp-phone-link {
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}

.main-navigation {
  border-top: 1px solid var(--sp-line);
}

.main-navigation .menu-toggle {
  display: none;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  padding: 16px 0;
  margin: 0;
}

.main-navigation a {
  color: var(--sp-muted);
  transition: color .2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: #fff;
}

.sp-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--sp-accent), var(--sp-accent-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 28px rgba(201,139,29,.25);
  position: relative;
}

.sp-brand-mark::before,
.sp-brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(17,25,34,.92);
}

.sp-brand-mark::before {
  width: 18px;
  height: 20px;
  border-radius: 9px 9px 6px 6px;
  left: 15px;
  top: 18px;
}

.sp-brand-mark::after {
  width: 14px;
  height: 10px;
  border: 4px solid rgba(17,25,34,.92);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  left: 13px;
  top: 8px;
  background: transparent;
}

.sp-site-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.sp-site-title a {
  color: #fff;
}

.sp-site-tagline {
  margin: 4px 0 0;
  color: var(--sp-muted);
  font-size: .94rem;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 56px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,75,.26) 0, rgba(240,180,75,.06) 35%, transparent 70%);
  filter: blur(4px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: stretch;
}

.hero__content,
.hero__aside {
  position: relative;
}

.hero__content {
  padding: 38px;
  border: 1px solid var(--sp-line);
  border-radius: calc(var(--sp-radius) + 6px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent),
    linear-gradient(135deg, rgba(240,180,75,.08), rgba(255,255,255,.02));
  box-shadow: var(--sp-shadow);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--sp-success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 58ch;
  margin: 0;
  color: #d8e1ea;
  font-size: 1.06rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  padding: 10px 14px;
  border: 1px solid var(--sp-line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: #f0f4f8;
  font-weight: 600;
}

.sp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.sp-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.sp-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.sp-button--primary {
  color: #111922;
  background: linear-gradient(180deg, #f7c15f, #d89a27);
  box-shadow: 0 14px 32px rgba(216,154,39,.24);
}

.sp-button--ghost {
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--sp-line);
}

.sp-aside-card {
  padding: 26px;
  border-radius: calc(var(--sp-radius) + 2px);
  border: 1px solid rgba(240,180,75,.2);
  background: linear-gradient(180deg, rgba(240,180,75,.12), rgba(255,255,255,.03));
  box-shadow: var(--sp-shadow);
  height: 100%;
}

.sp-card-title {
  margin: 0 0 6px;
  font-size: 1.22rem;
}

.sp-card-subtitle {
  margin: 0 0 16px;
  color: var(--sp-muted);
}

.sp-hotline {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
  font-weight: 900;
}

.sp-hotline a {
  color: #fff;
}

.sp-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.sp-mini-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(10,16,23,.52);
  border: 1px solid var(--sp-line);
}

.sp-mini-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.sp-mini-card span {
  color: var(--sp-muted);
  font-size: .95rem;
}

.quick-bar {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--sp-line);
}

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

.quick-bar__item {
  padding: 16px;
  border-radius: 16px;
  background: rgba(8,12,18,.55);
  border: 1px solid var(--sp-line);
}

.quick-bar__label {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-muted);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quick-bar__value {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.15;
}

.section {
  padding: 34px 0;
}

.section--spacious {
  padding: 56px 0;
}

.section__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--sp-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  font-weight: 800;
}

.section__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.section__desc {
  margin: 12px 0 0;
  color: var(--sp-muted);
  max-width: 60ch;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.panel {
  padding: 24px;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  box-shadow: var(--sp-shadow);
}

.panel h3,
.panel h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(240,180,75,.12);
  border: 1px solid rgba(240,180,75,.25);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--sp-accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.tarif-card {
  position: relative;
  overflow: hidden;
}

.tarif-card--featured {
  border-color: rgba(240,180,75,.36);
  background: linear-gradient(180deg, rgba(240,180,75,.12), rgba(255,255,255,.03));
}

.tarif-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(240,180,75,.15);
  border: 1px solid rgba(240,180,75,.28);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
}

.tarif-price {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  margin: 12px 0 12px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.tarif-note {
  color: var(--sp-muted);
  font-size: .95rem;
}

.tarif-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.tarif-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #d8e1ea;
}

.tarif-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--sp-accent);
  font-weight: 900;
}

.zone-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.zone-list li,
.check-list li {
  padding-left: 24px;
  position: relative;
}

.zone-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sp-accent);
  box-shadow: 0 0 0 5px rgba(240,180,75,.14);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.trust-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--sp-line);
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--sp-muted);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(240,180,75,.18), rgba(255,255,255,.05));
  border-radius: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__meta {
  color: var(--sp-muted);
  font-size: .9rem;
}

.post-card h3 {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.post-card p {
  color: #d9e3ec;
  margin: 0 0 16px;
}

.sp-contact-banner {
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(240,180,75,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(240,180,75,.22);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--sp-shadow);
}

.sp-contact-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
}

.sp-footer {
  margin-top: 34px;
  border-top: 1px solid var(--sp-line);
  background: rgba(9,13,19,.6);
}

.sp-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 30px 0;
}

.sp-footer__grid p,
.sp-footer__grid a,
.sp-footer__grid li {
  color: var(--sp-muted);
}

.sp-footer__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.site-main {
  min-height: 48vh;
}

.entry-card,
.entry-content,
.comment-respond,
.comments-area,
.search-form,
.widget {
  padding: 26px;
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  box-shadow: var(--sp-shadow);
}

.entry-header {
  margin-bottom: 24px;
}

.entry-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.entry-meta {
  color: var(--sp-muted);
  font-size: .95rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content a {
  color: var(--sp-accent);
}

.entry-content img {
  border-radius: 18px;
}

.entry-content blockquote {
  margin: 1.8rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--sp-accent);
  background: rgba(240,180,75,.08);
  border-radius: 0 16px 16px 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

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

.blog-hero {
  padding: 38px 0 18px;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pagination .page-numbers {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--sp-line);
  background: rgba(255,255,255,.03);
}

.pagination .current {
  background: rgba(240,180,75,.15);
  border-color: rgba(240,180,75,.3);
}

.search-field,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sp-line);
  background: rgba(255,255,255,.03);
  color: #fff;
}

textarea {
  min-height: 160px;
}

@media (max-width: 1024px) {
  .hero__grid,
  .sp-contact-banner,
  .grid-4,
  .grid-3,
  .grid-2,
  .trust-band,
  .archive-grid,
  .quick-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sp-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sp-topline,
  .sp-footer__grid,
  .section__header,
  .hero__grid,
  .sp-contact-banner,
  .grid-4,
  .grid-3,
  .grid-2,
  .trust-band,
  .archive-grid,
  .quick-bar__grid {
    grid-template-columns: 1fr;
  }

  .sp-topline,
  .sp-footer__grid,
  .section__header {
    display: grid;
  }

  .main-navigation ul {
    gap: 12px 16px;
    padding-top: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero__content,
  .sp-aside-card {
    padding: 24px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .sp-hotline {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}

@media (max-width: 520px) {
  .sp-container {
    width: min(100% - 22px, var(--sp-container));
  }

  .sp-topline__left,
  .sp-topline__right,
  .sp-cta-row,
  .main-navigation ul {
    gap: 10px;
  }

  .sp-button,
  .wp-block-button__link,
  button,
  input[type="submit"] {
    width: 100%;
  }
}
