/*
Theme Name:   Modernize Agency
Theme URI:    https://modernize.agency
Author:       Modernize Agency
Author URI:   https://modernize.agency
Description:  Thème professionnel blanc & violet pour agences digitales. Design SaaS moderne, épuré et percutant.
Version:      1.0.0
License:      GPL v2 or later
Text Domain:  modernize-agency
Tags:         business, purple, modern, saas, agency, clean
*/

/* ─────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #5B4FE8;
  --primary-hover: #4A3FD6;
  --primary-light: #EEF0FF;
  --primary-alpha: rgba(91,79,232,.1);
  --bg:            #F4F5FF;
  --white:         #FFFFFF;
  --text:          #1A1A2E;
  --text-sec:      #6B7280;
  --text-muted:    #9CA3AF;
  --border:        #E8E8F4;
  --shadow:        0 4px 24px rgba(91,79,232,.08);
  --shadow-lg:     0 12px 48px rgba(91,79,232,.14);
  --radius:        12px;
  --radius-lg:     18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─────────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--text-sec); }
p:last-child { margin-bottom: 0; }

.entry-content h1,.entry-content h2,.entry-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: .5rem; color: var(--text-sec); }

/* ─────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s; border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,79,232,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-white  { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ─────────────────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(91,79,232,.25);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}
.logo-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: rgba(255,255,255,.85);
  text-decoration: none; transition: all .15s;
}
.main-nav a:hover, .main-nav a.current-menu-item {
  background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
}

.nav-cta { margin-left: 12px; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 4px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; gap: 4px; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 16px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ─────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7C6FF0 60%, #A78BFA 100%);
  padding: 90px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(255,255,255,.25);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,.1); border-radius: 18px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 24px; backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.hero-stat { display: flex; flex-direction: column; gap: 12px; }
.stat-row {
  background: rgba(255,255,255,.15); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 500; }
.stat-value { font-size: 20px; font-weight: 800; color: #fff; }
.stat-badge { background: #10B981; color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }

@media(max-width:768px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{display:none;}
}

/* ─────────────────────────────────────────────────────
   FEATURES / SERVICES
───────────────────────────────────────────────────── */
.section-label {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px;
}
.section-title { margin-bottom: 12px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-sec); margin-bottom: 48px; max-width: 520px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media(max-width:900px){.grid-3{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.grid-3,.grid-2{grid-template-columns:1fr;}}

.feature-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: all .2s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 16px; }
.feature-card p  { font-size: 14px; color: var(--text-sec); }

/* ─────────────────────────────────────────────────────
   STATS BAND
───────────────────────────────────────────────────── */
.stats-band { background: var(--primary); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; text-align: center; }
@media(max-width:700px){.stats-grid{grid-template-columns:repeat(2,1fr);}}
.stat-num  { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-desc { font-size: 14px; color: rgba(255,255,255,.75); }

/* ─────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg); border-top: 1.5px solid var(--border);
  padding: 80px 0; text-align: center;
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section p  { margin-bottom: 32px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────
   PRICING
───────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:900px){.pricing-grid{grid-template-columns:1fr;max-width:440px;margin:0 auto;}}
.pricing-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; position: relative; transition: all .2s;
}
.pricing-card.featured { border: 2.5px solid var(--primary); box-shadow: var(--shadow-lg); }
.pricing-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.price-amount { font-size: 2.4rem; font-weight: 900; color: var(--text); line-height: 1; margin: 16px 0 4px; }
.price-period { font-size: 13px; color: var(--text-sec); margin-bottom: 24px; }
.price-features { margin-bottom: 28px; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-sec); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ─────────────────────────────────────────────────────
   BLOG / ARCHIVE
───────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media(max-width:680px){.posts-grid{grid-template-columns:1fr;}}
.post-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s;
}
.post-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.post-card .post-thumb img { width: 100%; height: 220px; object-fit: cover; }
.post-card .post-body { padding: 22px; }
.post-cat {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.post-card h2 { font-size: 17px; margin-bottom: 8px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary); }
.post-card .post-meta { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.post-excerpt { font-size: 14px; color: var(--text-sec); }

/* ─────────────────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────────────────── */
.single-hero { background: var(--bg); padding: 60px 0 40px; border-bottom: 1.5px solid var(--border); }
.single-hero .post-cat { margin-bottom: 12px; }
.single-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 16px; }
.single-hero .post-meta { font-size: 13px; color: var(--text-sec); margin-top: 16px; }
.entry-content { padding: 48px 0; }
.entry-content p,.entry-content li { font-size: 16px; line-height: 1.75; color: var(--text-sec); }
.entry-content blockquote { border-left: 4px solid var(--primary); background: var(--bg); padding: 16px 20px; margin: 24px 0; border-radius: 0 8px 8px 0; }
.entry-content blockquote p { color: var(--text); font-style: italic; margin: 0; }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content pre { background: #1E1E2E; color: #CDD6F4; padding: 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; margin: 24px 0; }
.entry-content code { background: var(--primary-light); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* ─────────────────────────────────────────────────────
   PAGE CONTENT
───────────────────────────────────────────────────── */
.page-hero { background: var(--bg); padding: 60px 0 40px; border-bottom: 1.5px solid var(--border); }
.page-hero h1 { margin-bottom: 12px; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.site-footer { background: #0F0E1A; color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand .logo-name { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 14px; margin: 12px 0 20px; color: rgba(255,255,255,.55); }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); text-decoration: none; font-size: 16px; transition: all .15s; }
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ─────────────────────────────────────────────────────
   WIDGETS / SIDEBAR
───────────────────────────────────────────────────── */
.widget-area { padding: 48px 0; }
.widget { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }

/* ─────────────────────────────────────────────────────
   FORMS
───────────────────────────────────────────────────── */
input[type=text],input[type=email],input[type=search],textarea,select {
  width: 100%; padding: 11px 14px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 14px; color: var(--text);
  transition: border-color .15s; outline: none;
}
input:focus,textarea:focus,select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-alpha); }
label { font-size: 13px; font-weight: 600; color: var(--text-sec); display: block; margin-bottom: 6px; }
.form-group { margin-bottom: 20px; }

/* ─────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.page-numbers { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--border); color: var(--text-sec); font-size: 14px; font-weight: 500; text-decoration: none; }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ─────────────────────────────────────────────────────
   UTILS
───────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-purple { color: var(--primary); }
.bg-light { background: var(--bg); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* WP alignment */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter{ display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
