/* ===========================================================
   STYLES PRINCIPAUX — Site personnel Ketlen Celestin
   ===========================================================
   Palette : ivoire, brun profond, sépia doré, blanc cassé, doré antique
   Typographies : Cormorant Garamond (titres), EB Garamond (citations),
                  Inter (corps de texte)
   =========================================================== */

/* ----- Variables CSS globales ----- */
:root {
  /* Couleurs principales */
  --color-ivory: #FAF7F2;
  --color-ivory-warm: #F5F0E8;
  --color-white: #FFFFFF;
  --color-white-soft: #FEFDFB;
  --color-cream: #EDE8DF;
  --color-sepia: #A68B6B;
  --color-sepia-light: #C4A882;
  --color-sepia-dark: #7A6347;
  --color-brown-deep: #3D2B1F;
  --color-brown-warm: #5C3D2E;
  --color-brown-text: #2C1810;
  --color-brown-muted: #6B5344;
  --color-gold-soft: #C9A96E;
  --color-gold-antique: #B68E4C;
  --color-border: rgba(166, 139, 107, 0.2);
  --color-shadow: rgba(61, 43, 31, 0.08);

  /* Typographies */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-editorial: 'EB Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Espacement */
  --section-padding: clamp(4.5rem, 8vw, 8.5rem);
  --content-max-width: 860px;
  --wide-max-width: 1100px;

  /* Transitions */
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset et base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 112.5%; /* base ≈ 18px : tailles globales agrandies pour confort de lecture */
  -webkit-text-size-adjust: 100%;
}

/* Sécurité de débordement : les mots très longs ne cassent jamais la mise en page */
h1, h2, h3, h4, h5, h6, p, li, a, figcaption, label, button {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--color-brown-text);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sepia-dark);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--color-brown-deep);
}

/* Accessibilité : focus visible */
:focus-visible {
  outline: 2px solid var(--color-sepia);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Masquer visuellement sans retirer de l'accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================================================
   NAVIGATION — Logo blason persistant au défilement
   =========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.nav--scrolled {
  box-shadow: 0 1px 8px var(--color-shadow);
}

.nav-inner {
  max-width: var(--wide-max-width);
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo navigation : blason + nom */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brown-deep);
  letter-spacing: 0.02em;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  /* Filigrane discret pour éviter l'effet d'image collée */
  filter: drop-shadow(0 1px 2px rgba(61, 43, 31, 0.18));
  transition: transform var(--transition-smooth);
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-4deg) scale(1.05);
}

.nav-logo-text {
  display: inline-block;
}

.nav-logo:hover {
  color: var(--color-sepia-dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brown-muted);
  transition: color var(--transition-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-sepia);
  transition: width var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-brown-deep);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Bouton hamburger mobile — cible tactile d'au moins 44x44px (recommandation WCAG/Apple HIG) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-brown-deep);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

/* ===========================================================
   SECTIONS — Styles communs (tailles agrandies)
   =========================================================== */
.section {
  padding: var(--section-padding) 2rem;
  position: relative;
  /* Décalage de défilement : la barre de navigation fixe ne doit pas couvrir le titre de la section visée */
  scroll-margin-top: 5rem;
}

.section-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sepia);
  margin-bottom: 0.85rem;
}

.section-label--light {
  color: var(--color-sepia-light);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  color: var(--color-brown-deep);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-heading--light {
  color: var(--color-ivory);
}

/* Sous-titres : courts descriptifs (3–4 mots), discret mais visible */
.section-subheading {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sepia-dark);
  margin-bottom: 2.6rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.section-subheading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 1.5px;
  background-color: var(--color-gold-antique);
}

.section-subheading--light {
  color: var(--color-sepia-light);
}

.section-subheading--light::after {
  background-color: var(--color-sepia-light);
}

/* ===========================================================
   TRANSITIONS ÉDITORIALES — signal visuel animé, contraste renforcé
   =========================================================== */
.section-transition {
  max-width: 760px;
  margin: 4.5rem auto 0;
  padding: 2.5rem 1.5rem 0.5rem;
  text-align: center;
  color: var(--color-gold-antique);
  position: relative;
  cursor: default;
  transition: transform var(--transition-slow);
}

.section-transition--light {
  color: var(--color-sepia-light);
}

/* Ornement décoratif animé entre les sections */
.transition-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-gold-antique);
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.transition-ornament svg {
  width: 140px;
  height: 24px;
  display: block;
  animation: ornamentGlow 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(182, 142, 76, 0.22));
}

@keyframes ornamentGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.section-transition--light .transition-ornament {
  color: var(--color-sepia-light);
}

/* Phrases italiques de transition — plus lisibles, animation d'apparition et survol interactif */
.transition-text {
  font-family: var(--font-editorial);
  font-size: 1.32rem;
  font-style: italic;
  line-height: 1.7;
  /* Couleur plus contrastée : brun sépia profond pour être lisible sur fond ivoire ou fond Citadelle pâle */
  color: var(--color-brown-deep);
  letter-spacing: 0.005em;
  position: relative;
  padding: 0 1.5rem;
  transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              letter-spacing 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              text-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  /* Légère animation continue : pulsation de l'ombre dorée pour attirer l'œil */
  animation: transitionShimmer 5.5s ease-in-out infinite;
}

