/* ============================================================
   INSTITUT.CSS — styles spécifiques à la page institut
   Direction v2 : blanc dominant, contrastes, timeline moderne
   ============================================================ */

/* ==================== HERO ==================== */
.hero-page {
  background: var(--blanc);
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
}
.hero-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--terracotta);
}
.hero-page .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(184, 92, 74, 0.08);
  border-radius: 2px;
}
.hero-page h1 {
  max-width: 920px;
  margin: 0 auto 24px;
  font-size: clamp(32px, 4.3vw, 50px);
}
.hero-page-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--gris);
  max-width: 760px;
  margin: 0 auto;
}

/* ==================== INTRO INSTITUT ==================== */
.intro-institut {
  background: var(--blanc);
  padding: 88px 0 56px;
}
.intro-institut-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.intro-institut-inner .eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}
.intro-institut-inner h2 {
  margin-bottom: 32px;
}
.intro-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--encre);
  margin-bottom: 20px;
  text-align: left;
}

/* ==================== CHIFFRES-CLÉS (sapin plein) ==================== */
.chiffres {
  background: var(--sapin);
  color: var(--creme);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.chiffres::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(184, 92, 74, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.chiffre {
  text-align: center;
  padding: 0 12px;
}
.chiffre-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1;
  color: var(--eucalyptus);
  margin-bottom: 14px;
  display: block;
}
.chiffre p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--creme);
  opacity: 0.9;
  margin: 0;
}
.chiffres-note {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--eucalyptus);
  opacity: 0.85;
  position: relative;
}

/* ==================== LETTRE — bloc éditorial ==================== */
.lettre {
  background: var(--blanc);
  padding: 100px 0;
}
.lettre-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.lettre-header .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}

.lettre-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Portrait — sticky sur desktop */
.lettre-portrait {
  position: sticky;
  top: 100px;
}
.lettre-portrait-img {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sauge) 0%, var(--sapin) 100%);
  margin-bottom: 20px;
  position: relative;
}
.lettre-portrait-img::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 70px;
  height: 70px;
  background: var(--terracotta);
  opacity: 0.12;
  border-radius: 4px;
  z-index: -1;
}
.lettre-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lettre-portrait-caption {
  padding-top: 16px;
  border-top: 2px solid var(--terracotta);
}
.lettre-portrait-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--sapin);
  margin: 0 0 4px;
}
.lettre-portrait-role {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.5;
  margin: 0;
}

/* Contenu de la lettre */
.lettre-content {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--encre);
}
.lettre-content p {
  margin-bottom: 20px;
}
.lettre-content p:last-of-type {
  margin-bottom: 32px;
}
.lettre-content strong {
  color: var(--sapin);
  font-weight: 600;
}

/* Citations en exergue */
.lettre-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--sapin);
  border-left: 3px solid var(--terracotta);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  letter-spacing: -0.005em;
}

/* Signature */
.lettre-signature {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gris-clair);
}
.lettre-signature-img {
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 8px;
  opacity: 0.85;
}
.lettre-signature-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--sapin);
  margin: 0;
  line-height: 1.4;
}
.lettre-signature-name span {
  font-size: 14px;
  color: var(--gris);
  font-weight: 400;
  font-style: italic;
}

/* ==================== ENGAGEMENTS ==================== */
.engagements {
  background: var(--creme);
  padding: 100px 0;
}
.engagements-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.engagements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.engagement {
  background: var(--blanc);
  padding: 36px 28px;
  border-radius: 4px;
  border-top: 3px solid var(--terracotta);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.engagement:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(42, 74, 62, 0.10);
}
.engagement-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  font-weight: 400;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 18px;
}
.engagement h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--sapin);
  line-height: 1.3;
}
.engagement p {
  font-size: 15px;
  color: var(--encre);
  line-height: 1.6;
  margin: 0;
}

