/* ============================================
   MTL CRÉATION — Site Vitrine
   Brand Book v1.1, Mai 2026
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* --- Custom Properties (Brand Book) --- */
:root {
  /* Primaires — ratio 60/25/12/3 */
  --creme:       #F4EDE0;
  --noir-doux:   #1C1B16;
  --olive:       #5C6B47;
  --terracotta:  #A85A3C;

  /* Nuances de support */
  --creme-pierre: #ECE3D3;
  --creme-argile: #E5DAC5;
  --olive-maquis: #6E7D57;
  --noir-bistre:  #2A2822;

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espacements */
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-gap: clamp(4rem, 10vw, 8rem);

  /* Largeur max contenu */
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--noir-doux);
  background-color: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography (Brand Book specs) --- */

/* Display — 80px, italic 300, lh .95 */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* H1 — 56px, italic 400 */
h1, .h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* H2 — 36px, italic 400 */
h2, .h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
}

/* H3 */
h3, .h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
}

/* Lede — 22px, italic 300, lh 1.35 */
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  line-height: 1.35;
}

/* Tag — 10px, 500, uppercase, ls 0.3em */
.tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-gap) 0;
}

/* --- Filet olive (1px separator) --- */
.filet {
  border: none;
  border-top: 1px solid var(--olive);
  opacity: 0.4;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--creme);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(92, 107, 71, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-initials {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--noir-doux);
  line-height: 1;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: var(--olive);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-creation {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--noir-doux);
  line-height: 1;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
  line-height: 1;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--noir-doux);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--olive);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--olive);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--noir-doux);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--creme);
  padding: 3rem var(--gutter);
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  color: var(--noir-doux);
  transition: color 0.3s ease;
}

.nav-mobile a:hover {
  color: var(--olive);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
  position: relative;
}

.hero-tagline {
  margin-top: 1.5rem;
  color: var(--olive);
}

.hero-manifesto {
  max-width: 480px;
  margin-top: 2.5rem;
  color: var(--noir-bistre);
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--olive), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */

/* Section titre centré */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header .tag {
  color: var(--olive);
  margin-bottom: 1rem;
  display: block;
}

.section-header p {
  margin-top: 1rem;
  color: var(--noir-bistre);
  opacity: 0.7;
}

/* ============================================
   COLLECTIONS GRID (homepage aperçu)
   ============================================ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--creme-pierre);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: transform 0.4s ease;
}

.collection-card:hover {
  transform: scale(0.98);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.03);
}

.collection-card-content {
  position: relative;
  z-index: 2;
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 27, 22, 0.6) 0%, transparent 60%);
  z-index: 1;
}

.collection-card h3 {
  color: var(--creme);
  margin-bottom: 0.25rem;
}

.collection-card .tag {
  color: var(--creme-pierre);
  opacity: 0.8;
}

/* ============================================
   PRODUIT / FICHE PRODUIT
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--creme);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--creme-pierre);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-info {
  padding: 1.25rem 0;
}

.product-card-info h3 {
  margin-bottom: 0.5rem;
}

.product-card-info p {
  font-size: 0.875rem;
  color: var(--noir-bistre);
  opacity: 0.7;
  line-height: 1.5;
}

.product-card-info .tag {
  margin-top: 0.75rem;
  color: var(--olive);
  display: inline-block;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* Badge sur devis */
.badge-devis {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.25rem 0.75rem;
  margin-top: 0.75rem;
}

/* ============================================
   MANIFESTO BAND
   ============================================ */
.manifesto-band {
  background-color: var(--noir-doux);
  color: var(--creme);
  text-align: center;
  padding: var(--section-gap) var(--gutter);
}

.manifesto-band .lede {
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--section-gap) var(--gutter);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto 2rem;
  opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--noir-doux);
  color: var(--noir-doux);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--noir-doux);
  color: var(--creme);
}

.btn--olive {
  border-color: var(--olive);
  color: var(--olive);
}

.btn--olive:hover {
  background-color: var(--olive);
  color: var(--creme);
}

.btn--filled {
  background-color: var(--noir-doux);
  color: var(--creme);
}

.btn--filled:hover {
  background-color: var(--noir-bistre);
}

/* ============================================
   ABOUT / ATELIER PREVIEW
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--creme-pierre);
}

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

.about-preview-content .tag {
  color: var(--olive);
  display: block;
  margin-bottom: 1rem;
}

.about-preview-content h2 {
  margin-bottom: 1rem;
}

.about-preview-content p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* ============================================
   FORMULAIRE
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--noir-doux);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--noir-doux);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(92, 107, 71, 0.3);
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--olive);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6B47' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--noir-doux);
  color: var(--creme);
  padding: 3rem 0 1.5rem;
}

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

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

.footer-brand .logo-initials {
  color: var(--creme);
}

.footer-brand .logo-creation {
  color: var(--creme);
}

.footer-brand .logo-subtitle {
  color: var(--olive-maquis);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.6;
  max-width: 280px;
  line-height: 1.5;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive-maquis);
  margin-bottom: 1.25rem;
}

.footer-nav a {
  display: block;
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 237, 224, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ============================================
   PAGE INTÉRIEURE — HEADER
   ============================================ */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero .tag {
  color: var(--olive);
  display: block;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 540px;
  margin: 1rem auto 0;
  opacity: 0.7;
}

/* ============================================
   CONTENT BLOCKS (pages intérieures)
   ============================================ */
.content-block {
  max-width: 720px;
  margin: 0 auto;
}

.content-block p {
  margin-bottom: 1.25rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ============================================
   ANIMATIONS (entrée en scroll)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-preview-image {
    aspect-ratio: 16 / 9;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Mobile */
@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
    padding: 5rem var(--gutter) 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 60px;
  }

  .nav-mobile {
    top: 60px;
  }

  .page-hero {
    padding: 6rem 0 3rem;
  }
}
