/* ═══════════════════════════════════════════════════════════════════════
   Essai : l'accueil en version plus contemporaine (27/11/2026).

   D'après la maquette de Christophe « pistes de refonte », piste A (La Veillée)
   pour le caractère et l'échelle, avec le sommaire de la piste B en tête.
   Rien ne change dans les textes ni dans les images : seuls la typographie,
   la mise en page et le mouvement sont repris.

   Tout est rangé sous `.est-moderne`, posé sur <body> par la page qui déclare
   `moderne: true`. Les autres pages ne sont pas touchées.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Deux voix : un sérif de caractère pour les titres, un sans pour lire ─── */
html .est-moderne.theme--veillee {
  --police-titre: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --police-texte: "Inter", system-ui, sans-serif;
  --police-interface: "Inter", system-ui, sans-serif;
  --graisse-titre: 400;
  --rayon: 20px;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.est-moderne h1, .est-moderne h2, .est-moderne h3 { letter-spacing: -0.015em; }
.est-moderne .v-section h2, .est-moderne .v-tete h2 {
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 3.75rem);
  line-height: 1.04;
}

/* ─── Le menu : des mots simples, la clé en bouton plein ─────────────── */
.est-moderne .v-barre { padding-block: 22px; }
.est-moderne .v-barre__nom { font-size: 1.625rem; font-style: normal; }
.est-moderne .v-barre__liens { font-size: 0.9375rem; letter-spacing: 0; text-transform: none; font-weight: 500; gap: clamp(14px, 2.2vw, 30px); }
.est-moderne .v-groupe__liens a { letter-spacing: 0; }
.est-moderne .v-groupe__liens { border-radius: 14px; }
.est-moderne .v-barre__liens .v-barre__entrer {
  background: var(--accent); border-color: var(--accent); color: var(--sur-accent);
  font-weight: 600; padding: 0 22px;
  transition: transform var(--transition-rapide), box-shadow var(--transition-rapide);
}
.est-moderne .v-barre__liens .v-barre__entrer:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(var(--accent-rvb), 0.8); color: var(--sur-accent); }

/* ─── Les boutons : ronds, francs ─────────────────────────────────────── */
.est-moderne .bouton {
  border-radius: 999px; padding: 18px 28px; min-height: 56px;
  font-family: var(--police-interface); font-size: 1rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  transition: transform var(--transition-rapide), box-shadow var(--transition-rapide);
}
.est-moderne .bouton:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(var(--accent-rvb), 0.9); }
.est-moderne .v-lien-fleche { font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* ─── Le seuil : un titre qui prend la page ───────────────────────────── */
.est-moderne .v-seuil { align-items: center; padding-top: clamp(24px, 5vw, 72px); }
.est-moderne .v-seuil .v-salut q { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); }
.est-moderne .v-seuil .v-salut__qui { font-size: 0.75rem; letter-spacing: 0.18em; }
.est-moderne .v-seuil .v-signature {
  font-size: clamp(3.5rem, 0.6rem + 9.4vw, 7.25rem);
  line-height: 0.94; letter-spacing: -0.025em;
}
.est-moderne .v-seuil .v-signature span { font-size: 0.3em; line-height: 1.25; margin-top: 0.7em; letter-spacing: -0.005em; }
.est-moderne .v-seuil__phrase { margin-top: 28px; max-width: 29em; font-size: 1.125rem; line-height: 1.65; color: var(--texte-doux); }
.est-moderne .v-seuil__note { font-family: var(--police-interface); font-style: normal; font-size: 0.875rem; color: var(--texte-doux); }
.est-moderne .v-seuil__image img { border-radius: 240px 240px 24px 24px; }
.est-moderne .v-seuil__arche { border-radius: 240px 240px 24px 24px; }
html[data-ton="sombre"] .est-moderne .v-seuil__image img { box-shadow: 0 0 120px rgba(var(--accent-rvb), 0.2); }

