/* Mon petit atelier — site vitrine.
   Mise en page : un temple qu'on traverse. Bandeau nuit (le parvis), pavé mosaïque en lisière,
   salles claires couleur parchemin, la salle du Collège en bordeaux. Or réservé aux titres et aux repères. */
:root {
  --nuit: #1B2340;
  --nuit-2: #252F52;
  --bordeaux: #5B1F2E;
  --or: #C9A54C;
  --or-texte: #8A6A1F;
  --parchemin: #F7F3EE;
  --carte: #FFFFFF;
  --encre: #22192A;
  --gris: #625863;
  --trait: #E5DCD4;
  --clair: #C8CCDA;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gouttiere: max(20px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format('woff2'); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--parchemin); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--nuit); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nuit); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.enveloppe { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); }
.etroit { max-width: 760px; }

/* Pavé mosaïque : la lisière entre deux salles */
.pave { height: 16px; border-top: 2px solid var(--or); border-bottom: 2px solid var(--or);
  background: repeating-conic-gradient(var(--nuit) 0% 25%, var(--parchemin) 0% 50%) 0 0 / 16px 16px; }
.pave.bordeaux { background: repeating-conic-gradient(var(--bordeaux) 0% 25%, var(--parchemin) 0% 50%) 0 0 / 16px 16px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nuit); color: #fff; border-bottom: 1px solid rgba(201,165,76,.35); }
.entete .enveloppe { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.marque img { width: 34px; height: 34px; border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--clair); text-decoration: none; font-size: 16px; font-weight: 600; }
.nav a:hover { color: #fff; }
.bouton { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--or); color: var(--nuit); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--or); cursor: pointer; font-family: var(--sans); }
.bouton:hover { background: #d8b663; border-color: #d8b663; }
.bouton.fantome { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.bouton.fantome:hover { border-color: #fff; }
.entete .bouton { min-height: 44px; padding: 0 18px; font-size: 16px; }
@media (max-width: 900px) { .nav a:not(.bouton) { display: none; } }
@media (max-width: 420px) { .marque { font-size: 21px; } .entete .bouton { padding: 0 14px; } }

/* ---------- Héros (le parvis) ---------- */
.heros { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.heros::after { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(201,165,76,.18); box-shadow: 0 0 0 60px rgba(201,165,76,.035), 0 0 0 140px rgba(201,165,76,.025); pointer-events: none; }
.heros .enveloppe { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 64px 0; }
.heros .enveloppe > div:first-child { padding-bottom: 48px; }
.surtitre { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--or); }
.heros h1 { font-size: clamp(42px, 5.6vw, 68px); font-weight: 600; margin-top: 18px; letter-spacing: -.01em; }
.heros h1 em { font-style: italic; font-weight: 500; color: var(--or); }
.chapo { font-size: 19px; color: var(--clair); max-width: 34em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mention { margin-top: 22px; font-size: 16px; color: var(--clair); }
.mention b { color: #fff; }
.telephones { position: relative; height: 600px; align-self: end; }
.telephones img { position: absolute; width: 270px; bottom: -60px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.telephones .t1 { left: 4%; transform: rotate(-7deg); bottom: -90px; }
.telephones .t2 { left: 30%; z-index: 2; bottom: -20px; }
.telephones .t3 { left: 56%; transform: rotate(7deg); bottom: -90px; }
@media (max-width: 900px) {
  .heros .enveloppe { grid-template-columns: minmax(0, 1fr); padding-block: 44px 0; }
  .telephones { height: 420px; }
  .telephones img { width: 200px; }
  .telephones .t1 { left: calc(50% - 250px); } .telephones .t2 { left: calc(50% - 100px); } .telephones .t3 { left: calc(50% + 50px); }
}
@media (max-width: 480px) {
  .telephones { height: 360px; }
  .telephones img { width: 170px; }
  .telephones .t1 { left: calc(50% - 190px); } .telephones .t2 { left: calc(50% - 85px); } .telephones .t3 { left: calc(50% + 20px); }
}

/* ---------- Salles ---------- */
.salle { padding-block: 96px; }
.salle.nuit { background: var(--nuit); color: #fff; }
.salle.college { background: var(--bordeaux); color: #fff; }
.salle-tete { display: grid; gap: 16px; max-width: 760px; margin-bottom: 52px; }
.salle-tete h2 { font-size: clamp(34px, 4.6vw, 54px); }
.salle-tete p { font-size: 19px; color: var(--gris); }
.nuit .salle-tete p, .college .salle-tete p { color: var(--clair); }
.college .salle-tete p { color: #E6CFD4; }
.surtitre.sombre { color: var(--or-texte); }
@media (max-width: 600px) { .salle { padding-block: 64px; } .salle-tete { margin-bottom: 36px; } }

/* Le constat */
.constat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.maux { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.maux li { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--trait); }
.maux b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.maux span { color: var(--gris); font-size: 16px; }
.citation { background: var(--nuit); color: #fff; padding: 36px 32px; border-radius: 4px; position: relative; }
.citation p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.2; }
.citation small { display: block; margin-top: 20px; color: var(--or); font-size: 16px; }
.citation::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,165,76,.35); pointer-events: none; }
@media (max-width: 860px) { .constat { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .maux { grid-template-columns: minmax(0, 1fr); } }

/* Deux portes */
.portes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.porte { border-radius: 6px; padding: 36px 32px 32px; color: #fff; display: grid; gap: 14px; align-content: start; }
.porte.frere { background: var(--nuit); }
.porte.officier { background: var(--bordeaux); }
.porte .surtitre { color: var(--or); }
.porte h3 { font-size: 36px; }
.porte p { color: #E4E0E8; }
.porte ul { padding-left: 1.1em; display: grid; gap: 6px; color: #F1EDF2; }
.porte ul li::marker { color: var(--or); }
.rappel { margin-top: 24px; background: var(--or); color: var(--nuit); border-radius: 999px; padding: 14px 28px; text-align: center; font-weight: 600; }
@media (max-width: 760px) { .portes { grid-template-columns: minmax(0, 1fr); } .rappel { border-radius: 14px; } }

/* Le circuit (une vraie séquence) */
.circuit { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: etape; position: relative; }
.circuit li { position: relative; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; }
.circuit li::before { counter-increment: etape; content: counter(etape); width: 52px; height: 52px; border-radius: 50%; background: var(--or); color: var(--nuit);
  font-family: var(--serif); font-weight: 700; font-size: 28px; display: grid; place-items: center; position: relative; z-index: 1; }
.circuit li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 2px; background: rgba(201,165,76,.5); }
.circuit li:last-child::after { display: none; }
.circuit b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #fff; margin-top: 8px; }
.circuit span { color: var(--clair); font-size: 16px; }
@media (max-width: 860px) {
  .circuit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .circuit li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .circuit li::before { grid-row: span 2; }
  .circuit li::after { top: 52px; bottom: -28px; left: 25px; right: auto; width: 2px; height: auto; }
  .circuit b { margin-top: 6px; }
}

/* Galerie de téléphones */
.galerie { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.galerie figure { flex: 0 0 236px; scroll-snap-align: start; display: grid; gap: 14px; }
.galerie img { width: 236px; filter: drop-shadow(0 16px 22px rgba(27,35,64,.18)); }
.college .galerie img { filter: drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.galerie figcaption { display: grid; gap: 2px; }
.galerie figcaption b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.galerie figcaption span { font-size: 16px; color: var(--gris); }
.college .galerie figcaption span { color: #E6CFD4; }
.astuce { font-size: 16px; color: var(--gris); margin-top: 4px; }
.college .astuce { color: #E6CFD4; }

/* Côté Frère : texte + points */
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.points { list-style: none; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.points li::before { content: ""; width: 14px; height: 14px; margin-top: 8px; transform: rotate(45deg); background: var(--or); }
.points b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.points span { color: var(--gris); }
.college .points span, .nuit .points span { color: var(--clair); }
.college .points span { color: #E6CFD4; }
.capture-seule { display: flex; justify-content: center; gap: 20px; }
.capture-seule img { width: 250px; filter: drop-shadow(0 20px 30px rgba(27,35,64,.22)); }
.capture-seule img:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) { .deux { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .capture-seule img { width: 46%; } }

/* Offices */
.offices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; list-style: none; padding: 0; }
.offices li { border: 1px solid rgba(201,165,76,.55); color: #F3E9EB; border-radius: 999px; padding: 6px 14px; font-size: 16px; font-weight: 600; }

/* Ordinateur */
.ecran-pc { border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px rgba(27,35,64,.22); background: var(--carte); width: 100%; max-width: min(520px, 100%); justify-self: center; }

/* Sécurité */
.gardes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(201,165,76,.35); border: 2px solid rgba(201,165,76,.35); }
.gardes > div { background: var(--nuit); padding: 30px 28px; display: grid; gap: 8px; align-content: start; }
.gardes b { font-family: var(--serif); font-size: 25px; font-weight: 600; color: #fff; }
.gardes span { color: var(--clair); font-size: 16px; }
.gardes svg { width: 30px; height: 30px; stroke: var(--or); fill: none; stroke-width: 1.6; margin-bottom: 6px; }
@media (max-width: 860px) { .gardes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .gardes { grid-template-columns: minmax(0, 1fr); } }

/* Fiabilité */
.fiable { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.chiffre { font-family: var(--serif); font-weight: 700; font-size: clamp(72px, 11vw, 132px); line-height: .9; color: var(--nuit); font-variant-numeric: lining-nums; }
.chiffre small { display: block; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--or-texte); letter-spacing: .02em; margin-top: 14px; line-height: 1.3; }
@media (max-width: 860px) { .fiable { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Démarrage d'une loge */
.demarrage { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: pas; }
.demarrage li { background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--nuit); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.demarrage li::before { counter-increment: pas; content: "Étape " counter(pas); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--or-texte); }
.demarrage b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.demarrage span { color: var(--gris); font-size: 16px; }
@media (max-width: 960px) { .demarrage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .demarrage { grid-template-columns: minmax(0, 1fr); } }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.tarif { background: var(--carte); border: 1px solid var(--trait); padding: 36px 32px; display: grid; gap: 16px; align-content: start; }
.tarif.principal { border: 2px solid var(--nuit); position: relative; }
.tarif.principal::before { content: "Pour la loge"; position: absolute; top: -14px; left: 28px; background: var(--nuit); color: var(--or); font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; }
.tarif h3 { font-size: 30px; }
.prix { font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1; color: var(--nuit); font-variant-numeric: lining-nums; }
.prix small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--gris); }
.tarif ul { padding-left: 1.1em; display: grid; gap: 6px; }
.tarif ul li::marker { color: var(--or-texte); }
.exemple { background: var(--parchemin); border-left: 3px solid var(--or); padding: 12px 16px; font-size: 16px; }
.note { font-size: 16px; color: var(--gris); margin-top: 20px; }
@media (max-width: 820px) { .tarifs { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Questions */
.questions { display: grid; gap: 0; border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.25; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--sans); font-size: 30px; font-weight: 400; color: var(--or-texte); }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding: 0 0 24px; color: var(--gris); max-width: 62ch; }

/* Appel final */
.appel { text-align: left; }
.appel .grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.appel h2 { font-size: clamp(36px, 5vw, 58px); }
.appel p { color: var(--clair); font-size: 19px; margin-top: 18px; }
.contact { background: var(--nuit-2); border: 1px solid rgba(201,165,76,.4); padding: 30px 28px; display: grid; gap: 14px; }
.contact .adresse { font-family: var(--serif); font-size: clamp(21px, 5.6vw, 28px); font-weight: 600; color: #fff; overflow-wrap: anywhere; user-select: all; }
.contact ul { padding-left: 1.1em; color: var(--clair); font-size: 16px; display: grid; gap: 4px; }
.contact .copie { justify-self: start; }
.contact .etat { font-size: 16px; color: var(--or); min-height: 1.4em; }
@media (max-width: 860px) { .appel .grille { grid-template-columns: minmax(0, 1fr); } }

/* Pied */
.pied { background: #141A31; color: var(--clair); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.pied .enveloppe { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.pied a { color: var(--clair); }
.pied .marque { font-size: 20px; margin-right: auto; }
.devise-site { display: block; font-size: 16px; font-style: italic; color: var(--or); letter-spacing: .02em; line-height: 1.3; }
.heros2 .devise-site { font-size: 20px; margin-bottom: 10px; }
.pied .confiance { flex-basis: 100%; order: 9; margin: 6px 0 0; font-size: 16px; color: #A9AFC4; line-height: 1.5; }

/* Pages juridiques */
.page-texte { padding-block: 64px 96px; }
.page-texte h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 28px; }
.page-texte h2 { font-size: 28px; margin: 36px 0 10px; }
.page-texte p, .page-texte li { color: var(--encre); max-width: 66ch; }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.a-completer { background: #FBEBD2; color: #6E4205; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Onglets (version à pages) ---------- */
.onglets { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.onglets a { color: var(--clair); text-decoration: none; font-size: 16px; font-weight: 600; padding: 7px 9px; border-radius: 6px; white-space: nowrap; }
.onglets a:hover { color: #fff; background: rgba(255,255,255,.06); }
.onglets a[aria-current="page"] { color: var(--nuit); background: var(--or); }
.entete .appel-tete { margin-left: 10px; }
.onglets-mobile { display: none; }
/* 0.83 : le nom ne se fait plus écraser par les onglets */
.entete .marque { flex-shrink: 0; white-space: nowrap; }
/* 0.83 (Égrégore : 8 onglets) : onglets resserrés sur les écrans moyens, barre mobile plus tôt */
@media (max-width: 1440px) { .onglets a { font-size: 15px; padding: 7px 7px; } .entete .enveloppe { gap: 14px; } }
@media (max-width: 1240px) {
  .onglets { display: none; }
  .entete .appel-tete { margin-left: auto; }
  .onglets-mobile { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--nuit-2);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .onglets-mobile::-webkit-scrollbar { display: none; }
  .onglets-mobile a { flex: 0 0 auto; color: var(--clair); text-decoration: none; font-size: 16px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
  .onglets-mobile a[aria-current="page"] { color: var(--nuit); background: var(--or); border-color: var(--or); }
}
@media (max-width: 420px) { .entete .appel-tete { padding: 0 12px; font-size: 16px; } }

/* Bandeau de titre des pages intérieures */
.bandeau { background: var(--nuit); color: #fff; }
.bandeau.college-b { background: var(--bordeaux); }
.bandeau .enveloppe { padding-block: 64px 56px; display: grid; gap: 16px; }
.bandeau h1 { font-size: clamp(40px, 5.4vw, 64px); max-width: 16em; }
.bandeau p { font-size: 19px; color: var(--clair); max-width: 40em; }
.bandeau.college-b p { color: #E6CFD4; }

/* Portes vers les pages (accueil) */
.vers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vers a { display: grid; gap: 8px; align-content: start; background: var(--carte); border: 1px solid var(--trait); padding: 26px 24px; text-decoration: none; color: var(--encre); transition: border-color .2s, transform .2s; }
.vers a:hover { border-color: var(--or); transform: translateY(-2px); }
.vers b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.vers span { color: var(--gris); font-size: 16px; }
.vers em { font-style: normal; color: var(--or-texte); font-weight: 700; font-size: 16px; margin-top: 6px; }
@media (max-width: 900px) { .vers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vers { grid-template-columns: minmax(0, 1fr); } }

/* Boutique des carnets */
.carnets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.carnet { display: grid; gap: 14px; align-content: start; }
.carnet .couv { box-shadow: 0 18px 36px rgba(27,35,64,.28), 0 2px 0 rgba(0,0,0,.2); border-radius: 2px 6px 6px 2px; width: 100%; max-width: 100%; aspect-ratio: 614 / 935; object-fit: cover; }
.carnet h3 { font-size: 30px; margin-top: 8px; }
.carnet .degre { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--or-texte); }
.carnet p { color: var(--gris); font-size: 16px; }
.carnet .fiche { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.carnet .fiche li { background: var(--carte); border: 1px solid var(--trait); border-radius: 999px; padding: 3px 11px; font-size: 16px; }
.editions { display: grid; gap: 8px; margin-top: 4px; }
.edition { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--carte); border: 1px solid var(--trait); padding: 12px 14px; }
.edition b { font-size: 16px; }
.edition .px { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--nuit); font-variant-numeric: lining-nums; }
.bouton.petit { min-height: 44px; padding: 0 16px; font-size: 16px; }
.bouton.bientot, .bouton[aria-disabled="true"] { background: transparent; color: var(--gris); border: 1px dashed var(--gris); cursor: default; }
.bouton.sombre { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.bouton.sombre:hover { background: var(--nuit-2); border-color: var(--nuit-2); }
@media (max-width: 900px) { .carnets { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }

/* Bibliothèque */
.degres { display: grid; gap: 56px; }
.degre-bloc h2 { font-size: clamp(30px, 4vw, 40px); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.degre-bloc h2 small { font-family: var(--sans); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--or-texte); font-weight: 700; }
.degre-bloc > p { color: var(--gris); margin-top: 8px; max-width: 60ch; }
.livres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.livre { background: var(--carte); border: 1px solid var(--trait); padding: 22px 22px 20px; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 22px; align-items: start; }
/* 0.86.12 : couverture illustrée (SVG dessiné par fabriquer-bibliotheque.py, le même que dans l'application), un vrai petit livre */
.livre .couv { width: 124px; aspect-ratio: 2 / 3; border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 0 1px 1px rgba(34, 25, 42, .18), 0 8px 18px -6px rgba(34, 25, 42, .45); }
.livre .couv svg { display: block; width: 100%; height: 100%; }
.livre-corps { display: grid; gap: 6px; min-width: 0; }
.mention-couv { margin-top: -28px; color: var(--gris); font-size: 16px; font-style: italic; }
.livre b { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.livre .auteur { font-size: 16px; color: var(--or-texte); font-weight: 600; }
.livre p { color: var(--gris); font-size: 16px; }
.livre .lien { margin-top: 8px; justify-self: start; }
.mention-aff { margin-top: 48px; background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--or); padding: 18px 22px; font-size: 16px; color: var(--gris); display: grid; gap: 6px; }
@media (max-width: 760px) { .livres { grid-template-columns: minmax(0, 1fr); } }
/* 0.87.2 : les décors (tabliers, gants, bijoux) et leurs visuels dessinés */
.mention-couv.mention-decors { margin-top: 14px; }
.decors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.decor { background: var(--carte); border: 1px solid var(--trait); display: grid; grid-template-rows: auto 1fr; }
.decor .visuel { aspect-ratio: 4 / 3; background: #1B2340; display: flex; align-items: center; justify-content: center; }
.decor .visuel img { display: block; width: 100%; height: 100%; }
.decor .sans-visuel { color: var(--or, #C9A54C); font-size: 54px; }
.decor .livre-corps { padding: 18px 20px 20px; grid-template-rows: auto auto auto 1fr auto; }
.decor b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.decor .auteur { font-size: 16px; color: var(--or-texte); font-weight: 600; }
.decor p { color: var(--gris); font-size: 16px; }
.decor .lien { margin-top: 8px; justify-self: start; }
.degre-decor { font-size: 16px; letter-spacing: .04em; color: var(--gris); font-weight: 700; }
@media (max-width: 960px) { .decors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .decors { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .livre { grid-template-columns: 104px minmax(0, 1fr); gap: 6px 16px; padding: 18px 16px; } .livre .couv { width: 104px; } }

/* Installer */
.appareils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.appareil { background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--nuit); padding: 28px 26px; display: grid; gap: 14px; align-content: start; }
.appareil h3 { font-size: 30px; }
.appareil ol { padding-left: 1.3em; display: grid; gap: 10px; }
.appareil ol li::marker { font-family: var(--serif); font-weight: 700; color: var(--or-texte); }
.appareil .apres { font-size: 16px; color: var(--gris); border-top: 1px solid var(--trait); padding-top: 12px; }
@media (max-width: 900px) { .appareils { grid-template-columns: minmax(0, 1fr); } }

/* Page de pub (aperçu de la page du carnet) */
.encart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--nuit); color: #fff; padding: 40px; }
.encart h2 { font-size: clamp(30px, 4vw, 44px); }
.encart p { color: var(--clair); margin-top: 14px; }
.encart .actions { margin-top: 24px; }
@media (max-width: 860px) { .encart { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; } }

/* Onglets d'ordinateur : la disposition du premier site (liens simples, l'onglet ouvert souligné d'or) */
.onglets { gap: 20px; }
.onglets a { padding: 6px 0; border-radius: 0; border-bottom: 2px solid transparent; }
.onglets a:hover { background: none; color: #fff; }
.onglets a[aria-current="page"] { background: none; color: #fff; border-bottom-color: var(--or); }
.entete .appel-tete { margin-left: 22px; }

/* Grille des tarifs */
.table-defile { overflow-x: auto; }
.grille { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grille th { text-align: left; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--or-texte); padding: 8px 10px; border-bottom: 2px solid var(--nuit); }
.grille td { padding: 9px 10px; border-bottom: 1px solid var(--trait); font-size: 17px; }
.grille td:first-child { font-weight: 700; }
.grille tbody tr:nth-child(4) td { background: var(--parchemin); }

/* 0.68.0 — En-tête : « Connexion » et « Créer mon compte » côte à côte (le nom à côté du logo disparaît sur un petit téléphone) */
.entete .appel-tete { display: flex; gap: 8px; align-items: center; }
.entete .appel-tete .bouton[aria-current="page"] { box-shadow: 0 0 0 2px #fff inset; }
@media (max-width: 1080px) { .entete .appel-tete { margin-left: auto; } }
@media (max-width: 560px) { .marque .nom { display: none; } .entete .appel-tete .bouton { padding: 0 12px; font-size: 16px; min-height: 44px; } }
.tarif.principal.individuel::before { content: "Le plus complet"; }
/* 0.68.0 — les registres d'officiers (page Carnets) : quatre par ligne sur un grand écran */
.carnets.registres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.carnets.registres .carnet .couv { aspect-ratio: 480 / 640; }   /* 0.68.3 : registres en relié 8,25 x 11 po */
.carnets.registres .carnet h3 { font-size: 24px; }
@media (max-width: 1080px) { .carnets.registres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .carnets, .carnets.registres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: none; } }
@media (max-width: 520px) { .carnets, .carnets.registres { grid-template-columns: minmax(0, 1fr); } }
/* 0.92.2 (mise en page des packs, visuels v2 : éventail + mise en scène) :
   - une colonne sur téléphone (carte limitée à 460 px), trois colonnes dès 720 px : plus de Pack Frères seul sur sa ligne à 768 px ;
   - en colonnes, les lignes des 3 cartes sont alignées (sous-grille) : les deux images, les légendes, « Pour le Collège / les Frères »,
     le titre, le texte et l'encadré du prix tombent à la même hauteur d'une carte à l'autre, même si la légende du Pack Frères
     est sous l'éventail et celles des Packs Loge sous la mise en scène. */
.carnets.packs { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 460px; margin: 0 auto; }
@media (min-width: 720px) { .carnets.packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: none; } }
@media (min-width: 901px) { .carnets.packs { gap: 32px; } }
/* 0.98.0 (Samy, 16/11 : « les images de pack sont décorrélées de leur texte, il y a des espaces ») : la sous-grille alignait les
   lignes d'une carte à l'autre et laissait des cases vides (légende placée à deux endroits différents). Chaque pack est maintenant
   UNE carte : ses deux images, sa légende juste dessous, puis son texte ; l'encadré du prix en bas de la carte. */
.carnets.packs .carnet { display: flex; flex-direction: column; gap: 12px; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 8px; padding: 14px 14px 16px; box-shadow: 0 10px 28px rgba(27,35,64,.10); }
.carnets.packs .carnet > .pack-visuel { box-shadow: none !important; border-radius: 4px; }
.carnets.packs .carnet > .pack-visuel + .pack-visuel { margin-top: -4px; }
.carnets.packs .carnet > .legende-pack { margin: 0 !important; }
.carnets.packs .carnet > .degre { margin-top: 4px; }
.carnets.packs .carnet > h3 { margin-top: 0; }
.carnets.packs .carnet > .editions { margin-top: auto; }
.carnets.packs .carnet .edition { background: #FBF7F1; }

/* 0.68.0 — site public : cibles d'au moins 44 px au doigt, aucun texte sous 16 px (même règle que l'application) */
.marque { min-height: 44px; }
.entete .bouton { min-height: 44px; }
.onglets-mobile a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.pied { font-size: 16px; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; }
.pied .confiance { font-size: 16px; }

/* 0.68.1 — « Feuilleter un extrait » (page Carnets) */
.feuilleter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 10px 0 2px; padding: 0 18px;
  border: 2px solid var(--nuit); border-radius: 999px; background: transparent; color: var(--nuit); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.feuilleter:hover { background: var(--nuit); color: #fff; }
.feuilleter:focus-visible, .apercu button:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
dialog.apercu { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 10px;
  background: var(--parchemin); color: var(--encre); box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: auto; }
dialog.apercu::backdrop { background: rgba(14,18,36,.78); }
.apercu-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 18px; }
.apercu-tete h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; }
.apercu-fermer { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--encre); font-size: 22px; cursor: pointer; }
.apercu-fermer:hover { background: rgba(0,0,0,.06); }
.apercu-page { padding: 0 12px; text-align: center; }
.apercu-page img { display: block; margin: 0 auto; max-width: 100%; height: auto; max-height: calc(100dvh - 215px); border: 1px solid var(--trait);
  box-shadow: 0 4px 18px rgba(0,0,0,.15); background: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.apercu-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 4px; }
.apercu-pied button { min-height: 44px; padding: 0 16px; border: 2px solid var(--nuit); border-radius: 999px; background: var(--nuit); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.apercu-pied button:disabled { opacity: .35; cursor: default; }
#apercu-compte { font-size: 16px; color: var(--gris); font-variant-numeric: tabular-nums; }
.apercu-note { margin: 4px 16px 14px; font-size: 16px; color: var(--gris); text-align: center; }
@media (max-width: 560px) { .apercu-tete h2 { font-size: 22px; } .apercu-pied button { padding: 0 12px; }  .apercu-page img { max-height: calc(100dvh - 230px); } }   /* 0.92.2 (mise en page) : à 375 x 667, la note « existe en broché et en relié » (2 lignes) tient sans faire défiler la fenêtre */

/* 0.91.0 : la bibliothèque, à la suite des carnets sur la même page (son titre est un h2 qui a l’air d’un h1) */
.bandeau h2.h1 { font-size: clamp(36px, 4.6vw, 56px); max-width: 16em; line-height: 1.08; margin: 0 0 18px; }

/* =====================================================================================================================
   0.91.1 — LE SITE PARLE LA LANGUE DE L'APPLICATION 0.91 (refonte de la navigation) : cartes blanches arrondies, tuiles bordeaux,
   pierre « Retour » gravée en haut à gauche des pages, boutons d'au moins 48 px, bleu nuit / or / bordeaux, Cormorant + Source Sans.
   Ces règles viennent APRÈS les anciennes et les remplacent (rien n'est retiré plus haut : les pages anciennes restent justes).
   ===================================================================================================================== */
:root { --rayon: 18px; --rayon-btn: 14px; --ombre-carte: 0 1px 2px rgba(34,25,42,.06), 0 10px 26px -14px rgba(34,25,42,.28); --bordeaux-2: #6E2638; }

/* Boutons : rectangles arrondis comme dans l'appli (« Je serai présent », « + Publier »), 48 px au moins partout */
.bouton, .bouton.petit, .entete .bouton, .feuilleter, .apercu-pied button { min-height: 48px; border-radius: var(--rayon-btn); }
.bouton.petit { padding: 0 18px; }
.bouton.bordeaux { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.bouton.bordeaux:hover { background: var(--bordeaux-2); border-color: var(--bordeaux-2); }
.bouton.clair { background: #fff; color: var(--nuit); border-color: var(--trait); }
.bouton.clair:hover { border-color: var(--nuit); }
.bouton.grand { min-height: 56px; font-size: 18px; padding: 0 26px; }
@media (max-width: 560px) { .entete .appel-tete .bouton { min-height: 48px; } }
.marque, .pied a, .onglets-mobile a { min-height: 48px; }
.onglets-mobile a { border-radius: 12px; }
.apercu-fermer { width: 48px; height: 48px; }

/* Cartes : blanches, arrondies, ombre douce (comme « À faire maintenant » et « Tout le plateau » dans l'appli) */
.vers a, .appareil, .tarif, .demarrage li, .livre, .decor, .edition, .mention-aff, .ecran-pc, .porte, .citation, .encart:not([style*="background:none"]) { border-radius: var(--rayon); }
.vers a, .appareil, .tarif, .demarrage li, .livre, .decor { box-shadow: var(--ombre-carte); }
.decor { overflow: hidden; }
.appareil { border-top: 1px solid var(--trait); }
.demarrage li { border-top: 1px solid var(--trait); }
.vers a { border-radius: var(--rayon); padding: 24px 22px 22px; }
.vers a:hover { transform: none; border-color: var(--or); box-shadow: 0 0 0 1px var(--or), var(--ombre-carte); }
.tarif.principal::before { border-radius: 8px; }
.gardes { border-radius: var(--rayon); overflow: hidden; }
.questions details { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0 20px; margin-bottom: 12px; box-shadow: var(--ombre-carte); }
.questions { border-top: 0; }
.questions summary { min-height: 56px; }

/* La pierre « Retour » gravée (le même dessin que dans l'appli), en haut à gauche des pages intérieures : ramène à l'accueil */
.pierre-retour { display: inline-block; line-height: 0; border-radius: 6px; text-decoration: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.28)) drop-shadow(0 8px 14px rgba(0,0,0,.25)); transition: transform .08s, filter .08s; }
.pierre-retour svg { width: 118px; height: 56px; display: block; }
.pierre-retour:hover { filter: drop-shadow(0 3px 0 rgba(0,0,0,.28)) drop-shadow(0 10px 18px rgba(0,0,0,.32)); }
.pierre-retour:active { transform: translateY(2px); filter: drop-shadow(0 1px 0 rgba(0,0,0,.28)) drop-shadow(0 4px 8px rgba(0,0,0,.22)); }
.pierre-retour:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; }
.bandeau .enveloppe { padding-block: 28px 56px; }
.bandeau .pierre-retour { justify-self: start; margin-bottom: 18px; }
@media (max-width: 600px) { .bandeau .enveloppe { padding-block: 20px 44px; } .bandeau .pierre-retour { margin-bottom: 8px; } }

/* Le cadre d'un téléphone et celui d'un ordinateur, dessinés (les captures sont celles de la démonstration 0.91) */
.tel { position: relative; display: block; background: #0E1222; border-radius: 40px; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 30px 50px -18px rgba(0,0,0,.55); }
.tel img { border-radius: 30px; width: 100%; height: auto; }
.tel::before { content: ""; position: absolute; top: 18px; left: 50%; width: 26%; height: 18px; margin-left: -13%; background: #0E1222; border-radius: 0 0 12px 12px; z-index: 1; }
.portable { position: relative; display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -22px rgba(0,0,0,.55); }
.portable::before { content: ""; display: block; height: 30px; background: #ECE6DE radial-gradient(circle at 18px 15px, #E86A5E 5px, transparent 6px), radial-gradient(circle at 38px 15px, #E9B949 5px, transparent 6px), radial-gradient(circle at 58px 15px, #6BBF5A 5px, transparent 6px); background-color: #ECE6DE; }
.portable img { width: 100%; height: auto; }

/* ---------- Accueil 0.91.1 ---------- */
.heros2 { background: var(--nuit); color: #fff; position: relative; overflow: hidden; }
.heros2 .enveloppe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.heros2 h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 600; margin-top: 16px; letter-spacing: -.01em; }
.heros2 h1 em { font-style: italic; font-weight: 500; color: var(--or); }
.heros2 .chapo { font-size: 20px; }
.heros2 .actions .bouton { min-height: 56px; font-size: 18px; padding: 0 26px; }
.vitrine { position: relative; padding: 0 0 40px 0; }
.vitrine .portable { width: 100%; }
.vitrine .tel { position: absolute; width: 34%; max-width: 230px; left: -6%; bottom: -10px; }
.vitrine .legende { position: absolute; right: 0; bottom: -2px; color: var(--clair); font-size: 16px; }
@media (max-width: 960px) {
  .heros2 .enveloppe { grid-template-columns: minmax(0, 1fr); padding-block: 40px 56px; gap: 36px; }
  .vitrine { padding: 0 0 56px 14%; }
  .vitrine .tel { left: 0; width: 36%; }
}

.trois-pas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: pas; }
.trois-pas li { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-carte); padding: 26px 24px 24px; display: grid; gap: 12px; align-content: start; }
.trois-pas li::before { counter-increment: pas; content: counter(pas); width: 52px; height: 52px; border-radius: 50%; background: var(--or); color: var(--nuit); font-family: var(--serif); font-weight: 700; font-size: 30px; display: grid; place-items: center; }
.trois-pas h3 { font-size: 32px; }
.trois-pas p { color: var(--gris); }
.trois-pas .actions { margin-top: 6px; display: grid; gap: 10px; }
.trois-pas .actions .bouton { width: 100%; }
.trois-pas .fleche { display: none; }
@media (max-width: 900px) { .trois-pas { grid-template-columns: minmax(0, 1fr); } }

.en-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.en-images figure { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-carte); padding: 18px 18px 20px; display: grid; gap: 14px; align-content: start; }
.en-images .tel { width: 100%; max-width: 250px; margin: 0 auto; padding: 8px; border-radius: 34px; }
.en-images .tel img { border-radius: 26px; }
.en-images .tel::before { top: 14px; height: 14px; }
.en-images figcaption { display: grid; gap: 4px; }
.en-images figcaption b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; }
.en-images figcaption span { color: var(--gris); font-size: 16px; }
@media (max-width: 1080px) { .en-images { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .en-images { grid-template-columns: minmax(0, 1fr); } .en-images .tel { max-width: 240px; } }

.ordinateur { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 44px; align-items: center; margin-top: 56px; }
@media (max-width: 900px) { .ordinateur { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Tuiles (comme « Mes grandes actions » d'un plateau) */
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tuiles a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-content: start; min-height: 112px; padding: 20px 20px; border-radius: var(--rayon); background: var(--bordeaux); color: #fff; text-decoration: none; box-shadow: var(--ombre-carte); }
.tuiles a.claire { background: #fff; color: var(--bordeaux); border: 2px solid var(--bordeaux); }
.tuiles a.nuit { background: var(--nuit); }
.tuiles a:hover { filter: brightness(1.08); }
.tuiles svg { width: 32px; height: 32px; stroke: var(--or); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; grid-row: span 2; }
.tuiles a.claire svg { stroke: var(--or-texte); }
.tuiles b { font-size: 21px; font-weight: 700; line-height: 1.2; }
.tuiles span { font-size: 16px; opacity: .9; }
@media (max-width: 900px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tuiles { grid-template-columns: minmax(0, 1fr); } }

.confiance-bande { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.confiance-bande div { border: 1px solid rgba(201,165,76,.35); border-radius: var(--rayon); padding: 22px 20px; display: grid; gap: 6px; }
.confiance-bande b { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; }
.confiance-bande span { color: var(--clair); font-size: 16px; }
@media (max-width: 900px) { .confiance-bande { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .confiance-bande { grid-template-columns: minmax(0, 1fr); } }

/* Galeries des pages intérieures : chaque écran dans son cadre de téléphone */
.galerie figure { flex: 0 0 250px; }
.galerie .tel { width: 250px; padding: 8px; border-radius: 34px; }
.galerie .tel img { width: 100%; border-radius: 26px; filter: none; }
.galerie .tel::before { top: 14px; height: 14px; }
.capture-seule .tel { width: 260px; padding: 8px; border-radius: 34px; }
.capture-seule .tel img { width: 100%; border-radius: 26px; filter: none; }
.capture-seule .tel:nth-child(2) { margin-top: 48px; }
.capture-seule .tel::before { top: 14px; height: 14px; }
@media (max-width: 560px) { .capture-seule .tel { width: 47%; padding: 5px; border-radius: 24px; } .capture-seule .tel img { border-radius: 19px; } .capture-seule .tel::before { display: none; } }
.ecran-pc.portable { max-width: 640px; }
.fil-pierre { padding-top: 22px; }
.fil-pierre + .salle, .fil-pierre + section { padding-top: 28px !important; }
.fil-pierre + .page-texte { padding-top: 28px; }
/* Sommaire d'une page (Carnets et bibliothèque) : des boutons-cartes, comme les rubriques d'un plateau */
.sommaire-page { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sommaire-page a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--rayon-btn); border: 1px solid rgba(201,165,76,.55); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; background: rgba(255,255,255,.04); }
.sommaire-page a:hover { background: rgba(201,165,76,.16); border-color: var(--or); }
/* 0.91.1 : la légende de la vitrine ne passe jamais sous le téléphone ; l'encoche du téléphone plus discrète */
@media (max-width: 960px) { .vitrine .legende { left: 42%; text-align: right; line-height: 1.35; } .vitrine { padding-bottom: 64px; } }
.tel::before { width: 20%; margin-left: -10%; height: 12px; }
.en-images .tel::before, .galerie .tel::before, .capture-seule .tel::before { height: 10px; top: 10px; }
/* 0.91.1 : entre 1241 et 1440 px, onglets resserrés (le bouton « Se connecter » ne touche plus le bord) ; une ancre ne passe jamais sous l'en-tête */
@media (min-width: 1241px) and (max-width: 1440px) { .onglets { gap: 14px; } .entete .appel-tete { margin-left: 14px; } .entete .enveloppe { gap: 12px; } }
[id] { scroll-margin-top: 80px; }

/* 0.95.0 — simulateur « Équiper ma loge » (carnets.html) */
.simulateur-loge { margin-top: 32px; padding: 24px; border: 1px solid rgba(201,165,76,.55); border-radius: 6px; background: rgba(255,255,255,.6); }
.simulateur-loge h3 { margin-top: 0; }
.sim-intro, .sim-note { font-size: 17px; color: var(--gris); }
.sim-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sim-bloc { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: 12px 16px; margin: 0; }
.sim-bloc legend { font-weight: 700; padding: 0 6px; }
.sim-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; font-size: 18px; }
.sim-ligne input { width: 5.5em; min-height: 48px; box-sizing: border-box; font-size: 20px; padding: 6px 8px; text-align: right; }
.sim-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 12px; }
.sim-case { display: flex; align-items: center; gap: 8px; font-size: 17px; min-height: 48px; }
.sim-case input { width: 22px; height: 22px; }
.sim-boutons { margin: 8px 0; }
.sim-resultat { border-top: 2px solid var(--or); margin-top: 18px; padding-top: 14px; }
.sim-total b { font-size: 40px; }
.sim-total span { font-size: 18px; color: var(--gris); margin-left: 8px; }
.sim-detail { margin: 10px 0 0; padding-left: 22px; font-size: 18px; }
.sim-suite { margin: 16px 0; font-size: 18px; }
.sim-suite summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.sim-annee { font-weight: 700; }

/* 0.97 — « Une loge prête en 5 minutes » (accueil) : les 4 étapes, sur fond clair */
.demarrage-etapes b { color: var(--nuit); }
.demarrage-etapes span { color: var(--gris); }

/* 0.98.0 : sur un téléphone étroit (375 px et moins), « Première connexion » et « Se connecter » dépassaient de 13 px (la page glissait
   de côté) : l'appel de l'en-tête perd sa marge intérieure et les boutons se serrent un peu (le texte garde 16 px, les boutons 48 px). */
@media (max-width: 400px) {
  .entete .appel-tete { padding: 0; gap: 6px; margin-left: auto; }
  .entete .appel-tete .bouton { padding: 0 10px; }
}
@media (max-width: 340px) {   /* très petits téléphones (320 px) : les deux boutons passent sous le logo plutôt que de déborder */
  .entete .enveloppe { flex-wrap: wrap; row-gap: 6px; }
  .entete .appel-tete { margin-left: 0; }
}
fieldset.sim-bloc { min-width: 0; max-width: 100%; }   /* 0.98.0 : un fieldset ne rétrécit pas sous son contenu sans cela (5 px de trop à 320 px) */
@media (max-width: 400px) { .simulateur-loge { padding: 16px 12px; } .sim-bloc { padding: 10px 10px; } }   /* 0.98.0 : petits téléphones */
