/* ==========================================================================
   Ordre de Saint-Lazare de Jérusalem — Grand Prieuré de France
   Charte : vert Lazare, or héraldique, ivoire — Cormorant/EB Garamond
   ========================================================================== */

:root {
  --vert-profond: #1E5B2A;
  --vert-croix: #2E8B3D;
  --vert-sombre: #14401D;
  --or: #B99755;
  --or-clair: #D8C08F;
  --noir: #1B1B1B;
  --anthracite: #3F3F3F;
  --ivoire: #F7F5EF;
  --blanc: #FFFFFF;
  --gris-doux: #E9E5DB;

  --f-titre: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-corps: "EB Garamond", Georgia, "Times New Roman", serif;

  --largeur: 72rem;
  --largeur-texte: 46rem;
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-corps);
  font-size: 1.155rem;
  line-height: 1.72;
  color: var(--noir);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-profond); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-croix); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 600; line-height: 1.14; color: var(--noir); margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.15rem; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1.4rem; }
.texte { max-width: var(--largeur-texte); }
.centre { margin-inline: auto; text-align: center; }

.surtitre {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--vert-profond); font-weight: 600; margin-bottom: 1.1rem;
}
.surtitre::before {
  content: ""; width: 1em; height: 1em; flex: none;
  background: currentColor;
  -webkit-mask: url("../img/croix-lazare.svg") center/contain no-repeat;
          mask: url("../img/croix-lazare.svg") center/contain no-repeat;
}
.section-claire .surtitre, .bandeau .surtitre { color: var(--or-clair); }

