/*
Theme Name: Koluka.ai
Theme URI: https://www.koluka.ai
Author: Koluka.ai
Author URI: https://www.koluka.ai
Description: Thème WordPress sur mesure pour Koluka.ai — Agence d'automatisation IA pour TPE/PME. Design dark mode avec accents orange-gold.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koluka
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Tags: dark-mode, agency, ai, automation, one-page, custom-logo

== Color Palette ==
Background:     hsl(0, 0%, 10%)    — #1a1a1a
Foreground:     hsl(0, 0%, 100%)   — #ffffff
Primary:        hsl(35, 92%, 55%)  — #f0a030 (orange-gold)
Secondary:      hsl(210, 10%, 23%) — #353a3f (steel blue)
Accent:         hsl(18, 80%, 50%)  — #e65c1a (deep copper)
Muted:          hsl(0, 0%, 20%)    — #333333
Border:         hsl(0, 0%, 25%)    — #404040
Footer BG:      hsl(0, 0%, 8%)     — #141414
*/

/* === CSS Variables === */
:root {
  --color-background: #1a1a1a;
  --color-foreground: #ffffff;
  --color-primary: hsl(35, 92%, 55%);
  --color-primary-hover: hsl(35, 92%, 60%);
  --color-primary-active: hsl(35, 92%, 50%);
  --color-secondary: hsl(210, 10%, 23%);
  --color-secondary-hover: hsl(210, 10%, 28%);
  --color-accent: hsl(18, 80%, 50%);
  --color-muted: hsl(0, 0%, 20%);
  --color-muted-fg: hsl(0, 0%, 85%);
  --color-border: hsl(0, 0%, 25%);
  --color-border-strong: hsl(0, 0%, 40%);
  --color-footer-bg: hsl(0, 0%, 8%);

  --font-display: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Roboto', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  --shadow-soft: 0 2px 8px rgb(0 0 0 / 0.04), 0 1px 3px rgb(0 0 0 / 0.08);
  --shadow-medium: 0 4px 16px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.08);
  --shadow-strong: 0 8px 32px rgb(0 0 0 / 0.16), 0 4px 12px rgb(0 0 0 / 0.08);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
p { margin: 0 0 1rem 0; }

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--color-muted-fg);
  max-width: 700px;
  margin: 0 auto;
}

/* === Header / Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 80px;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.5s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.site-logo .logo-svg {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--color-foreground);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-foreground) !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: var(--color-foreground) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Nav Search === */
.nav-search-toggle {
  background: none;
  border: none;
  color: var(--color-foreground);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-search-toggle:hover {
  color: var(--color-primary);
}

.nav-search-wrapper {
  position: absolute;
  top: 100%;
  right: 5%;
  width: 300px;
  padding: 0.75rem;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-search-wrapper.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--color-foreground);
  border-radius: var(--radius-md);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.nav-search-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(240, 160, 48, 0.2);
}

.nav-search-wrapper input::placeholder {
  color: var(--color-muted-fg);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.15) 0%, rgba(26,26,26,0.6) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: 5%;
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-foreground), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--color-muted-fg);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-foreground);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(240, 160, 48, 0.3);
  color: var(--color-foreground);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-foreground);
  transform: translateY(-2px);
}

/* === Cards === */
.card {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-foreground);
}

.card p {
  color: var(--color-muted-fg);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(240, 160, 48, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* === Grid Layouts === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--color-muted-fg);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

/* === Testimonials Carousel === */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.testimonial-slide .testimonial-inner {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}

.testimonial-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.testimonial-photo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.testimonial-quote-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.testimonial-slide blockquote {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--color-muted-fg);
  line-height: 1.8;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: none;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-name {
  display: block;
  color: var(--color-foreground);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--color-muted-fg);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--color-foreground);
  border-radius: var(--radius-md);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(240, 160, 48, 0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .form-helper {
  font-size: 0.8rem;
  color: var(--color-muted-fg);
  margin-top: 0.3rem;
  opacity: 0.7;
}

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.contact-info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--color-foreground);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(240, 160, 48, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  color: var(--color-primary);
  font-size: 1rem;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  color: var(--color-muted-fg);
  font-weight: 400;
}

.contact-info-item span {
  color: var(--color-foreground);
  font-size: 0.95rem;
}

.contact-map {
  flex: 1;
  min-height: 0;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: block;
}

/* === Footer === */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid rgba(64, 64, 64, 0.5);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--color-muted-fg);
}

.footer-links a {
  color: var(--color-muted-fg);
  font-size: 0.9rem;
  margin-left: 1.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-muted-fg);
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* === Blog === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.blog-card {
  background: rgba(53, 58, 63, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-card-meta .category {
  color: var(--color-primary);
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--color-foreground);
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--color-primary);
}

.blog-card p {
  color: var(--color-muted-fg);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Single Post === */
.single-post-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,26,26,0.3) 0%, var(--color-background) 100%);
}

.single-post-header h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.single-post-header .post-meta {
  color: var(--color-muted-fg);
  font-size: 0.9rem;
}

.single-post-header .post-meta .category {
  color: var(--color-primary);
}

.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.single-post-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-primary);
}

.single-post-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.single-post-content p {
  color: var(--color-muted-fg);
  font-size: 1.05rem;
  line-height: 1.9;
}

.single-post-content ul, .single-post-content ol {
  color: var(--color-muted-fg);
  margin-bottom: 1.5rem;
}

.single-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.single-post-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(53, 58, 63, 0.4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-muted-fg);
}

/* === Page Templates === */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(240,160,48,0.08) 0%, transparent 60%);
}

.page-header h1 {
  font-size: 2.75rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--color-muted-fg);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 4rem 0 6rem;
}

/* === Legal Pages === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content p {
  color: var(--color-muted-fg);
  line-height: 1.8;
}

/* === Solutions Detail Page === */
.solutions-detail .card {
  text-align: center;
}

.solutions-detail .card-icon {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .hero .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section { padding: 4rem 0; }
  .section-header h2 { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .testimonial-slide .testimonial-inner {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a { margin: 0 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.65rem; }
  .single-post-header h1 { font-size: 1.75rem; }
}