/* Pulsation discrète de l'ombre dorée autour des phrases italiques */
@keyframes transitionShimmer {
  0%, 100% { text-shadow: 0 0 0 rgba(182, 142, 76, 0); }
  50% { text-shadow: 0 0 14px rgba(182, 142, 76, 0.28); }
}

/* Hover : changement de couleur accrocheur + léger étirement */
.section-transition:hover .transition-text,
.transition-text:hover {
  color: var(--color-gold-antique);
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(182, 142, 76, 0.45);
}

.section-transition:hover .transition-ornament {
  color: var(--color-brown-deep);
  transform: translateY(-2px) scale(1.05);
}

.section-transition:hover .transition-ornament svg {
  animation-duration: 1.8s;
}

.transition-text::before,
.transition-text::after {
  content: '';
  display: block;
  width: 78px;
  height: 1.2px;
  margin: 1rem auto;
  background: linear-gradient(90deg, transparent, var(--color-gold-antique), transparent);
  opacity: 0.85;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.section-transition:hover .transition-text::before,
.section-transition:hover .transition-text::after {
  width: 140px;
  opacity: 1;
}

.section-transition--light .transition-text {
  /* Sur fond sombre (Vision), ivoire lumineux pour contraste maximal */
  color: var(--color-ivory);
}

.section-transition--light .transition-text::before,
.section-transition--light .transition-text::after {
  background: linear-gradient(90deg, transparent, var(--color-sepia-light), transparent);
}

.section-transition--light:hover .transition-text {
  color: var(--color-gold-soft);
}

/* ===========================================================
   HERO — motif Tudor Rose en filigrane animé
   =========================================================== */
.section-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--section-padding) + 3.5rem);
  background-color: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

/* Motif héraldique en filigrane (animation lente d'épanouissement) */
.hero-ornament {
  position: absolute;
  top: 12%;
  right: -4%;
  width: 360px;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  animation: ornamentBloom 18s ease-in-out infinite;
}

.hero-ornament-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(0.3);
}

@keyframes ornamentBloom {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.05; }
  50% { transform: rotate(8deg) scale(1.08); opacity: 0.10; }
}

.hero-container {
  max-width: var(--wide-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-supratitle {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sepia);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 600;
  color: var(--color-brown-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-separator {
  width: 70px;
  height: 2px;
  background-color: var(--color-gold-antique);
  margin-bottom: 1.6rem;
}

.hero-text {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-brown-muted);
  margin-bottom: 2rem;
}

/* CTA Hero — bordure dorée animée pour attirer l'attention */
.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brown-deep);
  border: 1px solid var(--color-brown-deep);
  padding: 0.95rem 2.4rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    rgba(182, 142, 76, 0.12) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: ctaShimmer 4s ease-in-out infinite;
  transition: background-color var(--transition-smooth),
              color var(--transition-smooth),
              transform var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.hero-cta:hover {
  background: var(--color-brown-deep);
  color: var(--color-ivory);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(182, 142, 76, 0.35);
  animation: none;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Portrait Hero */
.hero-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
}

/* ===========================================================
   ORIGINES — Citadelle en arrière-plan pâle (style Borges)
   =========================================================== */
.section-origins {
  background-color: var(--color-white-soft);
  position: relative;
  overflow: hidden;
}

/* Citadelle en arrière-plan, à la manière Borges */
.origins-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/origins-citadelle.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.10;
  filter: saturate(0.4) sepia(0.25);
  z-index: 0;
}

.origins-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(254, 253, 251, 0.85) 0%,
    rgba(254, 253, 251, 0.78) 50%,
    rgba(254, 253, 251, 0.95) 82%,
    rgba(254, 253, 251, 1) 100%
  );
  z-index: 1;
}

.origins-inner {
  position: relative;
  z-index: 2;
}

/* La transition de fin d'Origins doit rester aussi lisible que celle d'Accomplishments :
   on la place au-dessus de l'overlay (z-index 3) et on lui donne une couleur et un contraste
   identiques à toutes les autres transitions (fond ivoire effectif, brun texte très foncé). */
.section-origins .section-transition {
  position: relative;
  z-index: 3;
  background-color: var(--color-ivory);
  border-radius: 6px;
}

.section-origins .section-transition .transition-text {
  color: var(--color-brown-text);
}

.origins-content {
  margin-top: 2rem;
}

.origins-text p {
  margin-bottom: 1.6rem;
  font-size: 1.12rem;
  line-height: 1.85;
}

.origins-closing {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-brown-warm);
}

/* ----- Images intégrées dans le texte ----- */
.inline-figure {
  margin: 0.5rem 0 1rem;
}

.inline-figure--right {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1.4rem;
}

.inline-figure--left {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1.4rem;
}

