/*
Theme Name: La Fabrica
Theme URI: https://new.la-fabrica.fr
Author: La Fabrica
Description: Thème personnalisé La Fabrica – Salon haut de gamme pour coiffeurs indépendants à Paris.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: la-fabrica
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 8rem); text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: #111;
  color: #fff;
}

.section--beige {
  background: #f5f0eb;
}

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.site-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.site-nav a:hover { opacity: 0.7; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #000;
    padding: 1.5rem 2rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: #1a1008;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 2rem 60px;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,12,4,0.65) 0%, rgba(20,12,4,0.45) 50%, rgba(20,12,4,0.70) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-title { color: #fff; margin-bottom: 1.5rem; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid currentColor;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.btn-primary:hover { background: transparent; color: #fff; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover { border-color: #fff; }

.btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
  width: 60%;
}
.btn-dark:hover { background: transparent; color: #111; }

.btn-outline {
  background: transparent;
  color: #111;
  border-color: #111;
  width: 60%;
}
.btn-outline:hover { background: #111; color: #fff; }

/* =============================================
   HOME SECTIONS (4 blocs)
   ============================================= */
.home-blocks { }

.home-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  align-items: stretch;
}

.home-block--reverse { direction: rtl; }
.home-block--reverse > * { direction: ltr; }

.home-block__image {
  background: #c8c0b8;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.home-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.home-block__content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.home-block__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
}

.home-block__title { font-size: clamp(2rem, 3.5vw, 3rem); }
.home-block__subtitle { font-weight: 700; font-size: 1rem; }
.home-block__text { color: #444; font-size: 0.95rem; }

@media (max-width: 900px) {
  .home-block { grid-template-columns: 1fr; direction: ltr; }
  .home-block__image { min-height: 260px; }
  .home-block__content { padding: 40px 24px; }
}

/* =============================================
   PAGE HERO (sous-pages)
   ============================================= */
.page-hero {
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  padding: 140px 2rem 80px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,6,2,0.70) 0%, rgba(10,6,2,0.55) 50%, rgba(10,6,2,0.75) 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 1rem auto 2rem; opacity: 0.85; }

/* =============================================
   PAGE LIEU
   ============================================= */
.lieu-intro {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lieu-intro__text h2 { margin-bottom: 1rem; }
.lieu-intro__text p { color: #444; }

.espaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: #eee;
}

.espace-card {
  background: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.espace-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}

.espace-card__title {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.espace-card__text { color: #555; font-size: 0.9rem; line-height: 1.6; }

.espace-card .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 768px) {
  .lieu-intro { grid-template-columns: 1fr; }
}

/* =============================================
   PAGE OFFRE
   ============================================= */
.avantages-tabs {
  padding: 60px 0;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: #aaa;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn.active { color: #111; border-bottom-color: #111; }
.tab-btn:hover { color: #111; }

.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tab-panel h3 { font-size: 2rem; margin-bottom: 1rem; }
.tab-panel p { color: #444; font-size: 0.95rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #111;
  margin: 60px 0;
}

.step-card {
  background: #fff;
  padding: 40px 32px;
}

.step-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #aaa;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.step-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: #555; }

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #eee;
  margin: 60px 0;
}

.tarif-card {
  background: #111;
  color: #fff;
  padding: 50px 44px;
}

.tarif-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.tarif-card p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .tab-panel.active { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tarifs-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PAGE COLLECTIF
   ============================================= */
.collectif-intro {
  padding: 80px 0 40px;
  max-width: 700px;
}

.collectif-intro h2 { margin-bottom: 1rem; }
.collectif-intro p { color: #444; font-size: 1rem; }

.coiffeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  background: #eee;
  margin: 40px 0 80px;
}

.coiffeur-card {
  background: #fff;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}

.coiffeur-card:hover { background: #111; color: #fff; }

.coiffeur-card__name {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coiffeur-card__specialite {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coiffeur-card:hover .coiffeur-card__specialite { color: #aaa; }

/* =============================================
   PAGE COLLABS
   ============================================= */
.collabs-spaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #eee;
  margin: 60px 0;
}

.collab-space {
  background: #fff;
  padding: 44px 36px;
}

.collab-space h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.collab-space p { font-size: 0.9rem; color: #555; margin-bottom: 1.5rem; }

.testimonial {
  background: #111;
  color: #fff;
  padding: 80px 0;
}

.testimonial blockquote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial blockquote footer {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .collabs-spaces { grid-template-columns: 1fr; }
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: #111;
  color: #fff;
  padding: 80px 2rem;
  text-align: center;
}

.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.cta-banner p { opacity: 0.75; margin-bottom: 2rem; }
.cta-banner .btn-primary { background: #fff; color: #111; border-color: #fff; }
.cta-banner .btn-primary:hover { background: transparent; color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #000;
  color: #fff;
  padding: 60px 2rem 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 50px;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-tagline { font-size: 0.85rem; opacity: 0.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.85rem; opacity: 0.75; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.78rem;
  opacity: 0.45;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Responsive padding */
@media (max-width: 640px) {
  .section { padding: 50px 0; }
  .page-hero { padding: 120px 1.5rem 60px; }
}
