/* ===================================================================
   LAYOUT — containers, sections, grids
   =================================================================== */

/* ===== CONTAINERS ===== */

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-medium {
  width: 100%;
  max-width: var(--container-medium);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container,
  .container-medium,
  .container-narrow {
    padding-inline: 4rem;
  }
}

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

.section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.section-large {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.section-alt {
  background-color: var(--secondary);
}

@media (max-width: 768px) {
  .section      { padding-top: 5rem; padding-bottom: 5rem; }
  .section-large { padding-top: 6rem; padding-bottom: 6rem; }
}

/* Section intro / header */
.section-intro {
  margin-bottom: 4rem;
}

.section-intro h2 {
  margin-bottom: 1.25rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* ===== GRIDS ===== */

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

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

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== HERO LAYOUT ===== */

.hero {
  padding-top: 9rem;
  padding-bottom: 9rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content h1 {
  margin-bottom: 1.75rem;
}

.hero-content .lead {
  margin-bottom: 2.5rem;
}

.hero-image img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-image img {
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }
}

/* ===== PAGE HEADER ===== */

.page-header {
  padding-top: 7rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

/* ===== ABOUT LAYOUT ===== */

.about-grid {
  align-items: start;
  gap: 6rem;
}

.about-image img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  position: sticky;
  top: 7rem;
}

@media (max-width: 768px) {
  .about-grid {
    gap: 3rem;
  }
}

/* ===== APPROCHE LAYOUT ===== */

.approche-grid {
  align-items: start;
}

.approche-detail {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.approche-point {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.approche-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 1px solid var(--border-visible);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.approche-point h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* ===== CONTACT LAYOUT ===== */

.contact-grid {
  gap: 6rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: start;
}

.contact-icon {
  flex-shrink: 0;
  width: 2rem;
  color: var(--primary);
  padding-top: 0.15rem;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* ===== BLOG LAYOUT ===== */

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

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

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

/* ===== ARTICLE (blog item) ===== */

.article-body {
  max-width: 42rem;
  margin-inline: auto;
}

.article-body h2 { margin-top: 3rem; margin-bottom: 1rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul,
.article-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.5rem; }

/* ===== CALENDLY ===== */

.calendly-wrapper {
  margin-top: 3rem;
  border: 1px solid var(--border-visible);
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 3rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a:hover {
  color: var(--foreground);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