/* Variante harmonieuse : vignette masquée + fusion — sans bordure ni ombre, l'image se fond dans le fond de la section */
.inline-figure--seamless img {
  /* Vignette intégrée pour fondre les bords dans le fond */
  -webkit-mask-image: radial-gradient(ellipse 108% 108% at center, #000 70%, rgba(0,0,0,0.78) 88%, rgba(0,0,0,0.35) 98%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 108% 108% at center, #000 70%, rgba(0,0,0,0.78) 88%, rgba(0,0,0,0.35) 98%, rgba(0,0,0,0) 100%);
  /* Fusion avec le fond de la section pour supprimer totalement l'effet « collé » */
  mix-blend-mode: multiply;
}

/* Classe utilitaire : simule la transparence pour les JPG / images au fond clair
   en fusionnant leur luminosité avec la teinte ivoire de la page. */
.img-blend {
  mix-blend-mode: multiply;
}

/* Pas de bordure ni d'ombre sur les images : elles adoptent le fond de leur section */
.inline-figure img {
  border-radius: 0;
  box-shadow: none;
}

.inline-figure figcaption {
  font-family: var(--font-editorial);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-sepia-dark);
  text-align: center;
  margin-top: 0.55rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Portrait de Ketlen — masque renforcé pour fondre les bords dans l'ivoire de la section */
.inline-figure--portrait {
  background: transparent;
}

.inline-figure--portrait img {
  max-width: 300px;
  -webkit-mask-image: radial-gradient(ellipse 98% 98% at center, #000 55%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 98% 98% at center, #000 55%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0) 100%);
}

/* Pierre philosophale en figure centrale de la Biography — remplace la photo de Ketlen.
   Rendu circulaire, sans bord dur, halo doré discret, légère pulsation de lumière. */
.inline-figure--stone {
  max-width: 280px;
}

.inline-figure--stone img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  /* PNG déjà transparent : mix-blend léger pour ancrer la pierre dans le papier */
  mix-blend-mode: multiply;
  /* Rotation lente continue + halo doré pulsant */
  animation: stoneRotate 40s linear infinite, stoneGlow 6s ease-in-out infinite;
}

/* Rotation lente et continue de la pierre philosophale */
@keyframes stoneRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes stoneGlow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.22));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(201, 169, 110, 0.50));
  }
}

.inline-figure--small img {
  max-width: 170px;
  opacity: 0.8;
}

/* Logos (universités, Phi Sigma Tau) — sans carte blanche, sans bordure : ils prennent le fond de la section */
.inline-figure--logo {
  text-align: center;
  max-width: 130px;
}

.inline-figure--logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  margin: 0 auto;
}

.inline-figure--logo figcaption {
  font-size: 0.72rem;
  margin-top: 0.45rem;
}

/* Logos institutionnels — micro-interaction au survol */
.inline-figure--logo img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.inline-figure--logo:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 8px rgba(166, 139, 107, 0.3));
}

/* Saint Alban — halo statique permanent + balancement lent de l'image */
.inline-figure--saint {
  position: relative;
}

/* Halo sépia statique — ne bouge pas, sert de cadre lumineux */
.inline-figure--saint::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(182, 142, 76, 0.18) 0%, rgba(166, 139, 107, 0.08) 50%, transparent 72%);
  animation: saintHaloPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.inline-figure--saint img {
  position: relative;
  z-index: 1;
  animation: saintSwing 10s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(182, 142, 76, 0.35));
}

.inline-figure--skyline {
  max-width: 340px;
}

/* Skylines — dérive horizontale lente, effet panoramique cinématique */
.inline-figure--skyline img {
  max-width: 340px;
  opacity: 0.92;
  animation: skylineDrift 14s ease-in-out infinite;
}

/* Image Church_lilies (composition unifiée église + lys) */
.church-figure {
  max-width: 380px;
}

/* Logo inline dans le texte (ex: Phi Sigma Tau) */
.inline-logo {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.3rem;
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: 0.9;
}

/* Nettoyage des flottants */
.origins-text::after,
.biography-content::after,
.accomplishments-content::after {
  content: '';
  display: table;
  clear: both;
}

/* ===========================================================
   BIOGRAPHIE — Blason en filigrane sur le récit personnel
   =========================================================== */
.section-biography {
  background-color: var(--color-ivory);
  position: relative;
  overflow: hidden;
}

/* Blason (cipher) en filigrane, parfaitement centré dans la section biographie */
/* Blason centré sur la jonction texte/transition — même axe horizontal que l'ornement SVG.
   On utilise bottom pour que le centre du blason tombe sur le petit trait séparateur. */
.biography-crest {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  filter: sepia(0.22);
  /* Le blason est une PNG transparente : on applique une fusion douce pour éviter l'effet « collé » */
  mix-blend-mode: multiply;
}

.biography-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-biography .section-inner {
  z-index: 1;
}

.biography-content {
  margin-top: 1.5rem;
  position: relative;
}

.biography-content p {
  margin-bottom: 1.6rem;
  font-size: 1.12rem;
  line-height: 1.85;
}

/* Drop-cap : la pierre philosophale comme "C" de Celestin / lettrine d'ouverture */
.biography-opening {
  position: relative;
  min-height: 4.5rem;
}

