/* Theme: Dark Futuristic Web Marketing */
:root{
  --bg: #0b0d10;
  --elev: #141619;
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);
  --text: #f8fafc;
  --muted: rgba(248,250,252,0.75);
  --brand: #a3ff12;
  --brand-2: #7dd3fc;
  --accent: #b57bff;
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --radius: 12px;
}

/* Theme: Light Mode */
[data-theme="light"] {
  --bg: #ffffff;
  --elev: #f8fafc;
  --glass: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.1);
  --text: #1a202c;
  --muted: rgba(26,32,44,0.7);
  --brand: #059669;
  --brand-2: #0891b2;
  --accent: #7c3aed;
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 12px;
}

/* Light mode background adjustments */
[data-theme="light"] body {
  background: radial-gradient(1200px 800px at 20% -10%, rgba(5,150,105,0.03), transparent 50%), radial-gradient(800px 600px at 100% 10%, rgba(8,145,178,0.03), transparent 50%), var(--bg);
}

[data-theme="light"] .site-header {
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .no-backdrop .site-header {
  background: rgba(255,255,255,0.95);
}

[data-theme="light"] .navbar .nav-list {
  background: rgba(255,255,255,0.98);
}

/* Transitions globales plus douces */
.section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card {
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Transitions pour les éléments de contenu */
.service, .project, .price, .testimonial {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Transitions pour les boutons - plus douces */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* High contrast mode */
.high-contrast{
  --border: rgba(255,255,255,0.25);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.9);
}

/* Backdrop filter fallback */
.no-backdrop .site-header{background:rgba(11,13,16,0.95)}
.no-backdrop .navbar .nav-list{background:rgba(11,13,16,0.98)}
*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:auto}
body{
  margin:0; font-family:'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color:var(--text); background:radial-gradient(1200px 800px at 20% -10%, rgba(163,255,18,0.06), transparent 50%), radial-gradient(800px 600px at 100% 10%, rgba(108,246,255,0.06), transparent 50%), var(--bg);
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1400px, 94%); margin-inline:auto}
.section{padding:96px 0}
.section-title{font-size:clamp(28px,2.4vw,36px); margin:0 0 24px; letter-spacing:-.02em}
.grid{display:grid; gap:24px}
.card{background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); backdrop-filter: blur(10px); transition:border-color .2s ease, box-shadow .2s ease; will-change: auto}
.card:hover{border-color: rgba(163,255,18,0.15); box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03)}

/* Light mode card hover effects */
[data-theme="light"] .card:hover{border-color: rgba(5,150,105,0.2); box-shadow: 0 8px 20px rgba(0,0,0,.12), inset 0 1px 0 rgba(0,0,0,.03)}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; height:48px; padding:0 24px; border-radius:8px; border:1px solid var(--border); color:var(--text); transition:.25s transform ease, .25s background-color ease, .25s border-color ease, .25s box-shadow ease}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background: linear-gradient(90deg, var(--brand), var(--brand-2)); color:#0b0d10; font-weight:700; border:none}
.btn-secondary{background: linear-gradient(90deg, var(--accent), var(--brand-2)); color:#0b0d10; font-weight:700; border:none}

/* Light mode button text color */
[data-theme="light"] .btn-primary{color:#ffffff}
[data-theme="light"] .btn-secondary{color:#ffffff}
.btn-outline{background:transparent}
.btn:focus-visible{outline:2px solid var(--brand-2); outline-offset:2px}

/* Subtle web marketing glow on hover */
.btn-primary:hover{box-shadow: 0 8px 24px rgba(163,255,18,0.22), 0 0 0 2px rgba(108,246,255,0.15)}
.btn-secondary:hover{box-shadow: 0 8px 24px rgba(181,123,255,0.22), 0 0 0 2px rgba(108,246,255,0.12)}
.btn-outline:hover{box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.08)}
.btn-ghost:hover{box-shadow: 0 6px 18px rgba(0,0,0,0.30)}

/* Light mode button hover effects */
[data-theme="light"] .btn-primary:hover{box-shadow: 0 8px 24px rgba(5,150,105,0.25), 0 0 0 2px rgba(8,145,178,0.15)}
[data-theme="light"] .btn-secondary:hover{box-shadow: 0 8px 24px rgba(124,58,237,0.25), 0 0 0 2px rgba(8,145,178,0.12)}
[data-theme="light"] .btn-outline:hover{box-shadow: 0 6px 18px rgba(0,0,0,0.15), 0 0 0 2px rgba(0,0,0,0.08)}
[data-theme="light"] .btn-ghost:hover{box-shadow: 0 6px 18px rgba(0,0,0,0.10)}
.btn-ghost{background:transparent; border-color: transparent; color:var(--muted)}
.btn-ghost:hover{color:var(--text); border-color: var(--border); background: var(--glass)}

/* Header */
.site-header{position:sticky; top:0; z-index:40; backdrop-filter:blur(10px); background:rgba(11,13,16,.6); border-bottom:1px solid var(--border)}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; gap:24px; height:88px; padding:16px 0}
.navbar{display:flex; align-items:center; gap:16px}
.brand{font-weight:800; letter-spacing:.02em}
.brand span{color:var(--brand)}
.site-header .brand-lg{font-size:22px; letter-spacing:.02em}
.navbar .nav-list{display:flex; align-items:center; gap:32px; list-style:none; margin:0; padding:0}
.navbar .nav-list a{position:relative; padding:6px 2px; display:inline-block}
.navbar .nav-list a::after{content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); transform:scaleX(0); transform-origin:left; transition:transform .3s ease}
.navbar .nav-list a:hover::after{transform:scaleX(1)}
.navbar .nav-list a.active::after{transform:scaleX(1); background:var(--brand)}
.nav-meta{display:flex; align-items:center; gap:12px}
.nav-cta{display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-left:48px}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--elev);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="light"] .theme-icon-light {
  display: block;
}

