/* =========================================================
   SL Créations — Feuille de style principale
   Palette : rouge casaque, noir profond, blanc, touche or
   ========================================================= */

:root {
  --sl-red: #E10E1F;
  --sl-red-dark: #B00A17;
  --sl-black: #0A0A0A;
  --sl-charcoal: #1A1A1A;
  --sl-gray-800: #2A2A2A;
  --sl-gray-500: #6B6B6B;
  --sl-gray-200: #E5E5E5;
  --sl-cream: #F7F5F0;
  --sl-white: #FFFFFF;
  --sl-gold: #C9A961;

  --font-display: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', 'Brush Script MT', cursive;

  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sl-charcoal);
  background: var(--sl-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Typographie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--sl-black);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1.15rem;
  text-transform: uppercase;
}

p {
  font-size: 1rem;
  color: var(--sl-gray-800);
  max-width: 65ch;
}

.tagline {
  font-family: var(--font-script);
  color: var(--sl-red);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sl-red);
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--sl-red);
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sl-black);
  border-bottom: 3px solid var(--sl-red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sl-white);
}

.brand-shield {
  width: 44px;
  height: 52px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--sl-red);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--sl-white);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--sl-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--sl-red);
}

.nav-cta {
  background: var(--sl-red);
  color: var(--sl-white) !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 0 !important;
  border: 2px solid var(--sl-red) !important;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--sl-black);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--sl-white);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  background: var(--sl-black);
  color: var(--sl-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/casaques-sur-mesure.png') center/cover no-repeat;
  opacity: 0.35;
  filter: contrast(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.65) 55%,
    rgba(10,10,10,0.3) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--gutter);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  color: var(--sl-white);
  font-size: clamp(2.75rem, 7vw, 6rem);
}

.hero h1 .accent {
  color: var(--sl-red);
  display: block;
}

.hero .tagline {
  color: var(--sl-white);
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 55ch;
}

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

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-weight: 500;
}

.btn-primary {
  background: var(--sl-red);
  color: var(--sl-white);
  border-color: var(--sl-red);
}

.btn-primary:hover {
  background: var(--sl-red-dark);
  border-color: var(--sl-red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--sl-white);
  border-color: var(--sl-white);
}

.btn-outline:hover {
  background: var(--sl-white);
  color: var(--sl-black);
}

.btn-dark {
  background: var(--sl-black);
  color: var(--sl-white);
  border-color: var(--sl-black);
}

.btn-dark:hover {
  background: var(--sl-red);
  border-color: var(--sl-red);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-dark {
  background: var(--sl-black);
  color: var(--sl-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--sl-white);
}

.section-dark p {
  color: rgba(255,255,255,0.8);
}

.section-cream {
  background: var(--sl-cream);
}

.section-head {
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head.center .eyebrow {
  padding-left: 3rem;
  padding-right: 3rem;
}

.section-head.center .eyebrow::before {
  left: 0;
}

.section-head.center .eyebrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--sl-red);
}

.section-head p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ---------- Chiffres clés ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat:last-child { border-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--sl-red);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

/* ---------- Grille produits (cards) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--sl-white);
  border: 1px solid var(--sl-gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(225,14,31,0.3);
}

.product-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sl-cream);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sl-red);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--sl-gray-500);
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sl-black);
  font-weight: 700;
  margin-top: auto;
}

.product-price small {
  font-size: 0.75rem;
  color: var(--sl-gray-500);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Bloc « sur mesure » featured ---------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.feature-split.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-image {
  background: var(--sl-black);
  overflow: hidden;
  min-height: 500px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sl-white);
}

.section-dark .feature-content {
  background: var(--sl-charcoal);
}

.feature-content ul {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
}

.feature-content li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--sl-gray-200);
  font-size: 1rem;
}

.section-dark .feature-content li {
  border-bottom-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}

.feature-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 1rem;
  height: 2px;
  background: var(--sl-red);
}

/* ---------- Cibles / audiences ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.audience {
  background: var(--sl-charcoal);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audience:hover {
  border-color: var(--sl-red);
  background: var(--sl-black);
}

.audience-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  color: var(--sl-red);
}

.audience h4 {
  color: var(--sl-white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.audience p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Étapes / processus ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--sl-gray-200);
  border: 1px solid var(--sl-gray-200);
}

.step {
  background: var(--sl-white);
  padding: 2.5rem 2rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--sl-red);
  line-height: 1;
  font-weight: 700;
}

.step h4 {
  margin: 1rem 0 0.75rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--sl-gray-500);
  margin: 0;
}

/* ---------- Témoignages ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial {
  padding: 2.5rem;
  background: var(--sl-white);
  border-left: 4px solid var(--sl-red);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--sl-black);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-red);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--sl-gray-500);
  margin-top: 0.25rem;
}

/* ---------- Galerie réalisations ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sl-cream);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
}

@media (max-width: 720px) {
  .gallery-item.wide { grid-column: span 1; }
}

/* ---------- Bannière CTA ---------- */

.cta-band {
  background: var(--sl-red);
  color: var(--sl-white);
  padding: clamp(3rem, 5vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--sl-white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  margin: 0 auto 2rem;
  max-width: 55ch;
}

/* ---------- Formulaire ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-info-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sl-gray-200);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-block:first-child { padding-top: 0; }

.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--sl-red);
  flex-shrink: 0;
}

.contact-info-block h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--sl-gray-500);
  margin-bottom: 0.35rem;
}

.contact-info-block a,
.contact-info-block p {
  color: var(--sl-black);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

.form {
  background: var(--sl-white);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--sl-gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

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

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-black);
  margin-bottom: 0.5rem;
}

.form-field label .req {
  color: var(--sl-red);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sl-gray-200);
  background: var(--sl-cream);
  color: var(--sl-black);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sl-red);
  background: var(--sl-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--sl-gray-500);
}

.form-check input {
  margin-top: 0.25rem;
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
  color: #2E7D32;
  display: none;
}

.form-msg.show { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sl-black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  color: var(--sl-white);
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer h5 {
  font-family: var(--font-display);
  color: var(--sl-white);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.65rem;
}

.footer ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--sl-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page header (pages internes) ---------- */

.page-header {
  background: var(--sl-black);
  color: var(--sl-white);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--sl-red) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--sl-white);
  max-width: 20ch;
}

.page-header p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-top: 1.25rem;
  max-width: 60ch;
}

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--sl-red); }
.breadcrumb span { padding: 0 0.75rem; opacity: 0.4; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .feature-split, .feature-split.reverse {
    grid-template-columns: 1fr;
  }
  .feature-split.reverse .feature-image {
    order: -1;
  }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sl-black);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--sl-red);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat:last-child { border-bottom: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