.drop-cap--image {
  float: left;
  width: 4.6rem;
  height: 4.6rem;
  margin: 0.25rem 1rem 0.3rem 0;
  shape-outside: circle(50%);
  display: block;
}

.drop-cap--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(166, 139, 107, 0.35));
  /* Animation discrète d'apparition */
  animation: stoneGlowDropCap 5s ease-in-out infinite;
}

/* Halo doré discret pour la lettrine drop-cap (plus subtil que stoneGlow principal) */
@keyframes stoneGlowDropCap {
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(166, 139, 107, 0.35)); }
  50% { filter: drop-shadow(0 2px 14px rgba(201, 169, 110, 0.55)); }
}

/* La lettre "C" décorative remplacée graphiquement à l'intérieur de Celestin */
.name-celestin {
  position: relative;
  display: inline;
}

.celestin-initial {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  margin-right: -0.04em;
  background-image: url('../images/biography-philosophers-stone.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: sepia(0.15);
  opacity: 0.95;
}

/* ===========================================================
   ACCOMPLISSEMENTS
   =========================================================== */
.section-accomplishments {
  background-color: var(--color-white);
}

.accomplishments-content {
  margin-top: 2rem;
}

.accomplishments-content p {
  margin-bottom: 1.6rem;
  font-size: 1.12rem;
  line-height: 1.85;
}

.accomplishments-closing {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-brown-warm);
  margin-top: 1.2rem;
}

/* ===========================================================
   ARCHIVE FONDATRICE
   =========================================================== */
.section-archive {
  background-color: var(--color-ivory-warm);
}

.archive-content {
  margin-top: 2rem;
}

.archive-content > p {
  margin-bottom: 1.6rem;
  font-size: 1.12rem;
  line-height: 1.85;
}

/* ----- Composition principale Archive : photo à gauche, texte à droite ----- */
.archive-primary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

/* Photo du premier jour — léger tremblement de papier ancien */
.archive-central-image {
  max-width: 320px;
  text-align: center;
  animation: paperTremble 9s ease-in-out infinite;
}

.archive-central-image img {
  width: 100%;
}

.archive-central-image figcaption {
  font-family: var(--font-editorial);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--color-sepia-dark);
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}

.archive-primary-text p {
  margin-bottom: 1.6rem;
  font-size: 1.12rem;
  line-height: 1.85;
}

/* 3e paragraphe — pleine largeur, texte de liaison sous la grille principale */
.archive-bridge-text {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.85;
}

/* ----- Composition secondaire Archive : texte fluide autour des images flottantes ----- */
.archive-secondary {
  margin-top: 3rem;
  overflow: hidden; /* Contient les flottants */
}

/* Photo de la mère — flottante à droite, balancement doux comme une photo suspendue */
.archive-mother {
  float: right;
  max-width: 260px;
  margin: 0 0 1.5rem 2rem;
  transform-origin: top center;
  animation: photoSwing 8s ease-in-out infinite;
}

.archive-mother img {
  width: 100%;
}

.archive-mother figcaption {
  font-family: var(--font-editorial);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-sepia-dark);
  text-align: center;
  margin-top: 0.7rem;
  line-height: 1.4;
}

/* Vanitas — flottante à gauche, le texte candle démarre à son niveau */
.archive-secondary .archive-vanitas {
  float: left;
  margin: 0.5rem 1.8rem 1rem 0;
  clear: left;
}

/* Paragraphes de texte — coulent autour des images */
p.archive-secondary-text {
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
  line-height: 1.85;
}

/* ----- Positive Vanitas dans Archive — visuel atmosphérique, taille proche de la bougie ----- */
.archive-vanitas {
  position: relative;
  max-width: 160px;
  overflow: hidden;
  text-align: center;
}

.archive-vanitas img {
  width: 100%;
  height: auto;
  /* Animation de zoom/dézoom identique à celle de Vision, rythme lent */
  animation: vanitasBreath 14s ease-in-out infinite;
  /* Vignette douce pour fondre les bords dans le fond ivoire chaud de la section */
  -webkit-mask-image: radial-gradient(ellipse 106% 106% at center, #000 65%, rgba(0,0,0,0.4) 88%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 106% 106% at center, #000 65%, rgba(0,0,0,0.4) 88%, rgba(0,0,0,0) 100%);
}

.archive-vanitas figcaption {
  font-family: var(--font-editorial);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-sepia-dark);
  margin-top: 0.5rem;
  line-height: 1.35;
}

/* L'animation vanitasBreath est déjà définie plus bas dans la section Vision CSS */

/* ----- Bougie — taille réduite, centrée sous les deux compositions, position légèrement plus basse ----- */
.archive-candle-standalone {
  max-width: 140px;
  margin: 4.5rem auto 0;
  text-align: center;
}

.archive-candle-standalone img {
  max-width: 110px;
  height: auto;
  margin: 0 auto;
}

.archive-candle-standalone figcaption {
  font-family: var(--font-editorial);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-sepia-dark);
  margin-top: 0.6rem;
  line-height: 1.35;
}

