/* Révision du 21 octobre — ce fichier est chargé après styles.css. */

/* Nouveau premier écran : la photo et son slogan constituent un même ensemble. */
.hero.hero-revised {
  min-height: 0;
  max-height: none;
  overflow: visible;
  background: var(--paper);
}

.hero.hero-revised::before {
  display: none;
}

.hero-revised .hero-visual {
  position: relative;
  height: clamp(28.125rem, 35vw, 32.5rem);
  min-height: 28.125rem;
  overflow: hidden;
  background: #fff;
}

.hero-revised .hero-visual .hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  background: #fff;
}

.hero-revised .hero-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-revised .hero-slogan {
  max-width: 7.7ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(5rem, 5.56vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.hero-revised .hero-slogan .slogan-first,
.hero-revised .hero-slogan em {
  display: block;
}

.hero-revised .hero-slogan .slogan-first {
  white-space: nowrap;
}

.hero-revised .hero-slogan em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

.hero-revised .hero-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 4rem;
  padding-block: clamp(1.65rem, 3vw, 2.65rem);
}

.hero-revised .hero-entry-copy {
  min-width: 0;
}

.hero-revised .hero-entry-copy .eyebrow {
  margin: 0 0 0.75rem;
}

.hero-revised .hero-location {
  max-width: 25ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.hero-revised .hero-entry-action {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
}

.hero-revised .hero-entry-action .button {
  min-height: 3.125rem;
  padding-inline: 1.4rem;
  white-space: nowrap;
}

.hero-revised .hero-entry-action .button .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-revised .hero-footnote {
  max-width: none;
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

/* La nouvelle introduction est une section autonome, après le premier écran. */
.hero-revised + .intro {
  margin-top: 0;
}

/* Histoire : texte d’abord, puis deux portraits documentés. */
.history .history-layout,
.history .history-intro {
  display: block;
}

.history .history-copy {
  max-width: 48rem;
}

.history .history-copy > p:not(.eyebrow) {
  max-width: 43rem;
}

.history-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 19.125rem));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.25rem, 5vw, 4rem);
}

.history-person {
  min-width: 0;
}

.history-person > figure {
  margin: 0;
}

.history-person > figure > img {
  display: block;
  width: 19.125rem;
  max-width: 100%;
  height: 22.8125rem;
  object-fit: cover;
  object-position: center;
}