/* Lien d'évitement */
.evitement {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--vert-profond); color: #fff; padding: .7rem 1.2rem;
}
.evitement:focus { left: .5rem; top: .5rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gris-doux);
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 1.4rem; max-width: var(--largeur); margin: 0 auto;
}
.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--noir); }
.marque-croix { width: 2.5rem; height: 2.5rem; color: var(--vert-croix); flex: none; }
.marque-nom { font-family: var(--f-titre); font-size: 1.18rem; line-height: 1.15; font-weight: 600; }
.marque-sous {
  display: block; font-family: var(--f-corps); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--anthracite);
}
.nav-principale ul { display: flex; flex-wrap: nowrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-principale a { text-decoration: none; font-size: .98rem; color: var(--noir); white-space: nowrap; }
.nav-principale a[aria-current="page"] { color: var(--vert-profond); font-weight: 700; border-bottom: 2px solid var(--or); padding-bottom: .15rem; }

.bouton, .bouton-secondaire {
  display: inline-block; padding: .78rem 1.6rem; border-radius: 3px;
  font-family: var(--f-corps); font-size: 1.02rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.bouton { background: var(--vert-profond); color: #fff; }
.bouton:hover { background: var(--vert-sombre); color: #fff; }
.bouton-secondaire { background: transparent; color: var(--vert-profond); border-color: var(--vert-profond); }
.bouton-secondaire:hover { background: var(--vert-profond); color: #fff; }
.bandeau .bouton { background: var(--or); color: var(--noir); font-weight: 600; }
.bandeau .bouton:hover { background: var(--or-clair); }
.heros .bouton-secondaire { color: #fff; border-color: rgba(255,255,255,.75); }
.heros .bouton-secondaire:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Menu mobile */
.nav-bascule {
  display: none; background: none; border: 1px solid var(--anthracite);
  border-radius: 3px; padding: .5rem .7rem; cursor: pointer;
}
.nav-bascule .barre { display: block; width: 1.4rem; height: 2px; background: var(--noir); margin: 4px 0; transition: transform .25s, opacity .25s; }
.nav-bascule[aria-expanded="true"] .barre:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-bascule[aria-expanded="true"] .barre:nth-child(2) { opacity: 0; }
.nav-bascule[aria-expanded="true"] .barre:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Héros ---------- */
.heros { position: relative; color: #fff; overflow: hidden; background: var(--vert-sombre); }
.heros-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.heros::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,28,16,.55) 0%, rgba(15,28,16,.68) 70%, rgba(15,28,16,.85) 100%);
}
.heros-contenu {
  position: relative; z-index: 1; max-width: var(--largeur); margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) 1.4rem clamp(4rem, 11vh, 7rem);
}
.heros h1 { color: #fff; max-width: 18ch; }
.heros .surtitre { color: var(--or-clair); }
.heros-chapeau { font-size: 1.28rem; max-width: 38rem; color: rgba(255,255,255,.94); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.heros-court .heros-contenu { padding: clamp(3.5rem, 9vh, 5.5rem) 1.4rem; }

.devise-bande {
  background: var(--vert-profond); color: var(--or-clair);
  text-align: center; padding: .85rem 1rem;
  font-family: var(--f-titre); font-size: 1.25rem; letter-spacing: .04em;
}
.devise-bande em { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.8rem, 9vw, 6.5rem) 0; }
.section-claire { background: var(--vert-profond); color: #fff; }
.section-claire h2, .section-claire h3 { color: #fff; }
.section-claire a { color: var(--or-clair); }
.section-ivoire2 { background: #EFEBE0; }

.deux-colonnes { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.25fr .75fr; }
.deux-colonnes figure { margin: 0; }
.deux-colonnes figcaption { font-size: .85rem; color: var(--anthracite); margin-top: .6rem; text-align: center; }

/* Cartes piliers */
.cartes { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
.carte {
  background: var(--blanc); border: 1px solid var(--gris-doux); border-radius: 4px;
  padding: 2rem 1.7rem; box-shadow: 0 2px 14px rgba(27,27,27,.05);
}
.carte-croix { width: 2.1rem; height: 2.1rem; color: var(--vert-croix); margin-bottom: 1rem; }
.carte h3 { margin-bottom: .2rem; }
.carte .devise { font-style: italic; color: var(--or); font-size: .98rem; margin-bottom: .9rem; display: block; }

/* Bandeau chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.chiffre-val { font-family: var(--f-titre); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: var(--or-clair); line-height: 1; }
.chiffre-lab { font-size: .98rem; color: rgba(255,255,255,.92); margin-top: .5rem; }

/* Frise chronologique */
.frise { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; }
.frise::before {
  content: ""; position: absolute; left: 7.2rem; top: .4rem; bottom: .4rem;
  width: 2px; background: var(--or);
}
.frise li { display: grid; grid-template-columns: 5.6rem 3.2rem 1fr; gap: 0; margin-bottom: 1.9rem; align-items: start; }
.frise-date { font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; color: var(--vert-profond); text-align: right; line-height: 1.3; }
.frise-point { position: relative; height: 100%; }
.frise-point::before {
  content: ""; position: absolute; left: 50%; top: .48rem; transform: translateX(-50%);
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--vert-croix); border: 2px solid var(--ivoire); box-shadow: 0 0 0 2px var(--or);
}
.frise-texte { padding-top: .1rem; }

/* Huit pointes */
.pointes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; counter-reset: pointe; }
.pointe { background: var(--blanc); border: 1px solid var(--gris-doux); border-radius: 4px; padding: 1.5rem 1.3rem; }
.pointe::before {
  counter-increment: pointe; content: counter(pointe);
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--vert-profond); color: var(--or-clair);
  font-family: var(--f-titre); font-weight: 700; margin-bottom: .8rem;
}
.pointe strong { display: block; font-family: var(--f-titre); font-size: 1.12rem; margin-bottom: .3rem; }
.pointe em { color: var(--vert-profond); font-weight: 600; }
.pointe p { margin: .4rem 0 0; font-size: 1.02rem; }

/* Interpellation — question d'adresse au lecteur */
.interpellation {
  font-family: var(--f-titre);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-style: italic; line-height: 1.28;
  color: var(--vert-profond);
  max-width: 40rem; margin: 1.4rem auto 2.2rem;
}

/* Citation */
.exergue {
  border: none; margin: 3rem auto; max-width: 44rem; text-align: center;
  font-family: var(--f-titre); font-size: clamp(1.4rem, 3vw, 1.85rem); font-style: italic; color: var(--vert-profond);
  padding: 0 1rem;
}
.exergue::before {
  content: ""; display: block; width: 1.6rem; height: 1.6rem; margin: 0 auto 1rem;
  background: var(--or);
  -webkit-mask: url("../img/croix-lazare.svg") center/contain no-repeat;
          mask: url("../img/croix-lazare.svg") center/contain no-repeat;
}
.section-claire .exergue { color: var(--or-clair); }
.exergue-ref {
  display: block; margin-top: 1rem;
  font-family: var(--f-corps); font-style: normal;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or);
}

/* Étapes (devenir membre) */
.etapes { list-style: none; margin: 2.6rem 0 0; padding: 0; counter-reset: etape; }
.etapes li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; margin-bottom: 2rem; }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--vert-profond); color: var(--or-clair);
  font-family: var(--f-titre); font-size: 1.5rem; font-weight: 700;
}
.etapes h3 { margin-bottom: .3rem; }

.encadre {
  background: var(--blanc); border-left: 4px solid var(--or); border-radius: 0 4px 4px 0;
  padding: 1.6rem 1.8rem; margin: 2.4rem 0; box-shadow: 0 2px 14px rgba(27,27,27,.05);
}
.encadre-titre { font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; display: block; margin-bottom: .6rem; }
.encadre blockquote { margin: 0; font-style: italic; }

/* Colonnes trouver/donner */
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.2rem; }
.balance .carte ul { margin: 0; padding-left: 1.1rem; }
.balance .carte li { margin-bottom: .55rem; }