/* Service icons - adapt to theme */
.service .icon img {
  filter: brightness(0) saturate(100%) invert(100%);
}

[data-theme="light"] .service .icon img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* Light mode statistics visibility */
[data-theme="light"] .stat-number {
  color: var(--brand) !important;
}
.social{font-size:12px; padding:8px 10px; border-radius:8px; border:1px solid var(--border); background:var(--glass)}
.phone{opacity:.85; margin-left:28px; padding-left:16px; border-left:1px solid var(--border)}

/* Social dropdown */
.social-dropdown{position:relative}
.social-trigger{height:36px; padding:0 12px; border-radius:10px; border:1px solid var(--border); background:var(--glass); color:var(--text); cursor:pointer}
.social-trigger:hover{border-color: rgba(163,255,18,0.35)}
.social-menu{position:absolute; right:0; top:calc(100% + 8px); min-width:180px; padding:8px; margin:0; list-style:none; background:var(--elev); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); display:none; z-index:50}
.social-menu.open{display:block}
.social-menu a{display:block; padding:8px 10px; border-radius:8px; color:var(--text)}
.social-menu a:hover{background:var(--glass)}

.nav-toggle{display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:8px; position:relative; z-index:50}
.nav-toggle span{width:24px; height:2px; background:var(--text); transition:all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-radius:2px; transform-origin:center}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:rotate(45deg) translate(5px, 5px); background:var(--brand)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0; transform:scale(0)}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:rotate(-45deg) translate(7px, -7px); background:var(--brand)}
.nav-toggle:hover span{background:var(--brand)}

/* default hide mobile-only items on desktop */
.navbar .nav-list .only-mobile{display:none}

@media (max-width: 768px){
  .navbar .nav-list{position:fixed; inset:72px 0 auto 0; background:rgba(11,13,16,.98); backdrop-filter:blur(20px); border-bottom:1px solid var(--border); padding:20px 24px; transform:translateY(-120%); transition:all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display:flex; flex-direction:column; align-items:flex-start; gap:20px; box-shadow:0 8px 32px rgba(0,0,0,0.3)}
  .navbar .nav-list.open{transform:translateY(0); opacity:1}
  .navbar .nav-list a{padding:12px 8px; font-size:16px; font-weight:500; transition:all .3s ease; border-radius:8px}
  .navbar .nav-list a:hover{background:var(--glass); color:var(--brand); transform:translateX(4px)}
  .nav-toggle{display:flex}
  .nav-cta{display:none}
  .navbar .nav-list .only-mobile{display:block}
}

