/* ============================================================
   rochén — Page Notre Histoire | CSS global v1.0.0
   ============================================================ */

/* ── Variables ── */
:root {
  --rh-cream:       #EDE8DF;
  --rh-dark:        #2A2217;
  --rh-brown:       #5C3D1E;
  --rh-amber:       #C8892A;
  --rh-card-bg:     #F5F2EC;
  --rh-muted:       #8C7B68;
  --rh-border:      #D6CFC4;
  --rh-font-serif:  'DM Serif Display', Georgia, serif;
  --rh-font-sans:   'DM Sans', system-ui, sans-serif;
}

/* ── Boutons communs ── */
.rh-btn {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--rh-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s;
  border: none;
}
.rh-btn:hover { opacity: .82; }

/* ============================================================
   1. HERO HISTOIRE
   ============================================================ */
.rh-hero {
  font-family: var(--rh-font-sans);
}

.rh-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.rh-hero__eyebrow::before,
.rh-hero__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 28px;
}

.rh-hero__titre {
  font-family: var(--rh-font-serif);
  line-height: 1.05;
  max-width: 520px;
  margin-bottom: 20px;
  white-space: pre-line;
}

.rh-hero__soustitre {
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   2. MANIFESTO
   ============================================================ */
.rh-manifesto {
  font-family: var(--rh-font-sans);
}

.rh-manifesto__texte {
  font-family: var(--rh-font-serif);
  line-height: 1.25;
  list-style: none;
}

.rh-manifesto__mot-cle {
  font-style: normal;
}

/* ============================================================
   3. ORIGINES
   ============================================================ */
.rh-origines {
  font-family: var(--rh-font-sans);
}

.rh-origines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.rh-origines__grid--reverse .rh-origines__image { order: -1; }

.rh-origines__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.rh-origines__eyebrow::before,
.rh-origines__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
}

.rh-origines__paragraphe {
  line-height: 1.75;
  margin-bottom: 16px;
}
.rh-origines__paragraphe:last-of-type { margin-bottom: 0; }

.rh-origines__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.rh-origines__image {
  overflow: hidden;
  background: var(--rh-dark);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-origines__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rh-origines__image-placeholder {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
}

.rh-origines__btn-dark {
  color: #fff;
}
.rh-origines__btn-outline {
  background: transparent;
  border: 1.5px solid var(--rh-border);
}

/* ============================================================
   4. VALEURS
   ============================================================ */
.rh-valeurs {
  font-family: var(--rh-font-sans);
  max-width: 1200px;
  margin: 0 auto;
}

.rh-valeurs__grid {
  display: grid;
}

.rh-valeurs__card {
  border: 1px solid var(--rh-border);
  transition: box-shadow .2s;
}
.rh-valeurs__card:hover {
  box-shadow: 0 4px 24px rgba(42,34,23,.08);
}

.rh-valeurs__num {
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 500;
  margin-bottom: 16px;
}

.rh-valeurs__titre {
  font-family: var(--rh-font-serif);
  margin-bottom: 10px;
}

.rh-valeurs__desc {
  line-height: 1.65;
}

.rh-valeurs__icone {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--rh-amber);
}

/* ============================================================
   5. ÉQUIPE
   ============================================================ */
.rh-equipe {
  font-family: var(--rh-font-sans);
  max-width: 1200px;
  margin: 0 auto;
}

.rh-equipe__header {
  margin-bottom: 56px;
}

.rh-equipe__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.rh-equipe__eyebrow::before,
.rh-equipe__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
}

.rh-equipe__titre {
  font-family: var(--rh-font-serif);
  line-height: 1.2;
}

.rh-equipe__grid {
  display: grid;
}

.rh-equipe__membre {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Avatar */
.rh-equipe__avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-equipe__avatar--cercle {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  width: 100px;
  height: 100px;
}

.rh-equipe__avatar--carre {
  aspect-ratio: 1 / 1;
}

.rh-equipe__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.rh-equipe__avatar--zoom:hover img {
  transform: scale(1.04);
}

.rh-equipe__initiales {
  font-family: var(--rh-font-serif);
  font-size: 1.8rem;
  letter-spacing: .04em;
}

.rh-equipe__tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rh-equipe__membre-info {
  flex: 1;
}

.rh-equipe__nom {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.rh-equipe__role {
  font-size: 12px;
}

.rh-equipe__membre a {
  text-decoration: none;
  display: block;
}

/* ============================================================
   6. CHIFFRES CLÉS
   ============================================================ */
.rh-chiffres {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  font-family: var(--rh-font-sans);
}

.rh-chiffres__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rh-chiffres__eyebrow::before,
.rh-chiffres__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
}

.rh-chiffres__titre {
  font-family: var(--rh-font-serif);
  line-height: 1.15;
  margin-bottom: 14px;
}

.rh-chiffres__desc {
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 28px;
}

/* Stats grid */
.rh-chiffres__stats {
  display: grid;
  gap: 2px;
  min-width: 340px;
}

.rh-chiffres__stat {
  position: relative;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .25s, border-color .25s;
  cursor: default;
}

.rh-chiffres__stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .25s;
}

