/*
Theme Name: SOFISTECK Solutions
Theme URI: https://www.sofisteck.ma
Author: SOFISTECK SOLUTIONS
Author URI: https://www.sofisteck.ma
Description: Thème WordPress sur mesure pour SOFISTECK SOLUTIONS — partenaire en transformation digitale et solutions IT. Design sombre inspiré de la charte "Connecter. Organiser. Performer." avec dégradés violet/bleu et motif circuit.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sofisteck
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --st-bg:            #070b1c;
  --st-bg-2:          #0b1230;
  --st-surface:       #0f1836;
  --st-surface-2:     #131e44;
  --st-border:        rgba(124, 92, 255, 0.18);
  --st-border-strong: rgba(124, 92, 255, 0.35);

  --st-primary:       #6d5cff;
  --st-primary-2:     #9b5cff;
  --st-cyan:          #37c6ff;
  --st-pink:          #ec4bd0;

  --st-text:          #eef1ff;
  --st-text-soft:     #b7bede;
  --st-text-muted:    #7f88b3;

  --st-grad:          linear-gradient(120deg, #37c6ff 0%, #6d5cff 45%, #b14bec 100%);
  --st-grad-soft:     linear-gradient(120deg, rgba(55,198,255,.16), rgba(155,92,255,.16));

  --st-radius:        16px;
  --st-radius-sm:     10px;
  --st-shadow:        0 20px 50px rgba(3, 6, 20, 0.55);
  --st-container:     1180px;

  --st-font: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--st-font);
  background: var(--st-bg);
  color: var(--st-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--st-cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.st-container {
  width: 100%;
  max-width: var(--st-container);
  margin: 0 auto;
  padding: 0 24px;
}

.st-grad-text {
  background: var(--st-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* =========================================================
   Buttons
   ========================================================= */
.st-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.st-btn-primary {
  background: var(--st-grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(109, 92, 255, .35);
}
.st-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 40px rgba(109,92,255,.5); }
.st-btn-ghost {
  background: transparent;
  color: var(--st-text);
  border: 1px solid var(--st-border-strong);
}
.st-btn-ghost:hover { border-color: var(--st-cyan); color: #fff; transform: translateY(-2px); }

/* =========================================================
   Header / Nav
   ========================================================= */
.st-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--st-border);
}
.st-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.st-brand { display: flex; align-items: center; gap: 12px; }
.st-brand svg, .st-brand img { height: 40px; width: auto; }
.st-brand .st-brand-logo { height: 42px; }
.st-brand .st-brand-logo-footer { height: 54px; }
.custom-logo { height: 42px; width: auto; }
.st-brand-name { font-weight: 700; font-size: 19px; letter-spacing: .04em; color: #fff; }
.st-brand-name small { display: block; font-size: 9px; letter-spacing: .55em; color: var(--st-cyan); font-weight: 500; }

.st-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.st-nav a { color: var(--st-text-soft); font-size: 15px; font-weight: 500; }
.st-nav a:hover, .st-nav .current-menu-item > a { color: #fff; }

.st-header-cta { display: flex; align-items: center; gap: 16px; }

.st-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--st-border);
}
.st-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: .25s; }

/* =========================================================
   Sections
   ========================================================= */
.st-section { padding: 96px 0; position: relative; }
.st-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.st-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--st-cyan); font-weight: 600; margin-bottom: 14px;
}
.st-section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.st-section-head p { color: var(--st-text-soft); font-size: 17px; }

/* =========================================================
   Hero
   ========================================================= */
.st-hero {
  position: relative;
  padding: 120px 0 110px;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(155,92,255,.28), transparent 60%),
    radial-gradient(900px 500px at 5% 20%, rgba(55,198,255,.18), transparent 55%),
    linear-gradient(180deg, var(--st-bg-2), var(--st-bg));
  overflow: hidden;
}
.st-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,92,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(680px 480px at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(680px 480px at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.st-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.st-hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 20px; }
.st-hero-tagline {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--st-text-soft); margin-bottom: 22px; font-weight: 500;
}
.st-hero-tagline b { color: var(--st-cyan); font-weight: 600; }
.st-hero-lead { font-size: 19px; color: var(--st-text-soft); max-width: 560px; margin-bottom: 32px; }
.st-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.st-hero-address {
  display: inline-flex; gap: 10px; align-items: flex-start;
  color: var(--st-text-muted); font-size: 14px;
}
.st-hero-address svg { flex: 0 0 auto; margin-top: 2px; }