/* Hero: logos and micro proof */
.hero .logos{display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; align-items:center}
.logo-chip{display:none}
.logo-pill{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border); background:rgba(255,255,255,0.06); border-radius:8px; backdrop-filter:saturate(120%) blur(6px); opacity:1; transition:transform .2s ease}
.logo-pill:hover{transform:translateY(-1px)}
.logo-pill img{height:22px; width:auto; display:block; opacity:1}
@media (min-width: 720px){ .logo-pill img{height:24px} }
.micro-proof{margin-top:10px; color:var(--muted); font-size:13px}
.micro-proof span{margin-right:12px}

/* Hero */
.hero{position:relative; overflow:hidden}
.kicker{font-size:13px; color:var(--brand-2); letter-spacing:.16em; text-transform:uppercase; margin-bottom:24px}
.title{font-size:clamp(36px, 6vw, 72px); line-height:1.05; margin:0 0 24px; letter-spacing:-.04em}
.subtitle{max-width:720px; color:var(--muted); margin-bottom:32px; line-height:1.6}
.hero-cta{display:flex; gap:16px; margin-top:32px; margin-bottom:40px; flex-wrap:wrap}
.hero-badges{display:flex; gap:10px; margin-top:28px; flex-wrap:wrap}
.hero-badges span{border:1px solid var(--border); background:var(--glass); padding:6px 10px; border-radius:8px; font-size:12px; color:var(--muted)}
@media (max-width: 768px){
  .hero-badges{margin-top:32px}
}

/* Newsletter */
.newsletter-card{padding:20px}
.newsletter-form{display:grid; gap:10px}
.newsletter-row{display:flex; gap:10px; align-items:center}
.newsletter-form input[type="email"]{flex:1; height:44px; border-radius:12px; padding:0 12px; border:1px solid var(--border); background:var(--card); color:var(--text)}
.newsletter-form .hint{color:var(--muted)}
@media (max-width: 768px){
  .newsletter-row{flex-direction:column; align-items:stretch}
  .newsletter-form input[type="email"]{width:100%}
}

/* Articles */
.articles-grid{grid-template-columns: repeat(3, 1fr)}
.article .article-title{margin:0 0 8px}
.article .article-excerpt{margin:0; color:var(--muted)}
@media (max-width: 1024px){.articles-grid{grid-template-columns: 1fr 1fr}}
@media (max-width: 768px){.articles-grid{grid-template-columns: 1fr}}

/* Sections & hierarchy */
.section{padding: 88px 0}
.hero.section{padding: 120px 0 100px 0}
@media (max-width: 768px){
  .section{padding: 72px 0}
  .hero.section{padding: 80px 0 60px 0}
}
.section .section-title{margin: 0 0 12px}
.section .eyebrow{font-size:12px; color:var(--brand-2); letter-spacing:.18em; text-transform:uppercase; margin-bottom:8px}
.section .divider{height:1px; background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent); margin: 4px 0 12px; border-radius:1px}
.divider-mobile{display:none; height:1px; background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent); margin: 6px 0 12px}
@media (max-width: 768px){
  .divider-mobile{display:block}
}

/* CTA accent consistency */
.btn.btn-primary{background: linear-gradient(90deg, var(--brand), var(--brand-2)); border: none}
.btn.btn-outline{border-color: var(--border); color: var(--text)}

/* Sober interactions for promo offer buttons */
.promo-offer .hero-cta .btn{transform:translateY(0); box-shadow:none; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease}
.promo-offer .hero-cta .btn:hover{transform:translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08)}
.promo-offer .hero-cta .btn:active{transform:translateY(0)}
@media (prefers-reduced-motion: reduce){
  .promo-offer .hero-cta .btn{transition: background-color .18s ease, color .18s ease, border-color .18s ease}
  .promo-offer .hero-cta .btn:hover,
  .promo-offer .hero-cta .btn:active{transform:none; box-shadow:none}
}

/* Extra spacing for template hero ctas */
.template-hero .hero-cta{margin-bottom:24px}
.glow-1,.glow-2{position:absolute; border-radius:50%; filter:blur(60px); opacity:.35; pointer-events:none}
.glow-1{width:520px; height:520px; left:-120px; top:-120px; background:radial-gradient(circle, var(--brand) 0%, transparent 60%)}
.glow-2{width:420px; height:420px; right:-120px; bottom:-120px; background:radial-gradient(circle, var(--brand-2) 0%, transparent 60%)}