/* ----- Effet papier usé — bordure vieillie autour des deux premières images Archive ----- */
.archive-aged-paper {
  position: relative;
  padding: 10px;
  /* Fond crème impur pour simuler le papier ancien */
  background:
    linear-gradient(135deg, #ede4d3 0%, #f0e8d8 25%, #e8ddc8 50%, #f2eadb 75%, #e5dacb 100%);
  /* Ombre très douce façon papier posé sur une table */
  box-shadow:
    2px 3px 12px rgba(61, 43, 31, 0.12),
    inset 0 0 20px rgba(166, 139, 107, 0.08);
}

/* Bord irrégulier supérieur et inférieur simulé par un pseudo-élément */
.archive-aged-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Bords usés via un mask qui mord irrégulièrement dans les contours */
  -webkit-mask-image:
    linear-gradient(to right,
      transparent 0%, black 2%, black 98%, transparent 100%),
    linear-gradient(to bottom,
      transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,
      transparent 0%, black 2%, black 98%, transparent 100%),
    linear-gradient(to bottom,
      transparent 0%, black 3%, black 97%, transparent 100%);
  mask-composite: intersect;
  background:
    linear-gradient(135deg, rgba(166, 139, 107, 0.15) 0%, transparent 40%),
    linear-gradient(225deg, rgba(166, 139, 107, 0.10) 0%, transparent 30%);
}

/* Bord usé plus réaliste : taches et déchirures légères */
.archive-aged-paper::after {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  border: 2px solid transparent;
  border-image: repeating-linear-gradient(
    90deg,
    rgba(166, 139, 107, 0.25) 0px,
    rgba(139, 115, 85, 0.18) 3px,
    transparent 5px,
    transparent 8px,
    rgba(166, 139, 107, 0.12) 10px
  ) 4;
}

/* Nouvelle bougie fournie par la cliente — présentation plus douce, sans cadre dur,
   effet de transparence simulé + halo doré pulsant pour évoquer la flamme. */
.archive-candle {
  position: relative;
  max-width: 200px;
}

.archive-candle img {
  /* L'image est un AVIF au fond déjà sombre : on simule un halo lumineux autour
     de la flamme via filter plutôt que via un fond dur. */
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 10px rgba(255, 200, 120, 0.35))
    drop-shadow(0 4px 14px rgba(61, 43, 31, 0.22));
  animation: candleFlicker 4.8s ease-in-out infinite;
  transition: filter 0.4s ease;
}

/* Halo doré enveloppant pulsé au rythme doux de la flamme, placé en arrière-plan
   pour baigner la bougie dans une lumière chaude plutôt que dans un rectangle. */
.archive-candle::before {
  content: '';
  position: absolute;
  inset: -14% -10% -6% -10%;
  background: radial-gradient(
    ellipse at 50% 34%,
    rgba(255, 214, 143, 0.38) 0%,
    rgba(255, 189, 107, 0.18) 35%,
    rgba(255, 189, 107, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: candleHalo 5.4s ease-in-out infinite;
}

/* Bougie — respiration amplifiée, halo plus lumineux */
@keyframes candleFlicker {
  0%,100% {
    filter:
      drop-shadow(0 0 14px rgba(255, 200, 120, 0.45))
      drop-shadow(0 4px 18px rgba(61, 43, 31, 0.25));
    transform: translateY(0) scale(1);
  }
  18% {
    filter:
      drop-shadow(0 0 20px rgba(255, 210, 140, 0.65))
      drop-shadow(0 4px 18px rgba(61, 43, 31, 0.25));
    transform: translateY(-2.5px) scale(1.04);
  }
  46% {
    filter:
      drop-shadow(0 0 30px rgba(255, 220, 150, 0.85))
      drop-shadow(0 4px 18px rgba(61, 43, 31, 0.25));
    transform: translateY(-4px) scale(1.07);
  }
  72% {
    filter:
      drop-shadow(0 0 16px rgba(255, 200, 120, 0.55))
      drop-shadow(0 4px 18px rgba(61, 43, 31, 0.25));
    transform: translateY(-1.5px) scale(1.02);
  }
}

@keyframes candleHalo {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ----- Photo de la mère — balancement doux comme une photo suspendue ----- */
@keyframes photoSwing {
  0%, 100% { transform: rotate(2.5deg); }
  30%      { transform: rotate(-1.5deg); }
  60%      { transform: rotate(1.8deg); }
}

/* Version mobile — amplitude réduite pour éviter le rognage sur petit écran */
@keyframes photoSwingMobile {
  0%, 100% { transform: rotate(1.2deg); }
  30%      { transform: rotate(-0.8deg); }
  60%      { transform: rotate(0.9deg); }
}

/* ----- CTA Hero — éclat doré glissant pour inciter au clic ----- */
@keyframes ctaShimmer {
  0%   { background-position: 150% center; }
  50%  { background-position: -50% center; }
  100% { background-position: 150% center; }
}

/* ----- Skylines — dérive horizontale lente, effet panoramique ----- */
@keyframes skylineDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

/* ----- Photo ancienne (premier jour) — léger tremblement de papier usé ----- */
@keyframes paperTremble {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(0.3deg); }
  50%      { transform: rotate(-0.25deg); }
  80%      { transform: rotate(0.15deg); }
}

/* ----- Saint Alban — pulsation du halo statique ----- */
@keyframes saintHaloPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* ----- Saint Alban — balancement très lent, amplitude contenue dans le halo ----- */
@keyframes saintSwing {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(1.2deg); }
  75%      { transform: rotate(-1.2deg); }
}

/* ----- Signature Vision — balayage doré lettre par lettre ----- */
@keyframes signatureSweep {
  0%   { background-position: 150% center; }
  40%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* ===========================================================
   VISION — bibliothèque Borges + Vanitas en surimpression
   =========================================================== */
.section-vision {
  position: relative;
  overflow: hidden;
  background-color: var(--color-brown-warm);
}

/* Arrière-plan principal : bibliothèque de Borges */
.vision-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/vision-borges-library.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.5);
}