/* ==================== RECONNAISSANCES ==================== */
.reconnaissances {
  background: var(--blanc);
  padding: 100px 0;
}
.reconnaissances-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.reconnaissances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.reconnaissance {
  background: var(--creme);
  padding: 36px 32px;
  border-radius: 4px;
  border-left: 3px solid var(--sauge);
  transition: transform 0.25s ease;
}
.reconnaissance:nth-child(1) {
  border-left-color: var(--terracotta);
}
.reconnaissance:nth-child(3) {
  border-left-color: var(--sapin);
}
.reconnaissance:hover {
  transform: translateX(4px);
}
.reconnaissance-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 14px;
}
.reconnaissance:nth-child(2) .reconnaissance-label {
  color: var(--sauge);
}
.reconnaissance:nth-child(3) .reconnaissance-label {
  color: var(--sapin);
}
.reconnaissance h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--sapin);
  margin: 0 0 14px;
  line-height: 1.3;
}
.reconnaissance p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--encre);
  margin: 0;
}

/* ==================== HISTOIRE / TIMELINE — réécriture moderne ==================== */
.histoire {
  background: var(--creme);
  padding: 100px 0;
}
.histoire-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 72px;
}
.histoire-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--gris);
  margin-top: 16px;
}

/* Timeline — design moderne sans alternance gauche/droite,
   ligne verticale à gauche, contenu à droite */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--gris-clair);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 36px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

/* Marqueur (point sur la ligne) */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blanc);
  border: 2px solid var(--terracotta);
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.timeline-item:hover::before {
  background: var(--terracotta);
  transform: scale(1.2);
}

/* Marqueur jalon majeur (rempli) */
.timeline-item-major::before {
  background: var(--terracotta);
  width: 18px;
  height: 18px;
  left: -31px;
  top: 10px;
  box-shadow: 0 0 0 4px rgba(184, 92, 74, 0.15);
}

/* Année */
.timeline-year {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--sapin);
  line-height: 1;
  letter-spacing: -0.01em;
}
.timeline-item-major .timeline-year {
  color: var(--terracotta);
}

/* Corps */
.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--sapin);
  margin: 0 0 8px;
  line-height: 1.3;
}
.timeline-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--encre);
  margin: 0;
}
.timeline-body em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}

/* ==================== CTA FINAL ==================== */
.cta-final {
  background: var(--sapin);
  color: var(--creme);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(184, 92, 74, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(200, 212, 197, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-final-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-final h2 {
  color: var(--creme);
  margin-bottom: 20px;
}
.cta-final p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--eucalyptus);
  margin-bottom: 36px;
  opacity: 0.95;
}
.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.btn-secondary-light {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  text-decoration: none;
  background: transparent;
  color: var(--creme);
  border: 1.5px solid var(--eucalyptus);
  transition: all 0.25s ease;
}
.btn-secondary-light:hover {
  background: var(--creme);
  color: var(--sapin);
  border-color: var(--creme);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Grand tablette */
@media (max-width: 1100px) {
  .chiffres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .engagements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reconnaissances-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
}

/* Tablette */
@media (max-width: 860px) {
  .hero-page {
    padding: 56px 0 48px;
  }
  .intro-institut,
  .lettre,
  .engagements,
  .reconnaissances,
  .histoire,
  .cta-final {
    padding: 64px 0;
  }
  .chiffres {
    padding: 56px 0;
  }
  .lettre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lettre-portrait {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
  .lettre-content {
    max-width: 100%;
  }
  .lettre-quote {
    font-size: 19px;
    padding-left: 20px;
  }
  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }
  .timeline-year {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 580px) {
  .chiffres-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .engagements-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .engagement {
    padding: 32px 24px;
  }
  .reconnaissance {
    padding: 28px 24px;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0 32px 24px;
  }
  .timeline-item::before {
    left: -21px;
  }
  .timeline-item-major::before {
    left: -23px;
  }
  .timeline-year {
    font-size: 22px;
  }
  .timeline-body h3 {
    font-size: 18px;
  }
  .lettre-content {
    font-size: 16px;
  }
  .lettre-quote {
    font-size: 18px;
    margin: 24px 0;
  }
  .cta-final-buttons .btn,
  .cta-final-buttons .btn-secondary-light {
    width: 100%;
    text-align: center;
  }
}