/* ─── Les formules du conteur restent, plus discrètes ─────────────────── */
.est-moderne .v-fil { gap: 18px; margin-bottom: clamp(28px, 4vw, 44px); }
.est-moderne .v-fil__mot { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.est-moderne .v-fil__nom { font-size: 0.75rem; letter-spacing: 0.18em; font-weight: 500; }

/* ─── Isidore accueille : sa parole en grand, le reste en clair ───────── */
.est-moderne .v-accueil-parole__grand { font-weight: 400; font-style: italic; font-size: clamp(2.5rem, 1.1rem + 5.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.est-moderne .v-accueil-parole__suite { padding-left: 0; border-left: 0; gap: 16px; }
.est-moderne .v-accueil-parole__suite p {
  font-family: var(--police-titre); font-style: italic; font-size: 1.4375rem; line-height: 1.35; color: var(--texte-seuil);
  padding: 26px 28px; border: 1px solid var(--trait); border-radius: var(--rayon); background: rgba(var(--fond-rvb), 0.5);
}

/* ─── Le sentier : un titre à gauche, sa note à droite, trois cartes ──── */
.est-moderne .v-tete--centre {
  max-width: none; text-align: left;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px;
}
.est-moderne .v-tete--centre h2 { margin-inline: 0; max-width: 12em; flex: 1 1 0; min-width: 0; }
.est-moderne .v-tete--centre .v-chapo { margin: 0 0 0.5em; flex: 0 0 19em; max-width: 19em; font-size: 1rem; line-height: 1.6; color: var(--texte-doux); }
.est-moderne .v-tete .v-chapo { font-size: 1.0625rem; color: var(--texte-doux); }

.est-moderne .v-sentier--colonnes { gap: 20px; align-items: stretch; }
.est-moderne .v-sentier--colonnes li,
.est-moderne .v-sentier--colonnes li:nth-child(even) {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.est-moderne .v-sentier--colonnes li:first-child { border-color: var(--accent); background: rgba(var(--accent-rvb), 0.07); }
.est-moderne .v-sentier--colonnes li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.55); }
.est-moderne .v-sentier--colonnes img { height: clamp(200px, 19vw, 260px); margin: 0; border-radius: 0; width: 100%; object-fit: cover; transition: transform 0.6s ease; }
.est-moderne .v-sentier--colonnes li:hover img { transform: scale(1.04); }
.est-moderne .v-sentier--colonnes li > div { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 26px 28px 28px; }
.est-moderne .v-sentier__rang { margin: 0; gap: 10px; font-size: 0.75rem; letter-spacing: 0.12em; }
.est-moderne .v-sentier__rang span { width: 26px; height: 26px; font-size: 0.75rem; }
.est-moderne .v-sentier--colonnes h3 { font-size: 2.125rem; line-height: 1.05; }
.est-moderne .v-sentier--colonnes p:not(.v-sentier__rang) { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--texte-seuil); }
.est-moderne .v-sentier--colonnes .v-lien-fleche { margin-top: auto; padding-top: 8px; }

/* ─── Le manifeste : la phrase forte, vraiment forte ──────────────────── */
.est-moderne .v-extrait p:not(.v-murmure):not(.v-fil):not(.v-extrait__fort) { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); line-height: 1.45; }
.est-moderne .v-extrait p.v-extrait__fort { font-size: clamp(3rem, 1.2rem + 7vw, 6.5rem); line-height: 0.98; letter-spacing: -0.02em; }

/* ─── Quatre manières : quatre cartes ─────────────────────────────────── */
.est-moderne .v-entrees { border-top: 0; gap: 16px; }
.est-moderne .v-entrees li, .est-moderne .v-entrees li:nth-child(odd) { border: 0; }
.est-moderne .v-entrees a,
.est-moderne .v-entrees li:nth-child(even) a {
  padding: 28px 28px 30px; gap: 8px 14px;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.est-moderne .v-entrees a:hover,
.est-moderne .v-entrees li:nth-child(even) a:hover {
  padding-left: 28px; transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.55);
}
.est-moderne .v-entrees a::before { font-size: 1.5rem; }
.est-moderne .v-section .v-entrees h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); }
.est-moderne .v-entrees p { font-size: 1rem; line-height: 1.6; max-width: 30em; }
.est-moderne .v-entrees__suite {
  margin-top: 20px; max-width: none; font-style: normal; font-size: 0.9375rem; line-height: 1.6;
  padding: 18px 22px; border-radius: 14px; background: var(--fond-2); color: var(--texte-seuil);
}

