/*
Theme Name: SoftMachine
Theme URI: https://softmachine.fr
Author: Seobooster Ltd
Description: Thème custom SoftMachine — Annuaire pros & catalogue équipements impression/découpe
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: softmachine
*/

/* ====================================================
   VARIABLES CSS — DESIGN SYSTEM SOFTMACHINE
   ==================================================== */
:root {
  /* Couleurs globales */
  --color-primary:       #1b2a3b;
  --color-primary-dark:  #0d1520;
  --color-cta:           #e63946;
  --color-cta-dark:      #c1121f;
  --color-secondary:     #457b9d;
  --color-accent:        #a8dadc;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f4f7fb;
  --color-bg-dark:       #1b2a3b;
  --color-text:          #1e293b;
  --color-text-light:    #64748b;
  --color-border:        #e2e8f0;
  --color-success:       #059669;

  /* Couleurs silos */
  --color-dtf:           #7c3aed;
  --color-plotter:       #2563eb;
  --color-laser:         #dc2626;
  --color-covering:      #059669;
  --color-sublimation:   #d97706;

  /* Typographie */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Rayons */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);

  /* Espacements */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width:       1200px;
  --max-width-text:  760px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-cta); }

ul, ol { padding-left: 1.5em; }

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

/* ====================================================
   TYPOGRAPHIE
   ==================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: .75em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-light { color: var(--color-text-light); }

/* ====================================================
   HEADER
   ==================================================== */
#sm-header {
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#sm-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-md);
}

/* Logo */
#sm-header .logo a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

#sm-header .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

#sm-header .logo-text span {
  color: var(--color-cta);
}

/* Navigation desktop */
#sm-nav {
  display: none;
}

#sm-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--space-xs);
}

#sm-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

#sm-nav a:hover, #sm-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* CTA header */
.header-cta-btn {
  background: var(--color-cta);
  color: #fff !important;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background .2s, transform .1s !important;
}

.header-cta-btn:hover {
  background: var(--color-cta-dark) !important;
  transform: translateY(-1px);
}

/* Burger menu */
.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Menu mobile */
#sm-mobile-menu {
  display: none;
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,.1);
}

#sm-mobile-menu.open {
  display: block;
}

#sm-mobile-menu ul {
  list-style: none;
  padding: var(--space-md) 0;
}

#sm-mobile-menu li a {
  display: block;
  color: rgba(255,255,255,.9);
  padding: var(--space-sm) var(--space-xl);
  font-size: .95rem;
  transition: background .2s;
}

#sm-mobile-menu li a:hover {
  background: rgba(255,255,255,.08);
}

/* ====================================================
   BREADCRUMB
   ==================================================== */
#sm-breadcrumb {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
  font-size: .8rem;
  color: var(--color-text-light);
}

#sm-breadcrumb .breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

#sm-breadcrumb a { color: var(--color-secondary); }
#sm-breadcrumb a:hover { color: var(--color-cta); }
#sm-breadcrumb .sep { color: var(--color-border); }

/* ====================================================
   HERO SECTION
   ==================================================== */
#sm-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #243b55 60%, #1b2a3b 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

#sm-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#sm-hero .hero-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

#sm-hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

#sm-hero h1 em {
  color: var(--color-cta);
  font-style: normal;
}

#sm-hero .hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-lg);
  max-width: 56ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 6px var(--space-md);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}

/* ====================================================
   FORMULAIRE ANNUAIRE
   ==================================================== */
#sm-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
}

#sm-form-card .form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

#sm-form-card .form-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--color-cta);
  border-radius: 2px;
}

.annuaire-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.annuaire-form input,
.annuaire-form select,
.annuaire-form textarea {
  width: 100%;
  padding: 12px var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.annuaire-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.annuaire-form input:focus,
.annuaire-form select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(69,123,157,.15);
}

.annuaire-form input.valid   { border-color: var(--color-success); }
.annuaire-form input.invalid { border-color: var(--color-cta); }

.annuaire-form button[type="submit"] {
  width: 100%;
  padding: 14px var(--space-xl);
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  min-height: 52px;
}

.annuaire-form button[type="submit"]:hover {
  background: var(--color-cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,57,70,.35);
}

.annuaire-form button[type="submit"]:active {
  transform: translateY(0);
}