.history-person .portrait-credit {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.history-person h3 {
  margin: 1rem 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.history-person .person-dates {
  margin: 0.4rem 0 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.history-person .person-caption {
  max-width: 19.125rem;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.history-person a:not(.button) {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Header compact et stable sur téléphone ; le bouton de menu garde 44 px tactiles. */
@media (max-width: 47.5rem) {
  .preview-note {
    height: 1.375rem;
    overflow: hidden;
    font-size: 0.625rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .preview-note p {
    display: block;
    height: 1.375rem;
    overflow: hidden;
    padding: 0.3rem var(--gutter);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-inner {
    min-height: 4rem;
  }

  .brand-name {
    font-size: 1.375rem;
  }

  .brand-sub,
  .site-footer .brand-sub {
    font-size: 0.5625rem;
  }

  .brand > svg,
  .brand .brand-icon,
  .brand .brand-mark {
    width: 1.55rem;
    height: 1.55rem;
  }

  .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero.hero-revised {
    display: block;
    background: var(--paper);
  }

  .hero-revised .hero-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 1920 / 1555;
    overflow: hidden;
  }

  .hero-revised .hero-visual .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .hero-revised .hero-visual-inner {
    align-items: center;
  }

  .hero-revised .hero-slogan {
    width: 55%;
    max-width: 55%;
    font-size: clamp(2.375rem, 10vw, 2.75rem);
    letter-spacing: -0.05em;
    line-height: 0.86;
  }

  .hero-revised .hero-slogan .slogan-first {
    white-space: normal;
  }

  .hero-revised .hero-entry {
    display: block;
    padding-block: 1.125rem;
  }

  .hero-revised .hero-entry-copy .eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.625rem;
    letter-spacing: 0.105em;
  }

  .hero-revised .hero-entry-copy .eyebrow::before {
    width: 1.45rem;
  }

  .hero-revised .hero-location {
    max-width: 24ch;
    font-size: clamp(1.3125rem, 5.6vw, 1.4375rem);
    line-height: 1.27;
  }

  .hero-revised .hero-entry-action {
    display: block;
    margin-top: 0.9rem;
  }

  .hero-revised .hero-entry-action .button {
    display: flex;
    width: 100%;
    min-height: 3rem;
  }

  .hero-revised .hero-footnote {
    margin-top: 0.42rem;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
  }

  .history-portraits {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .history-person > figure > img {
    width: min(100%, 19.125rem);
    height: auto;
    aspect-ratio: 306 / 365;
  }
}

@media (max-width: 23.5rem) {
  .hero-revised .hero-slogan {
    font-size: 2.375rem;
  }

  .hero-revised .hero-location {
    font-size: 1.3125rem;
  }
}

/* Ajustements issus des captures : slogan en deux lignes sur ordinateur,
   reproductions historiques entières et en-tête sans débordement à 320 px. */
@media (min-width: 47.501rem) {
  .hero-revised .hero-slogan { width: 60%; max-width: none; }
  .history .history-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .history-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 0; }
}
.history-person > figure > img { width: 100%; height: auto; object-fit: contain; aspect-ratio: 400 / 619; }
.history-person .person-caption { font-size: 15px; }
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 8px; letter-spacing: .05em; }
  .brand .brand-mark { width: 24px; }
  .brand .brand-mark .icon { width: 24px; }
}

/* Retour à la composition intégrée de l’accueil, histoire révisée conservée. */
.intro-quote { margin: 2rem 0 0; padding-left: 3rem; position: relative; font-family: var(--font-display); font-size: 1.7rem; font-style: italic; line-height: 1.55; }
.intro-quote::before { content: ""; width: 2rem; height: 1px; background: var(--gold); position: absolute; left: 0; top: 1.1em; }
.faq.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.faq-layout { grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); }
.faq-layout .section-title { font-size: clamp(2.4rem, 4vw, 3.3rem); }
.faq-item summary { min-height: 3.4rem; padding-block: .85rem; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.45; }
.faq-layout > div > p:not(.eyebrow) { margin-top: 1rem; }
@media(max-width:760px) { .faq-layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; } .intro-quote { font-size: 1.45rem; padding-left: 2rem; } .intro-quote::before { width: 1.3rem; } }

.slogan-mobile,
.title-mobile { display: none; }
.hero-photo-frame { display: contents; }

/* Capture 2 : vraie photo en premier, puis titre, filet et contact sur blanc.
   Aucune de ces règles ne s’applique à la présentation ordinateur. */
@media (max-width: 760px) {
  .site-header { background: #202c3d; border-bottom: 0; }
  .site-header .header-inner { min-height: 54px; height: 54px; justify-content: flex-start; gap: 0; }
  .site-header .brand { display: none; }
  .site-header .nav-toggle { margin: 0; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; color: #4d82de; background: transparent; }
  .site-header .nav-toggle .icon { width: 20px; height: 20px; }
  .site-header .nav-links { background: #202c3d; top: 54px; }
  .site-header .nav-links > a { color: #fff; }
  .preview-note { display: none; }
  .intro, .steps, .contact-panel { background: var(--ivory); }

  .hero:not(.hero-revised) { display: block; position: relative; min-height: 0; padding: 0; background: var(--ivory); overflow: hidden; isolation: auto; }
  .hero:not(.hero-revised)::before { display: none; }
  .hero:not(.hero-revised) .hero-photo-frame { display: block; position: relative; width: 100%; height: min(100vw, 390px); overflow: hidden; }
  .hero:not(.hero-revised) .hero-photo { display: block; position: relative; inset: auto; z-index: auto; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 75% top; transform: translateY(-15%) scale(1.4); transform-origin: 75% top; }
  .hero:not(.hero-revised) .hero-inner { position: static; width: 100%; max-width: none; margin: 0; min-height: 0; padding: 24px 16px 28px; background: var(--ivory); }
  .hero:not(.hero-revised) .hero-content { position: static; display: flex; flex-direction: column; width: 100%; max-width: none; }
  .hero:not(.hero-revised) .hero-content > .eyebrow { display: none; }
  .hero:not(.hero-revised) .slogan-desktop,
  .hero:not(.hero-revised) .title-desktop { display: none; }
  .hero:not(.hero-revised) .slogan-mobile,
  .hero:not(.hero-revised) .title-mobile { display: block; }
  .hero:not(.hero-revised) .hero-slogan { position: absolute; z-index: 1; top: calc(min(100vw, 390px) * .17); left: 16px; width: auto; max-width: 50%; margin: 0; padding: 0; color: #a68b45; font-family: Georgia, serif; font-size: clamp(26px, 7.6vw, 31px); font-weight: 400; line-height: 1.75; letter-spacing: 0; }
  .hero:not(.hero-revised) .hero-location { order: 1; max-width: none; margin: 0; color: #202c3d; font-family: Georgia, serif; font-size: clamp(23px, 6.4vw, 26px); font-weight: 400; line-height: 1.4; }
  .hero:not(.hero-revised) .hero-location::after { content: ''; display: block; width: 30%; height: 5px; margin-top: 20px; margin-left: -16px; background: #e3cd8c; }
  .hero:not(.hero-revised) .hero-actions { order: 2; display: flex; width: calc(100% - 24px); margin: 28px 12px 0; gap: 0; }
  .hero:not(.hero-revised) .hero-actions .button { width: 100%; min-height: 44px; padding: 12px 16px; background: #e3cd8c; border-color: #e3cd8c; color: #18374b; font-size: 16px; font-weight: 500; }
  .hero:not(.hero-revised) .hero-actions .text-link,
  .hero:not(.hero-revised) .hero-actions .button .icon { display: none; }
  .hero:not(.hero-revised) .hero-description { order: 3; margin: 20px 0 0; font-size: 16px; line-height: 1.65; }
  .hero:not(.hero-revised) .hero-footnote { order: 4; margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
}

/* Essai du portrait fourni : cadrages uniquement, composition inchangée. */
@media (min-width: 761px) {
  .hero-photo.hero-photo-generated { object-position: 70% 35%; }
}
@media (max-width: 760px) {
  .hero:not(.hero-revised) .hero-photo.hero-photo-generated {
    object-position: 76% top;
    transform: none;
  }
}