/* ─── La fin : une phrase, sans cadre ─────────────────────────────────── */
.est-moderne .v-fin__phrase { border: 0; padding-block: clamp(24px, 4vw, 48px); font-style: italic; font-size: clamp(1.875rem, 1.1rem + 3vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.est-moderne .v-fin__qui { font-size: 0.9375rem; color: var(--texte-doux); }

/* ─── Le mouvement : ce qui entre dans l'écran arrive en douceur ──────── */
.est-moderne .arrive { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--attente, 0s); }
.est-moderne .arrive.est-la { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .est-moderne .arrive { opacity: 1; transform: none; transition: none; }
  .est-moderne .v-sentier--colonnes li, .est-moderne .v-sentier--colonnes img, .est-moderne .v-entrees a, .est-moderne .bouton { transition: none; }
  .est-moderne .v-sentier--colonnes li:hover, .est-moderne .v-entrees a:hover, .est-moderne .bouton:hover:not(:disabled) { transform: none; }
  .est-moderne .v-sentier--colonnes li:hover img { transform: none; }
}

/* ─── Téléphone et tablette ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .est-moderne .v-sentier--colonnes { grid-template-columns: 1fr; }
  .est-moderne .v-sentier--colonnes img { height: clamp(200px, 48vw, 300px); }
  .est-moderne .v-accueil-parole__suite { grid-template-columns: 1fr; }
  .est-moderne .v-tete--centre { align-items: flex-start; flex-direction: column; }
  .est-moderne .v-tete--centre h2, .est-moderne .v-tete--centre .v-chapo { flex: none; max-width: none; }
  .est-moderne .v-entrees a, .est-moderne .v-entrees li:nth-child(even) a { padding: 24px 22px 26px; }
  .est-moderne .v-entrees a:hover, .est-moderne .v-entrees li:nth-child(even) a:hover { padding-left: 22px; }
  .est-moderne .v-barre__liens { font-size: 1rem; }
  .est-moderne .v-seuil__image img, .est-moderne .v-seuil__arche { border-radius: 200px 200px 20px 20px; }
}
@media (max-width: 600px) {
  .est-moderne .v-seuil .v-signature { font-size: clamp(3.25rem, 1.5rem + 9vw, 4.5rem); }
  .est-moderne .bouton { width: 100%; justify-content: center; }
  .est-moderne .v-accueil-parole__suite p { font-size: 1.25rem; padding: 22px; }
}

/* ═══ Les autres pages ═══════════════════════════════════════════════════ */

/* L'image plein cadre garde ses réglages sombres, mais prend les deux nouvelles voix. */
html .est-moderne .v-veillee {
  --police-titre: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --police-texte: "Inter", system-ui, sans-serif;
  --police-interface: "Inter", system-ui, sans-serif;
  --graisse-titre: 400;
  font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.65;
}
.est-moderne .v-veillee h1 { font-size: clamp(3rem, 0.9rem + 7.4vw, 6.25rem); line-height: 0.96; letter-spacing: -0.025em; }
.est-moderne .v-veillee__phrase { font-family: var(--police-texte); font-style: normal; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; max-width: 30em; }
.est-moderne .v-murmure { font-size: 0.75rem; letter-spacing: 0.18em; font-weight: 500; }
.est-moderne .v-note { font-size: 0.9375rem; font-style: normal; color: var(--texte-doux); }
.est-moderne .v-deux__texte > p:not(.v-murmure) { font-size: 1.0625rem; line-height: 1.7; }
.est-moderne .v-deux__image img { border-radius: var(--rayon, 20px); }
.est-moderne .v-deux__image--carre img { border-radius: 240px 240px 24px 24px; }

/* Les « temps » et les « portes » : des cartes, comme sur l'accueil. */
.est-moderne .v-temps { gap: 16px; }
.est-moderne .v-temps li,
.est-moderne .v-porte {
  padding: 28px; border: 1px solid var(--trait); border-radius: var(--rayon, 20px); background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.est-moderne .v-portes { gap: 16px; }
.est-moderne .v-temps li:hover, .est-moderne .v-porte:hover { transform: translateY(-3px); border-color: var(--accent); }
.est-moderne .v-section--nuit .v-temps li, .est-moderne .v-section--nuit .v-porte { background: rgba(255, 255, 255, 0.04); border-color: rgba(239, 232, 218, 0.16); }
.est-moderne .v-temps p, .est-moderne .v-porte p { font-size: 1rem; line-height: 1.6; }
.est-moderne .v-temps h3, .est-moderne .v-porte h3 { font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem); line-height: 1.08; }
.est-moderne .v-esprit__liste li { font-size: 1.0625rem; line-height: 1.6; }

/* Les citations : grandes, en italique, sans filet. */
.est-moderne .v-citation > p { border-top: 0; padding-top: 0; font-size: clamp(1.875rem, 1.1rem + 3vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; }

/* La galerie, le poème, le récit. */
.est-moderne .v-galerie img { border-radius: var(--rayon, 20px); }
.est-moderne .v-galerie figcaption { font-family: var(--police-titre); font-size: 1.1875rem; }
.est-moderne .v-poeme__carte { border-radius: var(--rayon, 20px); font-family: var(--police-titre); font-size: 1.375rem; line-height: 1.45; }
.est-moderne .v-poeme__carte footer { font-family: var(--police-texte); font-style: normal; font-size: 0.875rem; }
.est-moderne .v-recit p { font-size: 1.0625rem; line-height: 1.75; }
.est-moderne .v-recit__fort { font-family: var(--police-titre); }

/* L'extrait : la parole d'Isidore reste en sérif, c'est sa voix. */
.est-moderne .v-banc__parole p { font-family: var(--police-titre); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.3; }
.est-moderne .v-banc__etape label { letter-spacing: 0.1em; }

/* Les formulaires. */
.est-moderne .v-form input, .est-moderne .v-form select, .est-moderne .v-form textarea { border-radius: 14px; font-family: var(--police-texte); font-size: 1rem; }
.est-moderne .v-form__profils span { font-family: var(--police-texte); font-size: 0.9375rem; font-weight: 500; }

/* Les pages de texte. */
.est-moderne .v-legal p, .est-moderne .v-legal ul { font-size: 1rem; line-height: 1.7; }
.est-moderne .v-legal h3 { letter-spacing: 0.12em; }
.est-moderne .v-legal__date { font-style: normal; }
.est-moderne .v-manifeste__texte p { font-family: var(--police-titre); }

@media (prefers-reduced-motion: reduce) {
  .est-moderne .v-temps li, .est-moderne .v-porte { transition: none; }
  .est-moderne .v-temps li:hover, .est-moderne .v-porte:hover { transform: none; }
}
.est-moderne .v-barre__lien { display: inline-flex; align-items: center; min-height: 46px; }

/* ═══ La page contact : un mot à gauche, une carte où l'on écrit à droite ═══ */
.est-moderne .v-contact {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.est-moderne .v-contact__mot { position: sticky; top: 32px; }
.est-moderne .v-contact__mot h2 { margin-top: 18px; font-size: clamp(2.75rem, 1.4rem + 4.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.025em; }
.est-moderne .v-contact__mot h2 em { font-style: italic; color: var(--accent); }
.est-moderne .v-contact__chapo { margin-top: 22px; max-width: 24em; font-size: 1.1875rem; line-height: 1.55; color: var(--texte-seuil); }
.est-moderne .v-contact__reperes { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; border-top: 1px solid var(--trait); max-width: 30em; }
.est-moderne .v-contact__reperes li { padding: 16px 0; border-bottom: 1px solid var(--trait); font-size: 0.9375rem; line-height: 1.55; color: var(--texte-doux); }
.est-moderne .v-contact__reperes a { color: var(--texte); text-underline-offset: 3px; overflow-wrap: anywhere; }
.est-moderne .v-contact__reperes a:hover { color: var(--accent); }
.est-moderne .v-contact .v-cle__signe { margin-top: clamp(28px, 4vw, 40px); text-align: left; font-style: normal; font-size: 0.9375rem; color: var(--texte-doux); }
.est-moderne .v-contact .v-cle__signe span { margin-top: 4px; font-style: italic; font-size: 2.5rem; }

.est-moderne .v-contact__carte {
  margin: 0; max-width: none; display: flex; flex-direction: column; gap: 28px;
  padding: clamp(24px, 3.6vw, 48px);
  background: var(--surface); border: 1px solid var(--trait); border-radius: 28px;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.6);
}
.est-moderne .v-contact__carte label,
.est-moderne .v-contact__carte legend { font-family: var(--police-interface); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--texte); }
.est-moderne .v-contact__carte .v-form__option { font-weight: 400; color: var(--texte-doux); }
.est-moderne .v-contact__carte .v-form__champ { gap: 10px; }
.est-moderne .v-contact__carte .v-form__profils { justify-content: flex-start; gap: 8px; }
.est-moderne .v-contact__carte .v-form__profils legend { margin-bottom: 12px; text-align: left; }
.est-moderne .v-contact__carte .v-form__profils span { min-height: 44px; padding: 0 18px; background: var(--fond); border-color: var(--trait); transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.est-moderne .v-contact__carte .v-form__profils input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.est-moderne .v-contact__carte input[type="text"],
.est-moderne .v-contact__carte textarea {
  background: var(--fond); border: 1px solid var(--trait-fort); border-radius: 14px;
  padding: 15px 18px; min-height: 54px; font-size: 1.0625rem; line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.est-moderne .v-contact__carte input[type="text"]:focus,
.est-moderne .v-contact__carte textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rvb), 0.2); }
.est-moderne .v-contact__carte .v-form__envoyer { width: 100%; min-width: 0; justify-content: center; justify-self: stretch; margin-top: 4px; }
.est-moderne .v-contact__carte .v-form__erreur { font-weight: 500; }

@media (max-width: 900px) {
  .est-moderne .v-contact { grid-template-columns: 1fr; }
  .est-moderne .v-contact__mot { position: static; }
  .est-moderne .v-contact__carte { border-radius: 22px; }
}
.est-moderne .v-contact__carte .v-form__envoyer { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.est-moderne .v-contact__carte .v-form__envoyer:hover:not(:disabled) { background: var(--accent); color: var(--sur-accent); }