.st-hero-card {
  position: relative;
  background: linear-gradient(160deg, var(--st-surface), var(--st-surface-2));
  border: 1px solid var(--st-border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--st-shadow);
}
.st-hero-card .st-logo-badge {
  width: 120px; height: 120px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--st-border-strong);
  box-shadow: 0 0 0 6px rgba(109, 92, 255, .12);
}
.st-hero-card .st-logo-badge svg,
.st-hero-card .st-logo-badge img { width: 86px; height: 86px; object-fit: contain; }
.st-hero-values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.st-hero-values li { display: flex; gap: 14px; align-items: flex-start; }
.st-hero-values .st-dot {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--st-grad); color: #fff; font-weight: 700;
}
.st-hero-values strong { display: block; color: #fff; }
.st-hero-values span { color: var(--st-text-muted); font-size: 14px; }

/* =========================================================
   About / Qui sommes-nous
   ========================================================= */
.st-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.st-check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.st-check-list li { display: flex; gap: 12px; align-items: center; color: var(--st-text); font-weight: 500; }
.st-check-list .st-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(55,198,255,.14); border: 1px solid var(--st-border-strong); color: var(--st-cyan);
}
.st-about-panel {
  background: linear-gradient(160deg, var(--st-surface), rgba(15,24,54,.4));
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: 34px;
}
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.st-stat { text-align: center; }
.st-stat b { display: block; font-size: 30px; }
.st-stat span { color: var(--st-text-muted); font-size: 13px; }

/* =========================================================
   Cards grid (values + services)
   ========================================================= */
.st-cards { display: grid; gap: 22px; }
.st-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.st-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.st-card {
  position: relative;
  background: linear-gradient(160deg, var(--st-surface), rgba(15,24,54,.35));
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.st-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--st-grad); opacity: 0; transition: opacity .25s ease;
}
.st-card:hover { transform: translateY(-6px); border-color: var(--st-border-strong); box-shadow: var(--st-shadow); }
.st-card:hover::before { opacity: 1; }
.st-card-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--st-grad-soft); border: 1px solid var(--st-border);
  color: var(--st-cyan);
}
.st-card h3 { font-size: 18px; margin-bottom: 10px; }
.st-card p { color: var(--st-text-soft); font-size: 14.5px; margin: 0; }
.st-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.st-card ul li { position: relative; padding-left: 18px; color: var(--st-text-soft); font-size: 14px; }
.st-card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--st-cyan);
}

/* value card variant */
.st-value-num {
  font-size: 13px; letter-spacing: .2em; color: var(--st-primary-2); font-weight: 700;
}

/* =========================================================
   Why choose (feature strip)
   ========================================================= */
.st-why {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(155,92,255,.16), transparent 60%),
    var(--st-bg-2);
  border-top: 1px solid var(--st-border);
  border-bottom: 1px solid var(--st-border);
}
.st-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.st-why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.st-why-list li {
  display: flex; gap: 14px; align-items: center;
  background: rgba(15,24,54,.6); border: 1px solid var(--st-border);
  padding: 16px 18px; border-radius: var(--st-radius-sm); font-weight: 500;
}
.st-why-list .st-check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--st-grad); color: #fff; }

/* =========================================================
   Contact
   ========================================================= */
.st-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.st-contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.st-contact-item .st-card-icon { margin-bottom: 0; width: 46px; height: 46px; }
.st-contact-item b { display: block; color: #fff; margin-bottom: 2px; }
.st-contact-item a, .st-contact-item span { color: var(--st-text-soft); }

.st-form { display: grid; gap: 16px; }
.st-form input, .st-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--st-radius-sm);
  background: rgba(7,11,28,.6); border: 1px solid var(--st-border);
  color: #fff; font-family: inherit; font-size: 15px;
}
.st-form input:focus, .st-form textarea:focus { outline: none; border-color: var(--st-cyan); }
.st-form textarea { min-height: 130px; resize: vertical; }