.form-reassurance {
  text-align: center;
  font-size: .78rem;
  color: var(--color-text-light);
  margin-top: -.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-reassurance::before {
  content: '🔒';
  font-size: .85em;
}

.form-success {
  background: #f0fdf4;
  border: 2px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  color: #065f46;
  font-weight: 500;
}

/* ====================================================
   SILOS — SECTION ACCUEIL
   ==================================================== */
#sm-silos {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
}

.silos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.silo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.silo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.silo-card.silo-dtf::before         { background: var(--color-dtf); }
.silo-card.silo-plotter::before      { background: var(--color-plotter); }
.silo-card.silo-laser::before        { background: var(--color-laser); }
.silo-card.silo-covering::before     { background: var(--color-covering); }
.silo-card.silo-sublimation::before  { background: var(--color-sublimation); }

.silo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.silo-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.silo-dtf .silo-icon        { background: rgba(124,58,237,.1); }
.silo-plotter .silo-icon     { background: rgba(37,99,235,.1); }
.silo-laser .silo-icon       { background: rgba(220,38,38,.1); }
.silo-covering .silo-icon    { background: rgba(5,150,105,.1); }
.silo-sublimation .silo-icon { background: rgba(217,119,6,.1); }

.silo-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.silo-card p {
  font-size: .875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.silo-link {
  font-size: .875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.silo-dtf .silo-link        { color: var(--color-dtf); }
.silo-plotter .silo-link     { color: var(--color-plotter); }
.silo-laser .silo-link       { color: var(--color-laser); }
.silo-covering .silo-link    { color: var(--color-covering); }
.silo-sublimation .silo-link { color: var(--color-sublimation); }

/* ====================================================
   SECTION "COMMENT ÇA MARCHE"
   ==================================================== */
#sm-how {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.how-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: .5em;
}

.step-content p {
  font-size: .875rem;
  color: var(--color-text-light);
}

/* ====================================================
   SECTION STATISTIQUES
   ==================================================== */
#sm-stats {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: .25em;
}

.stat-item .stat-label {
  font-size: .825rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ====================================================
   SECTION ÉDITORIALE / TEXTE SEO
   ==================================================== */
#sm-editorial {
  padding: var(--space-3xl) 0;
}

.editorial-content {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.editorial-content h2 { margin-top: var(--space-xl); }
.editorial-content h3 { margin-top: var(--space-lg); }

/* ====================================================
   FAQ ACCORDION
   ==================================================== */
#sm-faq {
  background: var(--color-bg-alt);
  padding: var(--space-3xl) 0;
}

.faq-list {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s;
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background .2s;
}

.faq-question:hover { background: var(--color-bg-alt); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: transform .3s, background .2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--color-cta);
  color: #fff;
}

.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-md);
  font-size: .875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ====================================================
   VILLES À PROXIMITÉ
   ==================================================== */
.nearby-cities {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.nearby-cities h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.nearby-cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.nearby-cities-grid a {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-md);
  font-size: .825rem;
  font-weight: 500;
  color: var(--color-secondary);
  transition: border-color .2s, box-shadow .2s;
}

.nearby-cities-grid a:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

/* ====================================================
   GRILLE VILLES
   ==================================================== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.city-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow .2s, border-color .2s;
}

.city-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-secondary);
}

.city-card a {
  font-weight: 600;
  color: var(--color-primary);
  font-size: .875rem;
}

.city-card .city-region {
  font-size: .75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ====================================================
   SECTION CTA FINAL
   ==================================================== */
#sm-cta-final {
  background: linear-gradient(135deg, var(--color-primary) 0%, #243b55 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  text-align: center;
}

#sm-cta-final h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

#sm-cta-final p {
  color: rgba(255,255,255,.8);
  margin: 0 auto var(--space-2xl);
  max-width: 52ch;
}

/* ====================================================
   FOOTER
   ==================================================== */
#sm-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text span { color: var(--color-cta); }

.footer-brand p {
  font-size: .825rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: .825rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.footer-legal-links a {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}

.footer-legal-links a:hover { color: rgba(255,255,255,.8); }

/* ====================================================
   STICKY BAR MOBILE
   ==================================================== */
#sm-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  border-top: 2px solid var(--color-cta);
  padding: var(--space-md);
  z-index: 999;
  display: flex;
  gap: var(--space-sm);
}