/* FAQ */
.faq { margin-top: 2.2rem; }
.faq details {
  background: var(--blanc); border: 1px solid var(--gris-doux); border-radius: 4px;
  padding: 1.1rem 1.4rem; margin-bottom: .9rem;
}
.faq summary {
  cursor: pointer; font-family: var(--f-titre); font-size: 1.18rem; font-weight: 600;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  color: var(--or); font-size: 1.5rem; font-family: var(--f-corps);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 .2rem; }

/* Œuvres */
.oeuvres-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.4rem; }

/* Chiffres — variante 3 colonnes (page international) */
.chiffres-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Carte des commanderies ---------- */
.carte-france-conteneur { max-width: 44rem; margin: 2.8rem auto 0; }
.carte-france-lien { display: block; cursor: zoom-in; }
.carte-france-conteneur img {
  width: 100%; height: auto; display: block; border-radius: 4px;
  border: 1px solid var(--gris-doux); box-shadow: 0 6px 28px rgba(27,27,27,.14);
  transition: box-shadow .25s ease, transform .25s ease;
}
.carte-france-lien:hover img,
.carte-france-lien:focus-visible img {
  box-shadow: 0 10px 36px rgba(27,27,27,.22);
  transform: translateY(-2px);
}
.carte-france-legende { text-align: center; font-size: .88rem; color: var(--anthracite); font-style: italic; margin-top: 1rem; }

/* Régions & commanderies (liste complémentaire à la carte) */
.regions-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.4rem; margin-top: 3rem; }
.region-bloc h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--vert-profond); }
.region-bloc ul { list-style: none; margin: 0; padding: 0; }
.region-bloc li { margin-bottom: .4rem; }
.etiquette-formation {
  display: inline-block; font-size: .74rem; letter-spacing: .03em; font-style: italic;
  color: var(--vert-profond); background: var(--or-clair); border-radius: 2px;
  padding: .1rem .45rem; margin-left: .4rem;
}

