/*
Theme Name: Agape Accompagnement
Description: Theme custom Agape - site vitrine perinatal
Version: 1.0
Author: eKLID
*/

:root {
  --rose:        #F25E7A;
  --light-rose:  #F2C9CC;
  --terracotta:  #D5956E;
  --white:       #FFFFFF;
  --text:        #1a1a1a;
  --max-w:       1100px;
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-script:  'Luxurious Script', cursive;
  --font-roman:   'Luxurious Roman', serif;
  --font-accent:  'Barlow Semi Condensed', sans-serif;
  --font-display: 'Abril Fatface', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-roman); color: var(--text); background: #fbedef; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--terracotta); }

/* ── NAVIGATION (cachée) ────────────────────────── */
.site-nav { display: none; }

/* ── CITATION + LOGO HORS CARTE ─────────────────── */
.citation-wrap {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.citation {
  flex: 1;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #1a1a1a;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 24px;
}
.citation p { flex: 1; margin: 0; }
.citation p::before { content: '\201C'; }
.citation p::after  { content: '\201D'; }
.citation cite { display: block; font-style: normal; flex-shrink: 0; }
.citation-signature { height: 55px; width: auto; display: block; }
.hero-logo-wrap { flex-shrink: 0; }
.hero-logo-wrap img { height: 160px; width: auto; }

/* ── LAYOUT CARTES ──────────────────────────────── */
.section-wrap { padding: 24px 20px; }
.section-wrap--terracotta { background: var(--terracotta); }
.section-wrap--rose       { background: var(--rose); }

.card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  padding: 48px 52px;
}
.card--terracotta { background: var(--terracotta); box-shadow: 0 8px 40px rgba(0,0,0,.15); }
.card--rose       { background: var(--rose);        box-shadow: 0 8px 40px rgba(0,0,0,.15); }

/* ── HERO CARD ──────────────────────────────────── */
.hero-card {
  padding: 0;
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2023/07/flowers.png');
  background-color: #F2A0B2;
  background-blend-mode: screen;
  background-size: 100%;
  background-position: center;
  background-repeat: repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding: 40px 52px 52px;
}
.hero__left { display: flex; flex-direction: column; gap: 20px; }
.hero__titles { text-align: right; }

.hero__titles h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400; color: var(--white); line-height: 1;
  text-shadow: 0 2px 12px rgba(242,94,122,0.7), 0 0 30px rgba(242,94,122,0.4);
}
.hero__titles h2 {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--rose); margin-top: 10px;
}

.hero__text {
  background: #C8922A;
  border-radius: 14px;
  padding: 24px 28px;
  color: var(--white);
  font-size: .97rem;
  line-height: 1.85;
}
.hero__text p + p { margin-top: 1em; }

.hero__right { display: flex; }
.hero__photo { flex: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }

/* Accordéon sous la grille, pleine largeur */
.hero__accordion {
  margin: 0 52px 52px;
}

/* ── FOND VÉGÉTAL (cartes alternées) ───────────── */
.card--floral {
  position: relative;
  overflow: hidden;
}
.card--floral::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2023/07/flowers.png');
  background-color: #F2A0B2;
  background-blend-mode: screen;
  background-size: 100%;
  background-repeat: repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.card--floral > * { position: relative; z-index: 1; }

/* ── ACCORDION ──────────────────────────────────── */
.accordion {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(242,94,122,.3);
}
.accordion summary {
  font-family: var(--font-accent); font-size: 1rem; font-weight: 700;
  padding: 16px 20px; background: rgba(242,201,204,.5);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text); user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { font-size: 1.5rem; color: var(--rose); font-weight: 300; line-height: 1; }
.accordion[open] summary .icon-plus { display: none; }
.accordion:not([open]) summary .icon-minus { display: none; }
.accordion__body {
  padding: 20px; background: var(--white);
  font-size: .95rem; line-height: 1.85;
}
.accordion__body p + p { margin-top: .8em; }
.accordion__body a { color: var(--rose); }

/* ── SECTIONS ───────────────────────────────────── */
.section-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; color: var(--rose); margin-bottom: 36px; text-align: center;
}

/* ── PRESTATIONS ─────────────────────────────────── */
.prestations-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: stretch;
}
.prestations-3col {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 28px; align-items: stretch;
}
.presta-block {
  background: #fdf0f2; border-radius: 16px; padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.presta-illus {
  text-align: center;
  margin-bottom: 20px;
}
.presta-illus img { max-height: 200px; width: auto; margin: 0 auto; }