#sm-sticky-bar a,
#sm-sticky-bar button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .2s;
  text-decoration: none;
}

#sm-sticky-bar .sticky-tel {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

#sm-sticky-bar .sticky-devis {
  background: var(--color-cta);
  color: #fff;
}

#sm-sticky-bar .sticky-tel:hover,
#sm-sticky-bar .sticky-devis:hover { opacity: .9; }

/* ====================================================
   TABLEAUX COMPARATIFS
   ==================================================== */
.sm-table-wrapper {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.sm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 500px;
}

.sm-table th {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
}

.sm-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.sm-table tr:nth-child(even) td { background: var(--color-bg-alt); }
.sm-table tr:hover td { background: #eef2f7; }

.sm-table .check { color: var(--color-success); font-size: 1.1rem; }
.sm-table .cross  { color: var(--color-cta); font-size: 1.1rem; }

/* ====================================================
   ENCADRÉS
   ==================================================== */
.box-info, .box-tip, .box-warning {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  font-size: .875rem;
  line-height: 1.65;
}

.box-info {
  background: #eff6ff;
  border-left: 4px solid var(--color-plotter);
  color: #1e40af;
}

.box-tip {
  background: #f0fdf4;
  border-left: 4px solid var(--color-covering);
  color: #065f46;
}

.box-warning {
  background: #fff7ed;
  border-left: 4px solid var(--color-sublimation);
  color: #9a3412;
}

.box-info strong, .box-tip strong, .box-warning strong {
  display: block;
  margin-bottom: .5em;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ====================================================
   PAGE CONTENU
   ==================================================== */
#sm-page-content {
  padding: var(--space-3xl) 0;
}

.page-content-inner {
  display: grid;
  gap: var(--space-2xl);
}

.page-main-content h2 {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-bg-alt);
}

.page-main-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.page-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-form-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

/* ====================================================
   TAGS / BADGES
   ==================================================== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-md);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}

.tag-dtf        { background: rgba(124,58,237,.1); color: var(--color-dtf); }
.tag-plotter    { background: rgba(37,99,235,.1);  color: var(--color-plotter); }
.tag-laser      { background: rgba(220,38,38,.1);  color: var(--color-laser); }
.tag-covering   { background: rgba(5,150,105,.1);  color: var(--color-covering); }
.tag-sublimation { background: rgba(217,119,6,.1); color: var(--color-sublimation); }

/* ====================================================
   CARDS MARQUES / GUIDES
   ==================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.guide-card, .marque-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow .2s, transform .2s;
}

.guide-card:hover, .marque-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-card h3, .marque-card h3 { font-size: 1rem; margin-bottom: .5em; }
.guide-card p, .marque-card p { font-size: .825rem; color: var(--color-text-light); margin: 0 0 var(--space-md); }

/* ====================================================
   NOTATION ÉTOILES
   ==================================================== */
.star-rating {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: .8rem;
  color: var(--color-text-light);
  margin-left: .5em;
}

/* ====================================================
   PAGINATION
   ==================================================== */
.sm-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.sm-pagination a, .sm-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background .2s, border-color .2s;
}

.sm-pagination a:hover { background: var(--color-bg-alt); border-color: var(--color-secondary); }
.sm-pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ====================================================
   RESPONSIVE — TABLETTE (768px+)
   ==================================================== */
@media (min-width: 768px) {
  #sm-nav { display: flex; }
  .burger-btn { display: none; }

  #sm-hero .hero-inner {
    grid-template-columns: 1fr 420px;
  }

  .silos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #sm-sticky-bar {
    display: none; /* caché sur tablette */
  }
}

/* ====================================================
   RESPONSIVE — DESKTOP (1024px+)
   ==================================================== */
@media (min-width: 1024px) {
  .silos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-content-inner {
    grid-template-columns: 1fr 360px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #sm-sticky-bar {
    display: none;
  }
}

/* ====================================================
   UTILITAIRES
   ==================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-0 { margin-top: 0 !important; }
.mb-xl { margin-bottom: var(--space-xl); }
.pb-0 { padding-bottom: 0 !important; }

/* Smooth fade-in au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