/* Services */
.services-grid{grid-template-columns: repeat(4, 1fr)}
.service{position:relative; transition:box-shadow .18s ease}
.service h3{margin:0 0 8px}
.service p{margin:0; color:var(--muted)}
.service .icon{width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.06); border:1px solid var(--border); margin-bottom:10px}
.service .icon svg{width:20px; height:20px; opacity:.9}
.service .meta{margin-top:8px; font-size:12px; color:var(--muted); opacity:.9}
.service .meta b{color:var(--text); font-weight:600}

/* Responsive simplification for Services */
@media (max-width: 1024px){
  .services-grid{grid-template-columns: repeat(2, 1fr)}
  .service{padding:20px}
}
@media (max-width: 768px){
  .services-grid{grid-template-columns: 1fr}
  .service .icon{width:34px; height:34px; margin-bottom:8px}
  .service h3{font-size:16px}
  .service p{font-size:14px}
  .service .meta{display:none}
}

/* Project cards thumbnails */
.project-thumb{position:relative; border-radius:12px; overflow:hidden; border:1px solid var(--border); background:var(--glass); margin:0 0 10px; aspect-ratio: 16 / 9}
.project-thumb img{position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; opacity:1; transition: opacity .2s ease}
.project-thumb .badge{position:absolute; top:8px; left:8px; background:var(--brand); color:#0b0d10; font-size:11px; padding:4px 8px; border-radius:8px; border:1px solid rgba(255,255,255,0.12); letter-spacing:.02em}
.project:hover .project-thumb img{opacity:0.9}
.project-meta{margin:-6px 0 12px; font-size:12px; color:var(--muted); opacity:.9}
.project-meta b{color:var(--text); font-weight:600}

/* Highlight for new project card */
.project.is-new{transition:box-shadow .2s ease}
.project.is-new:hover{box-shadow:0 0 0 2px rgba(163,255,18,0.12), 0 6px 20px rgba(0,0,0,0.3)}

/* Projects */
.projects-grid{grid-template-columns: repeat(3, 1fr)}
.project h3{margin:0 0 6px}
.project p{margin:0 0 14px; color:var(--muted)}
.project-meta{margin:-6px 0 12px; font-size:12px; color:var(--muted); opacity:.9}
.project-meta b{color:var(--text); font-weight:600}
.project .actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.project .project-meta-small{font-size:11px; color:var(--muted); opacity:.8; margin:4px 0 10px}
@media (max-width: 1024px){.projects-grid{grid-template-columns: repeat(2, 1fr)}}
@media (max-width: 768px){.projects-grid{grid-template-columns: 1fr}}

/* Pricing */
.pricing-grid{grid-template-columns: repeat(3, 1fr)}
.price{position:relative}
.card.price{display:flex; flex-direction:column}
.card.price .hero-cta{margin-top:auto; display:flex; gap:10px; flex-wrap:wrap}
.price .badge{position:absolute; top:16px; right:16px; font-size:12px; padding:6px 10px; border-radius:8px; background:linear-gradient(90deg, var(--brand), var(--brand-2)); color:#0b0d10; font-weight:700}
.price h3{margin:0 0 8px}
.price .price-tag{font-size:32px; margin:4px 0 12px; color:var(--brand)}
.price .price-note{font-size:12px; color:var(--muted); margin:0 0 2px}
.price ul{margin:0 0 18px 18px; color:var(--muted)}
.price.popular{outline:2px solid var(--brand-2)}
@media (max-width: 1024px){.pricing-grid{grid-template-columns: 1fr}}
@media (max-width: 768px){
  .card.price .hero-cta{gap:8px}
  .card.price .btn{height:40px; padding:0 14px; font-size:14px}
  .card.price .btn-ghost{height:40px; line-height:40px; padding:0 12px}
}
/* Tarifs sub-grids */
.promo-grid{grid-template-columns: 1fr 1fr; align-items:center; gap:16px}
.faq-grid{grid-template-columns: 1fr 1fr; gap:16px}
@media (max-width: 1024px){
  .promo-grid{grid-template-columns: 1fr}
  .faq-grid{grid-template-columns: 1fr}
}

/* Contact */
.contact-grid{grid-template-columns: 1.2fr .8fr; gap:24px}
.template-hero .contact-grid{margin-top:24px}
.template-hero{padding-bottom:24px}
.form-grid{grid-template-columns: repeat(2, 1fr)}
.form-grid input, .form-grid select, .form-grid textarea{
  width:100%; background:var(--card); color:var(--text); border:1px solid var(--border); border-radius:12px; padding:12px 14px; font-size:15px
}
.form-grid textarea{grid-column: span 2}
@media (max-width: 768px){.form-grid{grid-template-columns: 1fr}}
@media (max-width: 1024px){.contact-grid{grid-template-columns: 1fr}}

/* Footer - Simplified */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--elev);
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.footer-brand .brand {
  font-size: 20px;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-nav h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-inner .footer-legal {
  display: block !important;
}

.footer-inner .footer-legal h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.footer-inner .footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-inner .footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-inner .footer-legal a:hover {
  color: var(--text);
}

/* Footer contact alignment - Desktop only */
@media (min-width: 1025px) {
  .footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
  }
}

/* Footer Desktop - Force 4 columns */
@media (min-width: 1025px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px;
  }
  
  .footer-nav {
    display: block !important;
  }
}