/* Arrière-plan secondaire : Vanitas, en plan plus discret pour effet librairie */
.vision-bg-vanitas {
  position: absolute;
  inset: 0;
  background-image: url('../images/vision-vanitas.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(0.4) sepia(0.3);
  mix-blend-mode: overlay;
}

/* Overlay chaud sépia doux */
.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(92, 61, 46, 0.62) 0%,
    rgba(122, 99, 71, 0.55) 50%,
    rgba(92, 61, 46, 0.65) 100%
  );
}

/* Pierre philosophale — détail presque imperceptible */
.vision-stone {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.04;
  filter: saturate(0.3);
  pointer-events: none;
}

.vision-inner {
  position: relative;
  z-index: 1;
}

.vision-content {
  margin-top: 2rem;
}

.vision-content p {
  font-size: 1.18rem;
  line-height: 1.88;
  color: var(--color-cream);
  margin-bottom: 1.6rem;
}

.vision-closing {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-sepia-light);
}

/* Positive Vanitas — image visible avec animation de zoom/dézoom lent et continu */
.vision-vanitas-figure {
  margin: 2.8rem auto;
  max-width: 520px;
  text-align: center;
  overflow: hidden;
}

.vision-vanitas-figure img {
  width: 100%;
  height: auto;
  /* Animation de respiration : zoom lent puis dézoom */
  animation: vanitasBreath 14s ease-in-out infinite;
  /* Vignette douce pour fondre les bords dans le fond sombre */
  -webkit-mask-image: radial-gradient(ellipse 104% 104% at center, #000 68%, rgba(0,0,0,0.5) 90%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(ellipse 104% 104% at center, #000 68%, rgba(0,0,0,0.5) 90%, rgba(0,0,0,0) 100%);
}

@keyframes vanitasBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.vision-vanitas-figure figcaption {
  font-family: var(--font-editorial);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--color-sepia-light);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* Signature manuscrite de Ketlen en clôture de la section Vision :
   bien visible sur le fond sombre (inversion en ivoire), taille généreuse. */
/* Signature — base ivoire + balayage doré progressif lettre à lettre */
.vision-signature {
  margin: 2.4rem 0 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.vision-signature img {
  width: clamp(200px, 26vw, 320px);
  height: auto;
  /* La PNG transparente contient uniquement l'encre manuscrite.
     Sur le fond brun sombre de la Vision, on inverse et on teinte en or
     pour un rendu chaleureux cohérent avec le balayage doré. */
  filter: invert(1) sepia(0.4) saturate(2) hue-rotate(15deg) brightness(1.1) opacity(0.95);
  /* Légère rotation pour évoquer le geste manuscrit. */
  transform: rotate(-2deg);
}

/* Couche dorée superposée — même masque PNG que la signature,
   un dégradé doré glisse de gauche à droite pour révéler chaque lettre */
.vision-signature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(200px, 26vw, 320px);
  height: 100%;
  transform: rotate(-2deg);
  /* Le dégradé doré qui balaye : bande étroite dorée sur fond transparent */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(182, 142, 76, 0.85) 8%,
    rgba(212, 175, 105, 0.95) 15%,
    rgba(182, 142, 76, 0.85) 22%,
    transparent 30%
  );
  background-size: 400% 100%;
  animation: signatureSweep 6s ease-in-out infinite;
  /* Masque : seuls les pixels de la signature sont visibles */
  -webkit-mask-image: url('../images/signature-ketlen-transparent.png');
  mask-image: url('../images/signature-ketlen-transparent.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  pointer-events: none;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.section-contact {
  background-color: var(--color-white);
}

.contact-intro {
  max-width: 620px;
  margin: 0 0 2.2rem;
}

.contact-intro p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-brown-text);
  margin-bottom: 1rem;
}

.contact-intro strong {
  font-weight: 500;
  color: var(--color-brown-deep);
}

.contact-form {
  max-width: 620px;
}

/* Honeypot anti-spam — invisible */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-brown-deep);
  margin-bottom: 0.55rem;
}

.required {
  color: var(--color-sepia);
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-brown-text);
  background-color: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.9rem 1.05rem;
  transition: border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--color-sepia);
  box-shadow: 0 0 0 3px rgba(166, 139, 107, 0.12);
  outline: none;
}

