/*
Theme Name: Sidelab Theme
Theme URI: https://sidelab.local
Author: Matthieu Simon & Antigravity
Description: Thème sur-mesure pour Sidelab. Design "Fab Lab Pop" combinant l'atelier de prototypage technique et un style chaleureux.
Version: 1.0.0
Text Domain: sidelab
*/

:root {
  /* Variables CSS Sidelab (Inspiration PDF) */
  --sidelab-pop-orange: #FF6600; /* Orange vif */
  --sidelab-terracotta: #993333; /* Ton chaud */
  --sidelab-text: #1a1a1a; /* Un noir doux */
  --sidelab-bg: #FFFFFF; /* Fond blanc pur pour le style "modèle" */
  --color-border: #E0E0E0;

  /* Typographie */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* Pour les datas/labels techniques */

  /* Espacements & Grille */
  --container-width: 1200px;
  --gap-md: 2rem;
  --gap-lg: 4rem;

  /* Formes organiques */
  --radius-organic: 40% 60% 70% 30% / 40% 50% 60% 50%;
  --radius-technical: 4px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--sidelab-bg);
  color: var(--sidelab-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sidelab-pop-orange);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

/* Utilitaires */
.pop-orange {
  color: var(--sidelab-pop-orange);
}
.bold {
  font-weight: 900;
}
.text-mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sidelab-pop-orange);
  display: block;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  background-color: var(--sidelab-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 400; /* Le bold est géré par la classe .bold */
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* Dégradé orange pour le logo */
.site-title .bold {
  background: linear-gradient(90deg, var(--sidelab-pop-orange) 0%, var(--sidelab-terracotta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1rem;
}

/* ==========================================================================
   Sections Générales
   ========================================================================== */
.section {
  padding: var(--gap-lg) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Grille de fond subtile pour le côté CAO/Blueprint */
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--sidelab-text);
  opacity: 0.9;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--sidelab-pop-orange);
  color: white !important;
  font-weight: 700;
  border-radius: var(--radius-technical);
  border: 2px solid var(--sidelab-pop-orange);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--sidelab-pop-orange) !important;
}

.btn-secondary {
  background-color: transparent;
  color: var(--sidelab-text) !important;
  border-color: var(--sidelab-text);
}

.btn-secondary:hover {
  background-color: var(--sidelab-text);
  color: white !important;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Product Section (Lampe Titi)
   ========================================================================== */
.product-specs {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: var(--radius-technical);
  border-left: 4px solid var(--sidelab-pop-orange);
  margin: 1.5rem 0;
  width: 100%;
}

.product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.product-specs li {
  margin-bottom: 0.5rem;
  display: flex;
}

.product-specs li strong {
  width: 130px;
  color: var(--sidelab-pop-orange);
}

/* Image avec forme organique */
.organic-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.organic-shape {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: var(--sidelab-terracotta);
  border-radius: var(--radius-organic);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: morph 8s ease-in-out infinite;
}

.organic-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--sidelab-text);
  color: var(--sidelab-bg);
  padding: var(--gap-md) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-slogan {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive basique */
@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}