/* Blog Magazine Structure */
.blog-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(163,255,18,0.05) 100%);
}

.blog-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.blog-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.blog-newsletter-hero {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
}

.newsletter-content h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.newsletter-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.blog-main {
  padding: 40px 0 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.blog-layout:has(.blog-sidebar) {
  grid-template-columns: 1fr 300px;
}

.blog-content {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-categories {
  margin-bottom: 32px;
}

.blog-categories h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.category-filter:hover {
  background: var(--elev);
  border-color: var(--brand);
}

.category-filter.active {
  background: var(--brand);
  color: #0b0d10;
  border-color: var(--brand);
}

.category-count {
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.category-filter.active .category-count {
  background: rgba(0,0,0,0.2);
}

.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: var(--brand);
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: #0b0d10;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.article-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.article-content {
  padding: 24px;
}

.article-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.article-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--brand);
}

.article-excerpt {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 14px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.read-time {
  color: var(--muted);
  font-size: 12px;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.popular-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-article {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--glass);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popular-article:hover {
  background: var(--elev);
}

.popular-article img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.popular-article-content h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.popular-article-content h4 a {
  color: var(--text);
  text-decoration: none;
}

.popular-article-content h4 a:hover {
  color: var(--brand);
}

.popular-article-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.pagination-btn {
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--elev);
  border-color: var(--brand);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pagination-number:hover {
  background: var(--elev);
  border-color: var(--brand);
}

.pagination-number.active {
  background: var(--brand);
  color: #0b0d10;
  border-color: var(--brand);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

/* Contact form styles */
.contact-form-card {
  padding: 32px;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.contact-form-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  min-height: 48px;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-actions {
  text-align: center;
}

.form-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Contact info styles */
.contact-info-card {
  padding: 32px;
}

.contact-info-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.contact-info-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--brand);
}

.contact-info-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.contact-info-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-link:hover {
  color: var(--brand);
}

.social-links-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--brand);
  background: rgba(163,255,18,0.1);
  border-color: rgba(163,255,18,0.3);
}

.contact-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-cta-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Contact location styles */
.contact-location {
  margin-top: 32px;
  padding: 32px;
}

.contact-location-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.contact-map {
  margin-top: 16px;
}

.footer-contact h4,
.footer-social h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--text);
}

.contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg);
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

.copyright {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center;
    padding: 32px 0 !important;
  }
  
  .footer-brand {
    order: 1;
  }
  
  .footer-nav {
    display: none !important;
  }
  
  .footer-contact {
    order: 2;
  }
  
  .footer-social {
    order: 3;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-legal {
    order: 2;
  }
  
  .copyright {
    order: 1;
  }
}

/* Global responsive tweaks */
@media (max-width: 1024px){
  /* Footer tablet layout */
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  
  .footer-nav {
    display: none;
  }
  
  /* Other responsive tweaks */
  .nav-meta{gap:8px}
  .social{padding:6px 8px}
  .phone{margin-left:20px; padding-left:12px}
  .nav-cta{gap:12px}
}