.form-input.error {
  border-color: #b44;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  display: none;
  font-size: 0.82rem;
  color: #b44;
  margin-top: 0.35rem;
}

.form-error.visible {
  display: block;
}

.form-submit {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ivory);
  background-color: var(--color-brown-deep);
  border: none;
  border-radius: 3px;
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  transition: background-color var(--transition-smooth),
              transform var(--transition-smooth);
  position: relative;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background-color: var(--color-brown-warm);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-loading {
  display: none;
}

.form-submit.loading .submit-text {
  display: none;
}

.form-submit.loading .submit-loading {
  display: inline;
}

/* Message de statut du formulaire */
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  border-radius: 3px;
  padding: 0;
  transition: all var(--transition-smooth);
}

.form-status.success {
  color: #2a6e3f;
  background-color: rgba(42, 110, 63, 0.08);
  padding: 0.85rem 1rem;
}

.form-status.error-msg {
  color: #b44;
  background-color: rgba(187, 68, 68, 0.06);
  padding: 0.85rem 1rem;
}

/* ===========================================================
   PIED DE PAGE — signature manuscrite
   =========================================================== */
.site-footer {
  background-color: var(--color-brown-deep);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-signature {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  /* PNG désormais transparente : on inverse l'encre foncée en ivoire pour ressortir sur le fond brun. */
  filter: invert(1);
  opacity: 0.9;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-ivory);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sepia-light);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.45);
}

/* ===========================================================
   ANIMATIONS — Apparition douce au scroll, effets immersifs
   =========================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Léger effet parallaxe sur les arrière-plans Borges/Citadelle */
.origins-bg,
.vision-bg,
.vision-bg-vanitas {
  will-change: transform;
  transition: transform 0.4s ease-out;
}

/* Respect des préférences utilisateur (mouvement réduit) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   RESPONSIVE — Très grands écrans (>1400px)
   =========================================================== */
@media (min-width: 1400px) {
  :root {
    --content-max-width: 920px;
    --wide-max-width: 1240px;
  }

  .hero-title {
    font-size: 4.4rem;
  }

  .hero-text {
    font-size: 1.32rem;
  }

  .section-heading {
    font-size: 3.5rem;
  }

  .transition-text {
    font-size: 1.38rem;
  }
}

/* ===========================================================
   RESPONSIVE — Grands écrans (1200–1400px)
   =========================================================== */
@media (max-width: 1200px) {
  .hero-container {
    gap: 3rem;
  }

  .hero-image {
    max-width: 420px;
  }

  .biography-crest {
    width: 460px;
    height: 460px;
  }
}

/* ===========================================================
   RESPONSIVE — Tablette paysage (900–1024px)
   =========================================================== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.4rem;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .hero-container {
    gap: 2.5rem;
  }

  .hero-image {
    max-width: 380px;
  }

  .hero-ornament {
    width: 280px;
    height: 280px;
  }

  .biography-crest {
    width: 380px;
    height: 380px;
  }

  .inline-figure--portrait img {
    max-width: 250px;
  }

  .inline-figure--skyline,
  .inline-figure--skyline img {
    max-width: 290px;
  }
}

/* ===========================================================
   RESPONSIVE — Tablette portrait (640–900px)
   =========================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image {
    max-width: 340px;
  }

  .hero-separator {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-ornament {
    display: none;
  }

  .biography-crest {
    width: 320px;
    height: 320px;
    opacity: 0.03;
  }

  .inline-figure--right,
  .inline-figure--left {
    max-width: 260px;
  }

  .inline-figure--skyline,
  .inline-figure--skyline img {
    max-width: 260px;
  }

  .archive-primary {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-central-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .archive-mother {
    max-width: 220px;
  }

  .archive-vanitas {
    max-width: 140px;
  }

  .section-transition {
    max-width: 92%;
  }

  .transition-text {
    font-size: 1.18rem;
  }
}

/* ===========================================================
   RESPONSIVE — Mobile (≤640px)
   =========================================================== */