.rh-chiffres__valeur {
  font-family: var(--rh-font-serif);
  line-height: 1;
  letter-spacing: -.02em;
}

.rh-chiffres__suffixe {
  font-size: .55em;
  vertical-align: super;
  letter-spacing: 0;
}

.rh-chiffres__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* ============================================================
   Responsive
   ============================================================ */

/* ── Tablette large (≤ 1024px) ── */
@media (max-width: 1024px) {

  /* Hero : padding réduit, titre un peu plus petit */
  .rh-hero {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .rh-hero__titre {
    font-size: clamp(36px, 5vw, 52px);
    max-width: 100%;
  }

  /* Chiffres : empilement 1 colonne, stats pleine largeur */
  .rh-chiffres {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .rh-chiffres__stats {
    min-width: unset;
    width: 100%;
    grid-template-columns: repeat(2, 1fr) !important; /* force 2 cols sur tablette */
  }
  .rh-chiffres__desc {
    max-width: 100%;
  }
  .rh-chiffres__valeur {
    font-size: 40px !important;
  }
}

/* ── Tablette portrait (≤ 768px) ── */
@media (max-width: 768px) {

  /* Hero */
  .rh-hero {
    padding: 40px 24px !important;
  }
  .rh-hero__titre {
    font-size: clamp(30px, 8vw, 42px);
    white-space: normal; /* évite les débordements sur petits écrans */
  }
  .rh-hero__soustitre {
    font-size: 13px;
    max-width: 100% !important;
  }

  /* Origines */
  .rh-origines__grid {
    grid-template-columns: 1fr;
  }
  .rh-origines__image {
    order: -1;
    aspect-ratio: 3 / 2;
  }
  .rh-origines__grid--reverse .rh-origines__image {
    order: unset;
  }

  /* Chiffres */
  .rh-chiffres {
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
  }
  .rh-chiffres__stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .rh-chiffres__stat {
    padding: 20px 18px;
    border-radius: 10px;
  }
  .rh-chiffres__valeur {
    font-size: 36px !important;
  }
  .rh-chiffres__label {
    font-size: 10px;
  }

  /* Équipe */
  .rh-equipe__avatar--cercle {
    width: 80px;
    height: 80px;
  }
  .rh-equipe__header {
    margin-bottom: 36px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  /* Hero */
  .rh-hero {
    padding: 32px 20px !important;
  }
  .rh-hero__titre {
    font-size: clamp(26px, 9vw, 36px);
  }
  .rh-hero__eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .rh-hero__eyebrow::before,
  .rh-hero__eyebrow::after {
    width: 18px;
  }

  /* Manifesto */
  .rh-manifesto {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .rh-manifesto__texte {
    font-size: clamp(22px, 7vw, 32px) !important;
  }

  /* Origines */
  .rh-origines {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .rh-origines__btns {
    flex-direction: column;
  }
  .rh-origines__btns .rh-btn {
    text-align: center;
    width: 100%;
  }

  /* Valeurs */
  .rh-valeurs {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Équipe */
  .rh-equipe {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .rh-equipe__avatar--cercle {
    width: 64px;
    height: 64px;
  }

  /* Chiffres */
  .rh-chiffres {
    padding: 36px 20px !important;
    border-radius: 12px !important;
    gap: 28px;
  }
  .rh-chiffres__stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }
  .rh-chiffres__stat {
    padding: 16px 14px;
    border-radius: 8px;
  }
  .rh-chiffres__valeur {
    font-size: 30px !important;
  }
  .rh-chiffres__label {
    font-size: 9.5px;
    letter-spacing: .06em;
  }
  .rh-chiffres__desc {
    font-size: 13px;
  }
  .rh-chiffres__btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
  .rh-equipe__avatar img,
  .rh-chiffres__stat,
  .rh-chiffres__stat::after,
  .rh-valeurs__card { transition: none; }
}
