/* =========================================================
   SISE ARCHITECTURE - Feuille de style principale
   ========================================================= */

/* Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background: #FAFAF7;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root {
  --accent: #B8956A;
  --accent-dark: #9a7a54;
  --dark: #1a1a1a;
  --secondary: #2C3E30;
  --light: #FAFAF7;
  --gray: #6b6b6b;
  --gray-light: #e8e6e0;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-width: 1240px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: #333; }

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

/* Accessibilité --------------------------------------------- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--dark); color: #fff;
  padding: .75rem 1.25rem; z-index: 1000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header & navigation --------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--gray-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--max-width); margin: 0 auto;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: .05em;
}
.logo span { color: var(--accent); }

.main-nav ul {
  display: flex; gap: 2.5rem; list-style: none;
}
.main-nav a {
  font-size: .95rem; font-weight: 500;
  position: relative; padding: .5rem 0;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--accent); }

.nav-toggle {
  display: none; width: 30px; height: 24px;
  position: relative; z-index: 101;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--dark); transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------ */
.hero {
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C3E30 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 4rem 0;
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero .lead {
  font-size: 1.25rem; color: rgba(255,255,255,.85);
  margin-bottom: 2rem; max-width: 600px;
}

/* Boutons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem;
  font-size: .95rem; font-weight: 500;
  letter-spacing: .03em;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: #fff; color: var(--dark); border-color: #fff;
}
.btn-dark {
  background: var(--dark); color: #fff;
}
.btn-dark:hover { background: var(--secondary); transform: translateY(-2px); }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections génériques --------------------------------------- */
section { padding: 5rem 0; }

.section-header {
  text-align: center; margin-bottom: 3.5rem;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-header p { color: var(--gray); font-size: 1.05rem; }

/* Cards & grilles ------------------------------------------ */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-light);
}
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184, 149, 106, .1);
  color: var(--accent);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Section "à propos" avec image ---------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split img { border-radius: 4px; box-shadow: var(--shadow-lg); }
.split .eyebrow {
  color: var(--accent); font-size: .85rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem;
  display: inline-block;
}

/* Portfolio ------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 1.5rem;
  opacity: 0; transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; margin-bottom: .25rem; }
.portfolio-overlay p { color: rgba(255,255,255,.8); margin: 0; font-size: .9rem; }

/* Processus ------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: var(--dark); color: var(--accent);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.process-step p { font-size: .95rem; color: var(--gray); }

/* CTA band -------------------------------------------------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Formulaire de contact ------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  background: var(--dark); color: #fff;
  padding: 2.5rem;
  border-radius: 4px;
}
.contact-info h3 { color: #fff; margin-bottom: 1.5rem; }
.contact-info ul { list-style: none; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-info li:last-child { border: none; }
.contact-info .info-icon {
  color: var(--accent); font-size: 1.2rem; flex-shrink: 0;
}
.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; margin-bottom: .5rem;
  font-size: .9rem; font-weight: 500;
  color: var(--dark);
}
.form-group label .required { color: #c0392b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: inherit; font-size: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 3px;
  background: #FAFAF7;
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 149, 106, .15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group .error-msg {
  display: none;
  color: #c0392b; font-size: .85rem; margin-top: .35rem;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .error-msg { display: block; }

.form-check {
  display: flex; align-items: flex-start; gap: .75rem;
  margin: 1.5rem 0;
  font-size: .9rem; color: var(--gray);
}
.form-check input { margin-top: .25rem; }

.form-status {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
  display: none;
}
.form-status.success { display: block; background: #d4edda; color: #155724; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; }

/* Footer ---------------------------------------------------- */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #fff; font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #999; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: #999; font-size: .95rem; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: 1rem; display: inline-block;
}
.footer-logo span { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; color: #777;
}

/* Fil d'ariane ---------------------------------------------- */
.breadcrumb {
  padding: 1.25rem 0;
  font-size: .9rem; color: var(--gray);
  background: #f2f0ea;
}
.breadcrumb ol {
  display: flex; gap: .5rem; list-style: none; flex-wrap: wrap;
}
.breadcrumb li + li::before { content: '›'; margin-right: .5rem; color: var(--gray); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--dark); font-weight: 500; }

/* Page header ---------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, #2C3E30 0%, #1a1a1a 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* Bouton retour en haut ------------------------------------ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--dark); color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* Animation fade-up au scroll ------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive ------------------------------------------------ */
@media (max-width: 968px) {
  .grid-3, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .grid-3, .grid-2, .portfolio-grid, .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 340px; height: 100vh;
    background: #fff;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 1.5rem; }
  .main-nav a { font-size: 1.1rem; }

  .hero { min-height: 70vh; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-info, .contact-form { padding: 1.75rem; }
}
