/* ===================================================================
   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: 6rem;
  padding-bottom: 6rem;
}

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

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

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

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

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

.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: 2.5rem;
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.hero-portrait {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-portrait img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.breath-section {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  padding-top: 6rem;
}

.breath-section-header {
  position: relative;
  z-index: 2;
  max-width: var(--container-medium);
  width: 100%;
  padding-inline: 4rem;
  text-align: center;
  margin-inline: auto;
}

.breath-section-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.breath-section-bg .hero-visual {
  width: min(80vw, 660px);
  max-width: none;
  justify-self: auto;
}

.breath-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.breath-ring {
  transform-origin: 50% 50%;
  animation: breathe 10s ease-in-out infinite;
}

.breath-ring--2 { animation-delay: -0.6s; opacity: 0.55; }
.breath-ring--3 { animation-delay: -1.2s; opacity: 0.32; }
.breath-ring--4 { animation-delay: -1.8s; opacity: 0.18; }

@keyframes breathe {
  0%   { transform: scale(0.78); }
  40%  { transform: scale(1.00); }
  55%  { transform: scale(1.00); }
  100% { transform: scale(0.78); }
}

.breath-label {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.breath-label span {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
}

.breath-in  { animation: breath-label-in  10s ease-in-out infinite; }
.breath-out { animation: breath-label-out 10s ease-in-out infinite; }

.breath-halo-wrapper {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 30s ease-in-out infinite;
}

@keyframes drift {
  0%   { transform: translate(0px,   0px); }
  14%  { transform: translate(9px,  -7px); }
  28%  { transform: translate(-4px, 11px); }
  42%  { transform: translate(-10px, -3px); }
  57%  { transform: translate(6px,   8px); }
  71%  { transform: translate(11px, -5px); }
  85%  { transform: translate(-7px,  3px); }
  100% { transform: translate(0px,   0px); }
}

@keyframes breath-label-in {
  0%, 2%    { opacity: 0; }
  10%, 35%  { opacity: 1; }
  45%, 100% { opacity: 0; }
}

@keyframes breath-label-out {
  0%, 50%   { opacity: 0; }
  60%, 90%  { opacity: 1; }
  95%, 100% { opacity: 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-visual {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }

  .hero-portrait {
    order: -1;
    justify-content: center;
  }

  .hero-portrait img {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .breath-section {
    min-height: auto;
    overflow: hidden;
    display: block;
    padding-bottom: 0;
  }

  .breath-section-header {
    padding-inline: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .breath-section-bg {
    position: static;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .breath-section-bg .hero-visual {
    width: 100%;
    max-width: 100%;
  }
}

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

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

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

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

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

.about-image {
  align-self: start;
}

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

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

.about-text p + h2 { margin-top: 2.5rem; }

/* Formations cards — 3 zones alignées */
.formations-grid .card {
  display: flex;
  flex-direction: column;
}

.formations-grid .formation-title {
  min-height: 4.5rem;
}

.formations-grid .formation-title h3 {
  margin-bottom: 0;
}

.formations-grid .formation-org {
  margin-top: 0.75rem;
}

.formations-grid .formation-desc {
  margin-top: 1rem;
}

/* ===== 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.75rem;
}

/* ===== 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: 2rem; }
.article-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p  { margin-bottom: 1.5rem; }
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 3px solid var(--primary);
  background-color: var(--card);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  font-style: italic;
  color: var(--muted-foreground);
}

/* ===== 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-container {
  padding-inline: 1.5rem;
}

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

.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: center;
  gap: 3rem;
  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: center;
    gap: 1rem;
  }
}