/* ---------- Bandeau CTA ---------- */
.bandeau {
  position: relative; background: var(--vert-profond); color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; overflow: hidden;
}
.bandeau::before {
  content: ""; position: absolute; right: -6rem; top: 50%; transform: translateY(-50%);
  width: 26rem; height: 26rem; opacity: .08; background: #fff;
  -webkit-mask: url("../img/croix-lazare.svg") center/contain no-repeat;
          mask: url("../img/croix-lazare.svg") center/contain no-repeat;
}
.bandeau h2 { color: #fff; }
.bandeau p { max-width: 40rem; margin-inline: auto; color: rgba(255,255,255,.94); }
.bandeau .bouton { margin-top: 1.4rem; }

/* ---------- Formulaire ---------- */
.contact-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
.champ { margin-bottom: 1.35rem; }
.champ label { display: block; font-weight: 600; margin-bottom: .4rem; }
.champ .aide { font-size: .9rem; color: var(--anthracite); font-weight: 400; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; color: var(--noir);
  background: var(--blanc); border: 1px solid #C9C3B4; border-radius: 3px;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 2px solid var(--vert-croix); outline-offset: 1px; border-color: var(--vert-croix);
}
.champ textarea { min-height: 10rem; resize: vertical; }
.consentement { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .98rem; }
.consentement input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--vert-profond); }
.note-form { font-size: .9rem; color: var(--anthracite); margin-top: 1rem; }
.lateral h2 { font-size: 1.5rem; }
.lateral .carte { margin-bottom: 1.4rem; }
.lateral .carte p:last-child { margin-bottom: 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: #CFCABE; padding: 3.5rem 0 2rem; font-size: .98rem; }
.pied a { color: #E8E3D6; }
.pied a:hover { color: var(--or-clair); }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.pied-devise { font-family: var(--f-titre); font-size: 1.3rem; color: var(--or-clair); font-style: italic; margin: .8rem 0 .3rem; }
.pied .marque-croix { color: var(--or); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .5rem; }
.pied-titre { font-family: var(--f-titre); font-size: 1.15rem; color: #fff; margin-bottom: .9rem; }
.pied-bas {
  border-top: 1px solid #3a3a3a; margin-top: 2.6rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #9A958A;
}

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .92rem; padding: 1rem 0 0; color: var(--anthracite); }
.ariane ol { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.ariane li + li::before { content: "›"; margin-right: .5rem; color: var(--or); }

/* ---------- Apparition douce ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .cartes, .oeuvres-grille, .regions-grille { grid-template-columns: 1fr 1fr; }
  .pointes { grid-template-columns: 1fr 1fr; }
  .contact-grille, .deux-colonnes { grid-template-columns: 1fr; }
  .deux-colonnes figure { max-width: 24rem; margin-inline: auto; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .nav-bascule { display: block; }
  .nav-principale {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivoire); border-bottom: 1px solid var(--gris-doux);
    display: none; padding: 1rem 1.4rem 1.4rem;
  }
  .nav-principale.ouverte { display: block; }
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-principale a { display: block; padding: .7rem 0; font-size: 1.15rem; white-space: normal; }
  .nav-principale .bouton { text-align: center; margin-top: .6rem; }
}
@media (max-width: 46rem) {
  body { font-size: 1.08rem; }
  .marque-nom { font-size: 1rem; }
  .cartes, .oeuvres-grille, .pointes, .balance, .chiffres, .regions-grille { grid-template-columns: 1fr; }
  .chiffres { gap: 1.6rem; }
  .frise::before { left: 1rem; }
  .frise li { grid-template-columns: 2rem 1fr; }
  .frise-date { grid-column: 2; text-align: left; }
  .frise-point { grid-column: 1; grid-row: 1 / span 2; }
  .frise-point::before { left: 1rem; transform: translateX(-50%); }
  .frise-texte { grid-column: 2; }
  .etapes li { grid-template-columns: 2.6rem 1fr; gap: .9rem; }
  .etapes li::before { width: 2.4rem; height: 2.4rem; font-size: 1.2rem; }
  .pied-grille { grid-template-columns: 1fr; }
}
