/* ─── POLICE ─── */
/* Remplace le chemin ci-dessous par le chemin vers ton fichier de police */
@font-face {
  font-family: 'Montserrat-light';
  src: url('asset/Typo/Montserrat-light.ttf') format('ttf');
  font-weight: 300 600;
  font-style: normal italic;
  font-display: swap;
}

@font-face {
  font-family: 'BigCaslon';
  src: url('asset/Typo/BigCaslon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* Google Fonts — à remplacer par @font-face si police locale 
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');
*/
/* ─── VARIABLES ─── */
:root {
  --beige: #f8f5f2;
  --marron: #321911;
  --vert: #cae3cd;

  --brown-dark: #321911;
  --brown-mid: #5a3020;
  --brown-light: #8B6B5A;
  --cream: #f8f5f2;
  --cream-dark: #ede8e2;
  --white: #FFFFFF;
  --text-primary: #321911;
  --text-secondary: #321911;
  --border-color: #D4C8BE;
  --font-display: 'BigCaslon', Georgia, serif;
  --font-body: 'BigCaslon', Georgia, serif;
}

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

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

body {
  font-family: 'Montserrat-light', sans-serif;
  color: var(--text-primary);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  font-size: 16px;
}

h1 {
  font-family: 'BigCaslon', Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  font-style: italic;
}

h2, h3 {
  font-family: 'BigCaslon', Georgia, serif;
}

h2 {
  font-size: 18px;
  font-weight: bold;
}

h3 {
  font-size: 16px;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(50,25,17,0.95);
}

nav.scrolled .nav-brand img {
  height: 168px;
}

nav.scrolled .nav-contact {
  color: var(--white);
}

nav.scrolled .nav-contact:hover {
  color: var(--cream-dark);
}

nav.scrolled .nav-hamburger span {
  background: var(--white);
}

.nav-hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 1px;
  transition: 0.3s;
}


.nav-brand {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-brand img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-contact {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-contact:hover { color: var(--brown-light); }

/* ─── HERO ─── */
.hero {
  margin-top: 0;
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--cream-dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248,245,242,0.25) 0%, rgba(248,245,242,0.65) 70%, rgba(248,245,242,0.85) 100%),
    url('asset/photo_banniere_index.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-content .btn-primary {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-quote {
  font-family: 'BigCaslon', Georgia, serif;
  font-weight: 300;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 3rem;
  background: var(--brown-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background: var(--brown-mid);
}

.hero-content .btn-primary:hover {
  transform: translateX(-50%) translateY(-1px);
}

/* ─── SECTION: LA MAISON ─── */
.section {
  padding: 5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-intro {
  padding: 5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-intro p {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: left;
}

.section-intro strong {
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ─── NOS SERVICES ─── */
.section-title {
  font-family: 'BigCaslon', Georgia, serif;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.services-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  padding-top: 0;
}

.services-left {
  flex: 1;
}

.services-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-list {
  list-style: none;
}

.services-list li {
  border-bottom: 1px solid var(--border-color);
  padding: 1.3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.services-list li:first-child {
  border-top: 1px solid var(--border-color);
}

.service-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── MANIFESTO BANNER ─── */
.manifesto {
  background: var(--brown-dark);
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin: 0 16px;
}

.manifesto p {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 2;
  color: var(--cream);
  letter-spacing: 0.02em;
}

/* ─── NOS SECTEURS ─── */
.secteurs {
  padding: 5rem 3rem 2.5rem;
  max-width: 1060px;
  margin: 0 auto;
}

.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.secteur-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem 1.8rem 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  background: var(--white);
}

.secteur-card:hover {
  border-color: var(--brown-light);
  box-shadow: 0 8px 30px rgba(50,25,17,0.08);
  transform: translateY(-3px);
}

.secteur-icon {
  width: 252px;
  height: 252px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secteur-icon img {
  width: 252px;
  height: 252px;
  object-fit: contain;
}

.secteur-card h3 {
  font-family: var(--font-body);
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.secteur-card p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: justify;
}

.secteur-card p strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* ─── DIAGNOSTIC ─── */
.diagnostic {
  padding: 2.5rem 3rem 5rem;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.diagnostic-text h2 {
  font-family: 'BigCaslon', Georgia, serif;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.diagnostic-text p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.diagnostic-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.diagnostic-buttons .btn-outline {
  flex: 1;
  text-align: center;
  line-height: 1.5;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--brown-dark);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
  background: var(--brown-dark);
  color: var(--white);
}

.diagnostic-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ─── PAGES LÉGALES ─── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
}

.legal-update {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.legal-content h1 {
  font-family: 'BigCaslon', Georgia, serif;
  font-size: 2rem;
  font-weight: normal;
  font-style: italic;
  color: var(--brown-dark);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-family: 'BigCaslon', Georgia, serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.legal-content p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.legal-content a {
  color: var(--brown-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--brown-light);
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 1.2rem;
}

.legal-list li {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.legal-list li::before {
  content: '—';
  position: absolute;
  left: -0.8rem;
  color: var(--brown-light);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 6rem 1.5rem 3.5rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 3rem;
  text-align: center;
}

footer p {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover { color: var(--brown-dark); }

/* ─── NAV MENU ─── */

/* Overlay sombre derrière le panneau (desktop) */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(20, 10, 6, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Panneau latéral */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 99;
  width: 360px;
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-menu.open {
  transform: translateX(0);
}

.nav-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.nav-menu-list a {
  font-family: 'BigCaslon', Georgia, serif;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: normal;
  color: rgba(248, 245, 242, 0.4);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s, letter-spacing 0.3s;
  display: inline-block;
}

.nav-menu-list a:hover {
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav-menu-list a.active {
  color: var(--cream);
  letter-spacing: 0.04em;
}


/* Hamburger → X animation */
.nav-hamburger {
  position: relative;
  z-index: 101;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile : plein écran */
@media (max-width: 768px) {
  .nav-menu {
    width: 100%;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
  }

  .nav-menu-list {
    text-align: center;
    gap: 2.2rem;
  }

  .nav-menu-list a {
    font-size: 2.55rem;
  }

  .nav-menu-list a.active::before {
    display: none;
  }

  .nav-overlay {
    display: none;
  }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; background: var(--beige); }
  .nav-brand h1 { }
  .nav-brand img { height: 42px; }
  .nav-contact { font-size: 11px; }

  .hero { height: 55vh; min-height: 380px; }
  .hero-quote { font-size: 1.2rem; padding: 0 1.5rem; }

  .section, .section-intro { padding: 3.5rem 1.5rem; }
  .secteurs { padding: 3.5rem 1.5rem 1.75rem; }

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

  .diagnostic {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem 3.5rem;
    gap: 2rem;
  }

  .diagnostic-image { order: -1; }

  .manifesto { padding: 1.5rem 0.75rem; }
  .manifesto p { font-size: 13px; }
  .services-section { grid-template-columns: 1fr; }
  .services-right { justify-content: flex-start; }
  .manifesto p { }

  footer { padding: 1.5rem; }
  footer p { font-size: 14px; }
  footer a { font-size: 10px; }
}