/* Director / dirigeant */
.st-director {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--st-surface), var(--st-surface-2));
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: var(--st-shadow);
  position: relative;
  overflow: hidden;
}
.st-director::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--st-grad);
}
.st-director-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-border-strong);
  box-shadow: 0 0 0 6px rgba(109, 92, 255, .10);
}
.st-director-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,18,48,.55));
  pointer-events: none;
}
.st-director-photo img { width: 100%; height: 260px; object-fit: cover; object-position: center top; display: block; }
.st-director-info .st-eyebrow { margin-bottom: 10px; }
.st-director-quote { font-size: 18px; font-style: italic; color: var(--st-text); margin-bottom: 16px; line-height: 1.5; }
.st-director-name { display: block; font-size: 18px; color: #fff; }
.st-director-role { display: block; color: var(--st-cyan); font-size: 14px; margin-bottom: 16px; }
.st-director-btn { font-size: 13px; padding: 10px 18px; }

@media (max-width: 640px) {
  .st-director { grid-template-columns: 1fr; text-align: center; }
  .st-director::before { width: 100%; height: 4px; }
  .st-director-photo img { height: 300px; }
  .st-director-btn { width: 100%; justify-content: center; }
}

.st-cta-banner {
  margin-top: 20px;
  background: var(--st-grad);
  border-radius: var(--st-radius);
  padding: 40px;
  text-align: center;
}
.st-cta-banner h3 { font-size: 26px; color: #fff; }
.st-cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 22px; }
.st-cta-banner .st-btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.st-cta-banner .st-btn-ghost:hover { background: rgba(255,255,255,.14); }

/* =========================================================
   Footer
   ========================================================= */
.st-footer {
  background: var(--st-bg);
  border-top: 1px solid var(--st-border);
  padding: 60px 0 30px;
}
.st-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.st-footer p { color: var(--st-text-muted); font-size: 14px; }
.st-footer h4 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.st-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.st-footer ul a { color: var(--st-text-soft); font-size: 14px; }
.st-social { display: flex; gap: 12px; margin-top: 18px; }
.st-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--st-surface); border: 1px solid var(--st-border); color: var(--st-text-soft);
}
.st-social a:hover { color: #fff; border-color: var(--st-cyan); transform: translateY(-2px); }
.st-footer-bottom {
  border-top: 1px solid var(--st-border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--st-text-muted); font-size: 13px;
}

/* =========================================================
   Generic content (page/single/archive)
   ========================================================= */
.st-page { padding: 70px 0; }
.st-page-header { text-align: center; margin-bottom: 40px; }
.st-page-header h1 { font-size: clamp(30px, 4vw, 44px); }
.st-entry {
  max-width: 820px; margin: 0 auto; color: var(--st-text-soft);
}
.st-entry h1, .st-entry h2, .st-entry h3 { color: #fff; margin-top: 1.6em; }
.st-entry img { border-radius: var(--st-radius-sm); margin: 1.5em 0; }
.st-entry a { text-decoration: underline; }
.st-entry blockquote {
  border-left: 3px solid var(--st-primary); margin: 1.5em 0; padding: 4px 20px;
  color: var(--st-text); background: rgba(15,24,54,.5);
}
.st-entry code { background: rgba(15,24,54,.8); padding: 2px 6px; border-radius: 6px; }
.st-post-meta { color: var(--st-text-muted); font-size: 14px; margin-bottom: 30px; text-align: center; }

.st-posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.st-post-card {
  background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s;
}
.st-post-card:hover { transform: translateY(-5px); border-color: var(--st-border-strong); }
.st-post-card .st-post-body { padding: 22px; }
.st-post-card h3 { font-size: 18px; }
.st-post-card h3 a { color: #fff; }

.st-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.st-pagination a, .st-pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--st-border); color: var(--st-text-soft);
}
.st-pagination .current { background: var(--st-grad); color: #fff; border-color: transparent; }

/* WP core alignment / caption helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 1em auto; }
.wp-caption-text, .gallery-caption { color: var(--st-text-muted); font-size: 13px; text-align: center; }
.sticky, .bypostauthor { display: block; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .st-hero-grid, .st-about-grid, .st-why-grid, .st-contact-grid { grid-template-columns: 1fr; }
  .st-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .st-footer-grid { grid-template-columns: 1fr 1fr; }
  .st-posts { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
  .st-nav, .st-header-cta .st-btn { display: none; }
  .st-burger { display: block; }
  .st-nav.is-open {
    display: block; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--st-bg-2); border-bottom: 1px solid var(--st-border); padding: 18px 24px;
  }
  .st-nav.is-open ul { flex-direction: column; gap: 16px; }
  .st-section { padding: 64px 0; }
  .st-cards.cols-3, .st-cards.cols-4 { grid-template-columns: 1fr; }
  .st-footer-grid, .st-posts { grid-template-columns: 1fr; }
  .st-footer-bottom { flex-direction: column; }
}