@media (max-width: 640px) {
  .section {
    padding: 3.2rem 1.25rem;
  }

  /* Navigation mobile — menu hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 0.65rem 1.25rem;
  }

  .nav-logo {
    font-size: 1.1rem;
    gap: 0.55rem;
  }

  .nav-logo-img {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-ivory);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px var(--color-shadow);
    transition: right var(--transition-smooth);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.95rem;
    /* Zone tactile confortable pour le menu mobile (≥ 44px de haut) */
    display: block;
    padding: 0.75rem 0.25rem;
  }

  /* Animation hamburger vers croix */
  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Hero mobile — espacement suffisant sous la navbar fixe */
  .section-hero {
    min-height: auto;
    padding-top: calc(6.25rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.8rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-supratitle {
    font-size: 0.78rem;
  }

  .hero-image {
    max-width: 280px;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .hero-cta {
    padding: 0.9rem 1.9rem;
    font-size: 0.85rem;
  }

  /* Titres réduits */
  .section-heading {
    font-size: 1.85rem;
  }

  .section-subheading {
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
  }

  /* Texte courant */
  .origins-text p,
  .biography-content p,
  .accomplishments-content p,
  .archive-primary-text p,
  p.archive-secondary-text {
    font-size: 1.05rem;
    line-height: 1.78;
  }

  /* Drop-cap mobile (philosophers stone) */
  .drop-cap--image {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0.15rem 0.75rem 0.2rem 0;
  }

  /* Crest biography moins envahissant */
  .biography-crest {
    width: 240px;
    height: 240px;
    opacity: 0.025;
  }

  /* Images flottantes désactivées — empilées verticalement */
  .inline-figure--right,
  .inline-figure--left {
    float: none;
    margin: 1.5rem auto;
    max-width: 100%;
  }

  .inline-figure--portrait img {
    max-width: 220px;
    margin: 0 auto;
  }

  .inline-figure--small img {
    max-width: 130px;
    margin: 0 auto;
  }

  .inline-figure--logo {
    max-width: 150px;
    margin: 1rem auto;
  }

  .inline-figure--skyline,
  .inline-figure--skyline img {
    max-width: 100%;
  }

  .church-figure {
    max-width: 100%;
  }

  /* Archive fondatrice — mobile : empiler les compositions */
  .archive-primary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-central-image {
    max-width: 260px;
    margin: 0 auto;
  }

  /* Archive secondaire — sur mobile, les images ne flottent plus, elles s'empilent */
  .archive-secondary .archive-mother,
  .archive-secondary .archive-vanitas {
    float: none;
    display: block;
    margin: 1.5rem auto;
  }

  .archive-vanitas {
    max-width: 120px;
  }

  .archive-mother {
    max-width: 200px;
    /* Balancement réduit sur mobile pour éviter le rognage */
    transform-origin: top center;
    animation: photoSwingMobile 10s ease-in-out infinite;
  }

  .archive-candle-standalone {
    max-width: 100px;
  }

  /* Papier usé : réduire le padding sur mobile */
  .archive-aged-paper {
    padding: 6px;
  }

  .archive-bridge-text {
    font-size: 1.05rem;
  }

  /* Transitions entre sections */
  .section-transition {
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    max-width: 100%;
  }

  .transition-text {
    font-size: 1.08rem;
    padding: 0 0.5rem;
  }

  .transition-ornament svg {
    width: 110px;
  }

  /* Vision */
  .vision-content p {
    font-size: 1.08rem;
  }

  .vision-vanitas-figure {
    max-width: 100%;
  }

  .vision-stone {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }

  /* Contact */
  .contact-intro p {
    font-size: 1rem;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-submit {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .site-footer {
    padding: 2rem 1.25rem;
  }

  .footer-signature {
    max-width: 180px;
  }
}

/* ===========================================================
   RESPONSIVE — Petits mobiles (≤400px : iPhone SE, Galaxy S8…)
   =========================================================== */
@media (max-width: 400px) {
  .section {
    padding: 2.6rem 1rem;
  }

  .section-hero {
    padding-top: calc(5.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.8rem;
  }

  .nav-inner {
    padding: 0.6rem 1rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo-img {
    width: 30px;
    height: 30px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-supratitle {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-image {
    max-width: 230px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.55rem;
  }

  .section-label {
    font-size: 0.72rem;
  }

  .origins-text p,
  .biography-content p,
  .accomplishments-content p,
  .archive-primary-text p,
  p.archive-secondary-text,
  .vision-content p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .inline-figure--portrait img {
    max-width: 190px;
  }

  .archive-mother {
    max-width: 160px;
  }

  .transition-text {
    font-size: 1rem;
  }

  .form-input {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }

  .form-submit {
    padding: 0.9rem 1.6rem;
    font-size: 0.85rem;
  }
}

/* ===========================================================
   RESPONSIVE — Très petits mobiles (≤320px : iPhone 5/SE gen1)
   =========================================================== */
@media (max-width: 320px) {
  .section {
    padding: 2rem 0.75rem;
  }

  .section-hero {
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-image {
    max-width: 200px;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .nav-logo {
    font-size: 0.92rem;
    gap: 0.4rem;
  }

  .nav-logo-img {
    width: 26px;
    height: 26px;
  }

  /* archive-central-image : bordure supprimée (nettoyage global) */

  .drop-cap--image {
    width: 3rem;
    height: 3rem;
  }
}

/* ===========================================================
   RESPONSIVE — Écrans en orientation paysage mobile
   =========================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .section-hero {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
  }

  .hero-image {
    max-width: 200px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .nav-links {
    height: 100vh;
    height: 100dvh;
    padding-top: 3.5rem;
    gap: 1rem;
  }
}

/* ===========================================================
   IMPRESSION — Optionnel
   =========================================================== */
@media print {
  .nav,
  .hero-cta,
  .contact-form,
  .form-honeypot,
  .vision-stone,
  .hero-ornament,
  .biography-crest,
  .transition-ornament {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .section-vision {
    background: #fff;
    color: #000;
  }

  .vision-bg,
  .vision-bg-vanitas,
  .vision-overlay,
  .origins-bg,
  .origins-bg-overlay {
    display: none;
  }

  .vision-content p,
  .vision-closing {
    color: #000;
  }
}