/* Template page */
.template-hero{padding-top:40px}
.template-hero .meta{display:flex; gap:10px; margin:10px 0 20px}
.template-frame{aspect-ratio: 16/9; width:100%; border:1px solid var(--border); border-radius:12px; overflow:hidden}
.template-frame iframe{width:100%; height:100%; border:0}
.breadcrumbs{font-size:13px; color:var(--muted); margin-bottom:8px}

/* Forms */
.contact-form button[type="submit"],
.contact-form .btn[type="submit"]{margin-top:14px; margin-bottom:10px}

/* Toast */
.toast{position:fixed; top:16px; right:16px; z-index:1000; padding:12px 16px; border-radius:12px; border:1px solid var(--border); background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); color:var(--text); box-shadow:var(--shadow); opacity:0; transform:translateY(-10px); pointer-events:none; transition:opacity .25s ease, transform .25s ease}
.toast.show{opacity:1; transform:translateY(0)}

/* Promo banner */
.promo-banner{background: linear-gradient(90deg, rgba(163,255,18,0.08), rgba(108,246,255,0.08)); border-bottom:1px solid var(--border);}
.promo-banner .promo-inner{display:flex; align-items:center; justify-content:center; gap:14px; padding:10px 0}
.promo-banner .promo-text{font-size:14px; color:var(--text)}
.promo-banner .promo-text b{color:var(--brand-2)}
.promo-banner .promo-cta{display:inline-flex; align-items:center; gap:8px}

.promo-banner .promo-close{margin-left:10px; cursor:pointer; border:none; background:transparent; color:var(--muted); padding:6px; border-radius:8px}
.promo-banner .promo-close:hover{background: rgba(255,255,255,0.06); color:var(--text)}
@media (max-width: 768px){
  .promo-banner .promo-inner{flex-direction:column; gap:8px; padding:12px 0}
}

/* Audit form responsive optimizations */
.audit-section-grid {
  align-items: flex-start;
}

.audit-form-card {
  position: sticky;
  top: 100px;
}

.audit-form input, .audit-form select {
  min-height: 48px; /* Better touch target */
  font-size: 16px; /* Prevent zoom on iOS */
}

