/* =============================================
   PHYSIO SAINT-OUEN — Feuille de style principale
   ============================================= */

/* ── Variables ────────────────────────────── */
:root {
  --green:        #1A4731;
  --green-light:  #2D6A4F;
  --sage:         #7A9E8E;
  --cream:        #F5F0E8;
  --cream-dark:   #EDE7D9;
  --warm-white:   #FAFAF6;
  --charcoal:     #2B2B2B;
  --text-muted:   #6B7280;
  --border:       #E5DDD0;
  --shadow-sm:    0 2px 8px rgba(26,71,49,.08);
  --shadow-md:    0 8px 32px rgba(26,71,49,.12);
  --shadow-lg:    0 20px 60px rgba(26,71,49,.16);
  --radius:       14px;
  --radius-lg:    24px;
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--green);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: .5rem;
}

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

svg path, svg ellipse, svg circle { transition: fill var(--transition); }

/* ── Layout helpers ────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Tag / badge ───────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(122,158,142,.12);
  border: 1px solid rgba(122,158,142,.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,71,49,.3);
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: rgba(26,71,49,.4);
}
.btn--ghost:hover {
  background: rgba(26,71,49,.06);
  border-color: var(--green);
}

.btn--nav {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  padding: 10px 22px;
  font-size: .88rem;
}
.btn--nav:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

/* ── Fade-in animation ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,246,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 56px; width: auto; }

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav__links a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 3px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: var(--green); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  position: fixed;
  top: 110px; left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-md);
}

.nav__mobile.open {
  transform: none;
  opacity: 1;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav__mobile a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
}

.nav__mobile a:hover { color: var(--green); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .52);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 120px 24px 80px;
  max-width: 860px;
  margin: 0 auto;
  animation: heroFadeIn .9s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__logo {
  width: 580px;
  max-width: 88vw;
  margin: 0 auto 16px;
}

.hero__divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  margin: 0 auto 20px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--green);
  margin-bottom: 32px;
}

.hero__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}

.hero__specialties {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__specialties span {
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(26,71,49,.08);
  border: 1px solid rgba(26,71,49,.25);
  padding: 7px 18px;
  border-radius: 100px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 28px;
}

.hero__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(26,71,49,.5);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero__scroll:hover { color: var(--green); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   BANNIÈRE
   ============================================= */
.banner {
  background: var(--green);
  padding: 40px 0;
}

.banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.banner__item {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
}

.banner__item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

/* =============================================
   À PROPOS
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform .6s ease;
}

.about__img:hover img { transform: scale(1.03); }

.about__img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

.about__text h2 { margin-bottom: 24px; }

.about__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--charcoal);
}

.about__feature svg { color: var(--sage); flex-shrink: 0; }

/* =============================================
   SERVICES
   ============================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--sage));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(26,71,49,.08), rgba(122,158,142,.12));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green);
}

.service-card__icon svg {
  width: 36px; height: 36px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card > p {
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card__list li {
  font-size: .87rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* =============================================
   ÉQUIPE
   ============================================= */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s ease;
}

.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__initials {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--green);
  opacity: .35;
  user-select: none;
}

.team-card__body {
  padding: 28px 28px 32px;
}

.team-card__body h3 { font-size: 1.2rem; }

.team-card__title {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.team-card__body p {
  font-size: .9rem;
  color: var(--text-muted);
}

.team-card__rdv {
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  transition: gap var(--transition);
}

a.team-card { display: block; color: inherit; cursor: pointer; }
a.team-card:hover .team-card__rdv { text-decoration: underline; }

.team__note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.team__note svg { color: var(--sage); flex-shrink: 0; }

/* =============================================
   GALERIE
   ============================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  min-height: 220px;
}

.gallery__item:hover img { transform: scale(1.05); }

/* =============================================
   CONTACT
   ============================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact__info h2 { margin-bottom: 16px; }

.contact__info > p {
  margin-bottom: 36px;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(26,71,49,.08), rgba(122,158,142,.12));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.contact__item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.contact__item p {
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0;
}

.contact__item a {
  color: var(--green);
  font-weight: 600;
}
.contact__item a:hover { text-decoration: underline; }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 480px;
  position: sticky;
  top: 100px;
}

.contact__map iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--green);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand img {
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.footer__col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: .92rem;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }
.footer__col li:not(:has(a)) { font-size: .92rem; }

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__img img { height: 380px; }
  .contact__map { position: static; height: 380px; }
  .banner__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: flex; }

  .services__grid,
  .team__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--large { grid-column: span 2; grid-row: span 1; }

  .hero__title { font-size: 2.2rem; }
  .hero__info { gap: 16px; flex-direction: column; align-items: center; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .section__header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--large { grid-column: auto; }
  .banner__grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
}
