@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f4f4;
  --surface: #fbfaf8;
  --surface-strong: #f0ece8;
  --text: #3b3937;
  --accent: #967f71;
  --accent-dark: #7d675a;
  --border: rgba(59, 57, 55, 0.14);
  --shadow: 0 18px 45px rgba(59, 57, 55, 0.08);
  --radius: 18px;
  --container: 1180px;
  --font-body: 'Noto Serif', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: relative;
}

.menu-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1002;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  background: rgba(244, 244, 244, 0.95);
  color: var(--text);
  font-size: 1.65rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
}

.site-logo {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 999;
  width: min(22vw, 180px);
  min-width: 110px;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

body.menu-open .site-logo {
  opacity: 0.35;
  filter: grayscale(0.2);
  pointer-events: none;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: min(300px, 82vw);
  height: 100%;
  padding: 110px 28px 28px;
  background: rgba(59, 57, 55, 0.98);
  color: #f8f6f4;
  transition: left 0.3s ease;
  z-index: 1001;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.side-menu a {
  display: block;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.side-menu a:hover,
.side-menu a.active {
  background: rgba(150, 127, 113, 0.18);
  border-color: rgba(150, 127, 113, 0.35);
  transform: translateX(4px);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 57, 55, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

main {
  padding-top: 112px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.hero,
.page-hero {
  padding: 54px 0 36px;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 26px;
}

.page-hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.page-hero-grid .brand-block {
  grid-column: 1 / -1;
}

.page-hero-combined {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.page-hero-section {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1,
.page-hero h1,
.section-title,
.card-title,
.footer-title,
.contact-card h2,
.legal-block h2 {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  line-height: 1.15;
}

.hero h1,
.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.hero p,
.page-hero p {
  font-size: 1.04rem;
  max-width: 60ch;
}

.hero-panel,
.card,
.contact-card,
.legal-block,
.form-card,
.highlight-panel,
.timeline-step,
.quote-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(250,248,246,0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.brand-block {
  width: 100%;
  padding: clamp(18px, 3vw, 34px);
  min-height: clamp(170px, 24vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(240,236,232,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-block img {
  width: min(100%, 1064px);
  height: clamp(140px, 20vw, 240px);
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn {
  background: var(--text);
  color: var(--bg);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

.section {
  padding: 34px 0 22px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.section-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.muted {
  color: rgba(59, 57, 55, 0.85);
}

.grid-3,
.grid-2,
.service-grid,
.contact-grid,
.legal-grid,
.pillars-grid,
.timeline-grid {
  display: grid;
  gap: 22px;
}

.grid-3,
.service-grid,
.pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.contact-grid,
.legal-grid,
.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.contact-card,
.legal-block,
.form-card,
.timeline-step,
.quote-card {
  padding: 24px;
}

.card-title,
.contact-card h2,
.legal-block h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card ul,
.contact-card ul,
.legal-block ul {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.contact-details-card {
  display: grid;
  gap: 22px;
  align-content: start;
}

.contact-card-section {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.list-clean {
  list-style: none;
  padding-left: 0;
}

.kicker {
  color: var(--accent-dark);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(150, 127, 113, 0.14);
  color: var(--accent-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.timeline-step h3,
.service-card h3,
.info-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p,
.info-card p,
.timeline-step p,
.legal-block p,
.contact-card p,
.card p {
  margin-bottom: 10px;
}

.highlight-panel {
  margin-top: 18px;
  padding: 26px;
}

.quote-card {
  border-left: 4px solid var(--accent);
}

.quote-card blockquote {
  font-size: 1.06rem;
  font-style: italic;
}

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(150, 127, 113, 0.08);
  border-radius: 0 16px 16px 0;
}

.contact-link {
  display: inline-block;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(150, 127, 113, 0.4);
}

.contact-link:hover {
  border-bottom-color: var(--accent-dark);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 57, 55, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  font-size: 0.93rem;
  color: rgba(59, 57, 55, 0.75);
}

footer {
  padding: 44px 0 52px;
}

.footer-card {
  padding: 26px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.footer-title {
  font-size: 1.8rem;
}

.small {
  font-size: 0.93rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(150, 127, 113, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(150, 127, 113, 0.2);
  font-size: 0.92rem;
}


.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 28px;
  align-items: stretch;
}

.profile-card,
.profile-text-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(250,248,246,0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.profile-image-wrap {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  min-height: 100%;
  background: rgba(240,236,232,0.75);
}

.profile-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.profile-meta {
  padding: 0 4px 4px;
  align-items: center;
  text-align: center;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-role {
  color: var(--accent-dark);
  margin-bottom: 0;
}

.profile-text-card {
  padding: 28px;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .page-hero-combined,
  .grid-3,
  .service-grid,
  .pillars-grid,
  .grid-2,
  .contact-grid,
  .legal-grid,
  .timeline-grid,
  .form-row,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    min-height: 420px;
  }

  .brand-block {
    min-height: auto;
  }

  .page-hero-section {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .site-logo {
    width: 122px;
    top: 18px;
    right: 18px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    top: 18px;
    left: 18px;
  }

  main {
    padding-top: 96px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .page-hero,
  .section,
  footer {
    padding-top: 26px;
  }

  .hero-panel,
  .card,
  .contact-card,
  .legal-block,
  .form-card,
  .timeline-step,
  .quote-card,
  .highlight-panel,
  .brand-block,
  .profile-card,
  .profile-text-card {
    padding: 20px;
  }

  .profile-image {
    min-height: 360px;
  }
}

/* --- Formulaire de contact : messages de retour --- */
.form-notice {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-notice--success {
  display: block;
  background: #eef5f0;
  color: #2d6a4f;
  border: 1px solid #b7dfc8;
}

.form-notice--error {
  display: block;
  background: #fdf2f0;
  color: #8b2c1a;
  border: 1px solid #e8b4aa;
}

/* --- Page 404 --- */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
