/* ══════════════════════════════════════════════
   style.css — Marie Emmanuelle Py · Coach Ancrée
   ══════════════════════════════════════════════ */

/* ── 1. VARIABLES ── */
:root {
  --navy:         #1a2c5b;
  --navy-light:   #2a4080;
  --white:        #ffffff;
  --text-muted:   #4a5c80;
  --border:       rgba(26, 44, 91, 0.15);
  --font:         'Manrope', sans-serif;
  --max-w:        1200px;
  --pad:          clamp(1.5rem, 5vw, 4rem);
  --gap-section:  clamp(2rem, 4vw, 4rem);
  --transition:   250ms ease-out;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p + p { margin-top: 1em; }

/* ── 3. CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── 4. GRILLE SECTIONS ── */
.section-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
}

/* ── 5. HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-identity { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.header-link {
  transition: color var(--transition), border-color var(--transition);
  margin-top:6px;
}
.header-link:hover { color: var(--navy-light); border-color: var(--navy-light); }

/* ── 6. SECTIONS ── */
.section { padding-block: var(--gap-section); }
.section--contact { border-top: 1px solid var(--border); }

/* ── 7. TITRES CURSIFS ── */
.section-title-img  { width: auto; max-width: 100%; display: block; }
.img-a-propos        { height: 68px; }
.img-aller-plus-loin { height: 75px; }

/* ── 8. HERO ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 3rem);
}
.hero-sig { display: flex; align-items: center; justify-content: flex-end; }
.hero-pic { display: flex; align-items: center; justify-content: center; }
.hero-tag { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-signature  { width: 100%; max-width: 280px; }
.hero-portrait   { width: 100%; max-width: 320px; }
.hero-tagline-img { height: 68px; width: auto; margin-bottom: 1rem; }
.hero-tagline-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 28ch;
  font-style: italic;
}

/* ── 9. ACCORDÉON ── */
.accordion { width: 100%; }

.accordion-trigger {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding-block: 1.25rem;
  color: var(--navy); font-family: var(--font); font-size: 1.2rem;
  font-weight: 600; line-height: 1.25;
  transition: color var(--transition);
}
.accordion-trigger:hover,
.accordion-trigger:focus-visible { color: var(--navy-light); outline: none; }
.accordion-trigger:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; border-radius: 2px; }
.accordion-label { flex: 1; }

.accordion-chevron {
  flex-shrink: 0; font-size: 1.1rem; font-weight: 400;
  display: inline-block; transition: transform var(--transition); line-height: 1;
}
.accordion-item.is-open .accordion-chevron { transform: rotate(90deg); }

.accordion-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition); overflow: hidden;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-body {
  overflow: hidden;
  padding-bottom: 3.5rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,0.4) 85%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 40%,
    rgba(0,0,0,0.4) 85%,
    rgba(0,0,0,0) 100%
  );
}

.accordion-item.is-open .accordion-body {
  display: block;
  -webkit-line-clamp: unset;
  mask-image: none;
  -webkit-mask-image: none;
}
.text-link {
  color: var(--navy-light);
  border-bottom: 1px solid rgba(42, 64, 128, 0.35);
  transition: border-color var(--transition), color var(--transition);
}
.text-link:hover { color: var(--navy); border-color: var(--navy); }

/* ── 10. TÉMOIGNAGES ── */
.temoignages-titre-texte {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  padding-top: 0.2em;
}

.temoignage {
  margin: 0 0 1.25rem;
  padding: 0;
}
.citation {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #6b82a0;
  margin: 0 0 0.3rem;
  font-style: normal;
}
.auteur {
  font-size: 0.78rem;
  font-style: italic;
  color: #93a8be;
  display: block;
}

/* Second témoignage : 2 lignes visibles, auteur masqué */
.temoignage--preview .citation {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.temoignage--preview .auteur { display: none; }

/* Bloc masqué par défaut */
.temoignages-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease-out;
}
.temoignages-more > div {
  overflow: hidden;
}

/* Bouton + mobile */
.temoignages-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #93a8be;
  padding: 0.25rem 0;
  line-height: 1;
  transition: color 200ms ease, transform 200ms ease;
}
.temoignages-toggle:hover { color: #6b82a0; }
.temoignages-toggle[aria-expanded="true"] { transform: rotate(45deg); }

/* Desktop : survol révèle tout */
@media (min-width: 768px) {
  .tem-wrapper:hover .temoignage--preview .citation {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .tem-wrapper:hover .temoignage--preview .auteur { display: block; }
  .tem-wrapper:hover .temoignages-more { grid-template-rows: 1fr; }
}

/* Mobile : bouton + */
@media (max-width: 767px) {
  .temoignages-toggle { display: inline-block; }
  .tem-wrapper.is-open .temoignage--preview .citation {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .tem-wrapper.is-open .temoignage--preview .auteur { display: block; }
  .tem-wrapper.is-open .temoignages-more { grid-template-rows: 1fr; }
}

/* ── 11. CONTACT ── */
.contact-content { display: flex; flex-direction: column; gap: 2rem; }
.contact-intro { font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 52ch; }
.contact-cta-row { display: flex; align-items: center; gap: 2.5rem; }
.contact-cta {
  font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700;
  border-bottom: 2px solid var(--navy); padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.contact-cta:hover { color: var(--navy-light); border-color: var(--navy-light); }
.contact-ancre { height: 120px; width: auto; opacity: 0.85; flex-shrink: 0; }

/* ── 12. FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-item { font-size: 0.82rem; color: var(--text-muted); }
.footer-sep { color: var(--border); }
.footer-link { color: var(--text-muted); transition: color var(--transition); }
.footer-link:hover { color: var(--navy); }

/* ── 13. ACCESSIBILITÉ ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 14. TABLETTE 768–1023px ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid { gap: 1.5rem; }
  .hero-signature { max-width: 200px; }
  .hero-portrait  { max-width: 220px; }
  .section-grid   { grid-template-columns: 28% 1fr; gap: 2rem; }
  .img-a-propos        { height: 58px; }
  .img-aller-plus-loin { height: 64px; }
  .hero-tagline-img    { height: 58px; }
}

/* ── 15. MOBILE < 768px ── */
@media (max-width: 767px) {
  .section { padding-block: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
  .hero-sig { justify-content: flex-start; }
  .hero-pic { justify-content: flex-start; }
  .hero-signature { max-width: 65vw; }
  .hero-portrait  { max-width: 75vw; }
  .hero-tagline-img { height: 50px; }
  .section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .col-left { order: -1; }
  .img-a-propos        { height: 50px; }
  .img-aller-plus-loin { height: 55px; }
  .contact-ancre { height: 80px; }
  .contact-cta-row { gap: 1.5rem; justify-content: center;}
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-sep { display: none; }
}