.presta-block h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--rose); margin-bottom: 14px;
}
.presta-block p { font-size: .96rem; line-height: 1.8; }
.presta-block > p { margin-bottom: 20px; }  /* espace mini avant l'accordeon 'En savoir plus' */
.tarif-box {
  margin-top: auto;
  background: var(--white); border-radius: 12px; padding: 20px 24px;
  margin-top: 18px; border: 1px solid var(--light-rose);
}
.tarif-box .tarif-label {
  font-family: var(--font-accent); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--terracotta); margin-bottom: 10px;
}
.tarif-box p { font-size: .95rem; line-height: 1.8; }

/* ── ATELIERS ───────────────────────────────────── */
.ateliers-content { text-align: center; max-width: 700px; margin: 0 auto; }
.ateliers-content .agape-ateliers-list { list-style: none; padding: 0; }
.ateliers-content .agape-ateliers-list li {
  padding: 10px 0; border-bottom: 1px solid rgba(242,94,122,.2); font-size: 1rem;
}
.ateliers-content .agape-ateliers-list li:last-child { border-bottom: none; }
.ateliers-lieu { margin-top: 24px; font-size: .93rem; color: #555; line-height: 1.7; }
.ateliers-lieu a { color: var(--rose); }

/* ── CAFÉS PARENTAUX ────────────────────────────── */
.cafes-content { text-align: center; padding: 20px 0; }
.cafes-placeholder { color: #aaa; font-style: italic; }

/* ── AVIS ───────────────────────────────────────── */
.avis-inner { max-width: 960px; margin: 0 auto; }
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.avis-card {
  background: #fff8f9;
  border: 1px solid var(--light-rose);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.avis-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avis-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  flex-shrink: 0;
}
.avis-card__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.avis-card__name {
  font-family: var(--font-accent);
  font-weight: 700; font-size: .95rem;
  color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.avis-card__date { font-size: .78rem; color: #aaa; }
.avis-card__stars { color: #F5A623; font-size: .92rem; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
.avis-card__sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.avis-card__text { font-size: .9rem; line-height: 1.75; color: #444; }
.avis-empty { text-align: center; color: #bbb; font-style: italic; padding: 20px 0; }
.btn-avis-google {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  background: #fff; border: 2px solid var(--rose);
  color: var(--rose); font-family: var(--font-accent);
  font-weight: 700; font-size: .9rem;
  transition: background .2s, color .2s;
}
.btn-avis-google:hover { background: var(--rose); color: #fff; }

/* ── PARTENAIRES ─────────────────────────────────── */
.partenaires-grid {
  display: flex; flex-wrap: wrap; gap: 36px;
  justify-content: center; align-items: center;
}
.partenaires-grid a { display: block; transition: transform .2s; }
.partenaires-grid a:hover { transform: scale(1.05); }
.partenaires-grid img { width: 110px; height: 110px; object-fit: contain; }
.card--terracotta .section-title { color: var(--white); }
.card--terracotta .partenaires-grid img { filter: brightness(0) invert(1); opacity: .85; }

/* ── CONTACT ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-info h3 {
  font-family: var(--font-accent); font-size: 1.05rem; font-weight: 600; line-height: 1.7;
}
.card--rose .contact-info h3,
.card--rose .contact-phone { color: var(--white); }
.contact-phone {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-top: 20px;
}
.btn-email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 12px 24px; background: var(--white); color: var(--rose);
  border-radius: 8px; font-family: var(--font-accent); font-weight: 700;
  font-size: .9rem; transition: background .2s, color .2s;
}
.btn-email:hover { background: var(--terracotta); color: var(--white); }
.social-links { display: flex; gap: 14px; margin-top: 20px; }
.social-links img { width: 38px; height: 38px; filter: brightness(0) invert(1); opacity: .85; }
.social-links a:hover img { opacity: 1; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: #1a1a1a; color: rgba(255,255,255,.5);
  text-align: center; padding: 40px 20px 32px; font-size: .82rem;
}
.site-footer img { height: 56px; width: auto; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .5; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .card { padding: 24px 18px; }
  .citation-wrap { flex-direction: column; gap: 20px; padding: 0 16px; }
  .citation { text-align: center; font-size: 1.4rem; }
  .hero-logo-wrap img { height: 110px; }
  .hero__inner { grid-template-columns: 1fr; padding: 24px 20px 32px; }
  .hero__right { order: -1; }
  .hero__photo img { height: auto; }
  .hero__accordion { margin: 0 20px 32px; }
  .prestations-grid { grid-template-columns: 1fr; }
  .prestations-3col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}


/* Accordeon dans les colonnes prestations */
.presta-accordion { margin: 18px 0 0; text-align: left; }
.presta-accordion summary { padding: 12px 16px; font-size: .95rem; }
.presta-accordion .accordion__body { padding: 16px; font-size: .9rem; line-height: 1.75; text-align: justify; }


/* Partenaires (colonne terracotta incrustee) + contact sur la meme ligne */
.contact-row {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 36px;
  align-items: stretch;
}
.partenaires-col {
  background: var(--terracotta);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.partenaires-col .section-title { color: var(--white); margin-bottom: 28px; }
.partenaires-col .partenaires-grid { gap: 24px; }
.partenaires-col .partenaires-grid img { opacity: 1; }  /* logos en couleurs d'origine */
@media (max-width: 768px) {
  .contact-row { grid-template-columns: 1fr; }
}

/* Coordonnees de Pauline alignees a droite */
.contact-info { text-align: right; }
.contact-info .social-links { justify-content: flex-end; }

/* Logos de certification sous les coordonnees */
.certifications { display: flex; gap: 18px; margin-top: 26px; justify-content: flex-end; align-items: center; }
.certifications img { height: 66px; width: auto; background: #fff; border-radius: 8px; padding: 6px; }

/* Footer liens + credit, et pages de contenu (mentions legales...) */
.footer-links { margin: 0 0 6px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.footer-credit { margin-top: 8px; font-size: .75rem; opacity: .8; }
.footer-credit a { color: rgba(255,255,255,.75); }
.footer-credit a:hover { color: #fff; }
.page-content .section-title { margin-bottom: 28px; }
.entry { line-height: 1.8; }
.entry h2 { font-family: var(--font-accent); color: var(--rose); margin: 28px 0 10px; font-size: 1.15rem; }
.entry p { margin-bottom: 12px; }
.entry a { color: var(--rose); }


/* Filigrane floral blanc en fond de la carte contact */
#contact .card { position: relative; overflow: hidden; }
#contact .card > * { position: relative; z-index: 1; }
#contact .card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: url("img/flowers.png") right center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}

.avis-card__avatar--img { padding:0; object-fit:cover; background:transparent; }

/* ── Carrousel avis : pas-à-pas, boucle infinie, pause sur la carte du milieu ─── */
.avis-carousel { position: relative; overflow: hidden; margin-top: 12px; padding: 10px 0; min-height: 245px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.avis-track { display: flex; align-items: center; will-change: transform;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.avis-track .avis-card {
  flex: 0 0 300px; width: 300px; margin-right: 20px;
  max-height: 172px; overflow: hidden; padding: 14px 16px; gap: 8px;
  transition: transform .35s ease, box-shadow .35s ease, opacity .35s ease;
  opacity: .85;
}
.avis-track .avis-card.is-center {
  opacity: 1; transform: scale(1.05); position: relative; z-index: 2;
  box-shadow: 0 8px 26px rgba(242,94,122,.22);
}
.avis-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; font-size: .87rem; }
.avis-more {
  align-self: flex-start; background: none; border: none; padding: 0; margin-top: 2px;
  color: var(--rose); font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: underline;
}
.avis-more:hover { text-decoration: none; }
@media (max-width: 560px) { .avis-track .avis-card { flex-basis: 80vw; width: 80vw; } }

/* Pop-up avis complet */
.avis-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.avis-modal.is-open { display: flex; }
.avis-modal__backdrop { position: absolute; inset: 0; background: rgba(25,12,18,.55); }
.avis-modal__box {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 80vh; overflow: auto; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.avis-modal__close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 1.7rem; line-height: 1; color: #aaa; cursor: pointer; }
.avis-modal__close:hover { color: var(--rose); }
.avis-modal .avis-card { max-height: none; overflow: visible; border: none; background: transparent !important; padding: 0; box-shadow: none; opacity: 1; transform: none; }
.avis-modal .avis-card__text { display: block; -webkit-line-clamp: none; overflow: visible; font-size: .95rem; }

/* Photo de la carte du milieu : taille doublée */
.avis-track .avis-card__avatar { transition: width .4s ease, height .4s ease, font-size .4s ease; }
.avis-track .avis-card.is-center { max-height: 215px; }
.avis-track .avis-card.is-center .avis-card__avatar { width: 80px; height: 80px; font-size: 2rem; }