.audit-form label {
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  /* Audit section mobile layout */
  .audit-section-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .audit-form-card {
    position: static;
    padding: 24px !important;
    order: -1; /* Form first on mobile */
  }
  
  .audit-form {
    gap: 20px !important;
  }
  
  .audit-form input,
  .audit-form select {
    padding: 16px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }
  
  .audit-form .btn {
    height: 50px !important;
    font-size: 16px !important;
    font-weight: 600;
  }
  
  /* Reduce section padding on mobile */
  .section {
    padding: 64px 0 !important;
  }
  
  /* Hero section mobile optimizations */
  .hero .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .hero .title {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  
  .hero .subtitle {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }
  
  .hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  .hero-cta .btn {
    height: 50px !important;
    font-size: 16px !important;
    justify-content: center;
  }
  
  /* Simplify hero badges on mobile */
  .hero-badges {
    justify-content: center;
    margin-top: 24px !important;
  }
  
  .hero-badges span {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  
  /* Logo section mobile */
  .logos {
    justify-content: center;
    gap: 8px !important;
  }
  
  .logo-pill {
    flex: 0 0 auto;
  }
  
  .logo-pill img {
    width: 80px !important;
    height: auto !important;
  }
  
  /* Micro proof mobile */
  .micro-proof {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
  }
  
  .micro-proof span {
    font-size: 13px !important;
  }
  
  /* Cards mobile spacing */
  .card {
    padding: 20px !important;
  }
  
  .service h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .service p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  /* Project cards mobile */
  .project .actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .project .btn {
    height: 44px !important;
    font-size: 14px !important;
  }
  
  /* Pricing cards mobile */
  .price .btn {
    height: 48px !important;
    font-size: 15px !important;
  }
  
  /* Better touch targets for all buttons */
  .btn {
    min-height: 44px;
    padding: 0 20px !important;
  }
  
  /* Form improvements */
  input, select, textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  /* Navigation mobile improvements */
  .nav-toggle {
    padding: 12px !important;
  }
  
  .nav-toggle span {
    width: 26px !important;
    height: 3px !important;
  }
  
  .navbar .nav-list a {
    padding: 16px 12px !important;
    font-size: 17px !important;
  }
  
  .navbar .nav-list .btn {
    margin-top: 8px;
    height: 48px !important;
  }
  
  /* Tarifs page mobile optimizations */
  .template-hero .title {
    font-size: clamp(28px, 7vw, 36px) !important;
    margin-bottom: 12px !important;
  }
  
  .template-hero .subtitle {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }
  
  /* Pricing cards mobile */
  .price .kicker {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }
  
  .price h3 {
    font-size: 18px !important;
    margin: 4px 0 6px !important;
  }
  
  .price .subtitle {
    font-size: 13px !important;
    margin-top: 4px !important;
  }
  
  /* Simplify badges on mobile */
  .price .hero-badges {
    margin-top: 10px !important;
    gap: 6px !important;
  }
  
  .price .hero-badges span {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
  
  /* Pricing lists mobile */
  .price ul {
    margin: 10px 0 0 !important;
    padding-left: 16px !important;
  }
  
  .price li {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }
  
  .price ul {
    margin: 10px 0 0 !important;
    .grid[style*="repeat(auto-fit, minmax(150px, 1fr))"] > div > div:last-child {
    font-size: 12px !important;
  }
  
  /* Pricing CTA mobile */
  .price .hero-cta {
    margin-top: 14px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .price .btn-ghost {
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  
  /* Promo section mobile */
  .promo-offer h3 {
    font-size: 16px !important;
  }
  
  .promo-offer p {
    font-size: 13px !important;
  }
  
  /* FAQ mini section mobile */
  #faq-mini .card h4 {
    font-size: 15px !important;
  }
  
  #faq-mini .card p {
    font-size: 13px !important;
  }
  
  /* ===== CONTACT PAGE MOBILE ===== */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 24px !important;
    display: grid !important;
  }
  
  .contact-form-card {
    order: 1 !important;
    padding: 16px !important;
  }
  
  .contact-form-title {
    font-size: 18px !important;
    margin: 0 0 10px !important;
  }
  
  .contact-form-subtitle {
    font-size: 12px !important;
    margin: 0 0 16px !important;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .form-group {
    gap: 3px !important;
  }
  
  .form-label {
    font-size: 12px !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 42px !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
  }
  
  .form-group textarea {
    min-height: 80px !important;
  }
  
  .contact-submit-btn {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
  }
  
  .form-note {
    margin: 10px 0 0 !important;
    font-size: 12px !important;
  }
  
  .contact-info-card {
    order: 2 !important;
    padding: 16px !important;
  }
  
  .contact-info-title {
    font-size: 18px !important;
    margin: 0 0 10px !important;
  }
  
  .contact-info-subtitle {
    font-size: 12px !important;
    margin: 0 0 16px !important;
  }
  
  .contact-info-grid {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .contact-info-item {
    gap: 10px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }
  
  .contact-info-item:last-child {
    border-bottom: none !important;
  }
  
  .contact-info-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
  }
  
  .contact-info-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .contact-info-label {
    font-size: 13px !important;
    margin: 0 0 2px !important;
  }
  
  .contact-info-link {
    font-size: 12px !important;
  }
  
  .social-links-contact {
    gap: 8px !important;
  }
  
  .social-link {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  
  .contact-cta {
    padding-top: 16px !important;
    margin-top: 16px !important;
  }
  
  .contact-cta-text {
    font-size: 12px !important;
    margin: 0 0 8px !important;
  }
  
  .contact-location {
    margin-top: 20px !important;
    padding: 20px !important;
  }
  
  .contact-location-title {
    font-size: 20px !important;
    margin: 0 0 12px !important;
  }
  
  .contact-map {
    margin-top: 12px !important;
  }
  
  /* ===== HOMEPAGE HERO MOBILE ===== */
  
  .hero-inner {
    text-align: center !important;
    padding: 40px 0 !important;
  }
  
  .hero .title {
    font-size: clamp(24px, 5vw, 32px) !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
  }
  
  .hero .subtitle {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 0 24px !important;
  }
  
  .hero-cta {
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 0 20px !important;
  }
  
  .hero-cta .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  
  
  
}
