/* layout.css — containers, header/footer, sections, grids */

/* Container & sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.section { padding-block: var(--s-9); background: #fff; }
.section--alt { background: #F8FAFC; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: .2px;
}
.brand__accent { color: var(--blue); }

/* Nav */
.nav { display: flex; gap: var(--s-5); align-items: center; }
.nav a { color: var(--text); font-weight: 600; }
.nav a:hover { color: var(--blue); text-decoration: none; }

/* =========================
   HERO (white background)
   ========================= */
.hero { padding-block: var(--s-10); }
.hero.section { background: #fff !important; } /* hard reset */

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--s-8);
  align-items: center;
  min-height: 64vh;
}

.hero__copy {
  display: grid;
  gap: var(--s-5);
  max-width: 56ch;
}
.cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.trust-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.trust-list li { display: flex; gap: var(--s-3); align-items: center; }
.trust-logo { width: 28px; height: auto; filter: none; opacity: .9; }

.hero__media { display: flex; align-items: center; justify-content: center; }
.hero__img {
  width: min(380px, 36vw);
  max-height: 72vh;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  border: 1px solid rgba(15,23,42,.08);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.price-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.price-card--highlight {
  border-color: rgba(15,98,254,.3);
  box-shadow: 0 8px 28px rgba(15,98,254,.08);
}
.price { font-size: var(--fs-3); }

/* Testimonials (single source of truth) */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.testimonial { display: grid; gap: var(--s-3); }
.testimonial img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;       /* avoids CLS for 640x360 assets */
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cta-center { display: grid; place-items: center; margin-top: var(--s-6); }
.testimonials .testimonial figcaption {
  color: #334155;
  font-size: var(--fs-1);
  line-height: 1.45;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--s-6);
  padding-block: var(--s-8);
}
.footer__cta { display: flex; gap: var(--s-4); justify-content: flex-end; align-items: center; }
.footer__legal { padding-bottom: var(--s-6); color: var(--muted); }

/* Credentials grid */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.cred figure { display: grid; gap: var(--s-3); }
.cred picture, .cred img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cred figcaption { color: #334155; font-size: var(--fs-1); }

/* Contact form grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,12,18,.84);
  display: none; align-items: center; justify-content: center;
  padding: var(--s-6); z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: min(100%, 980px);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.lightbox__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  font-size: 22px; line-height: 1;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cta { justify-content: flex-start; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--s-4); }
  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .hero__img { width: min(320px, 60vw); max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }

  /* prevent header overflow on small phones */
  .header__inner { height: auto; padding-block: 10px; }
  .nav { flex-wrap: wrap; gap: var(--s-3); }
  .nav a { font-size: 14px; }
}

/* Cal.com iframes – force responsive width */
#cal-bilan, #cal-seance { overflow: hidden; }
#cal-bilan iframe, #cal-seance iframe {
  width: 100% !important;
  min-width: 0 !important;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand {
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #111;
}

.brand__accent {
  color: #0066cc; /* adjust to your theme blue */
}

.contact-email {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: #666;
  white-space: nowrap;
}

.contact-email a {
  color: inherit;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* MOBILE CLEANNESS */
@media (max-width: 768px) {
  .contact-email {
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.2;
  }

  .brand-wrapper {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .header__inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
