/* Les 3 liens Instagram (ordre d'Ishaq, 14 nov. 2026) : base commune tirée du catalogue « Écrin » de Délice.
   Chaque marque a son thème (theme-delice.css, theme-ecole.css, theme-florea.css) qui redéfinit couleurs,
   polices, motif et forme des cadres. Les pages sont générées par atelier/liens_marques.py. */

:root {
  --or-rgb: 165, 130, 63;
  --or-fonce-rgb: 125, 95, 39;
  --or-clair-rgb: 226, 201, 143;
  --or-moyen-rgb: 201, 164, 90;
  --ivoire-rgb: 255, 250, 242;
  --creme-rgb: 248, 243, 234;
  --ombre-rgb: 70, 48, 18;
  --nuit-1: #2c211a;
  --nuit-2: #140e0b;
  --creme: #f8f3ea;
  --creme-2: #f1e8d9;
  --ivoire: #fffaf2;
  --encre: #2b211b;
  --encre-douce: #6b5d50;
  --or: #a5823f;
  --or-fonce: #7d5f27;
  --or-clair: #e2c98f;
  --cafe: #1f1712;
  --cafe-2: #2c211a;
  --dore: linear-gradient(100deg, #7d5f27 0%, #c9a45a 28%, #f0dca6 46%, #b48a3e 64%, #8a6a2f 100%);
  --f-titre: "Italiana", "Cormorant Garamond", serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-caps: "Cinzel", "Cormorant Garamond", serif;
  --f-script: "Parisienne", cursive;
  --f-texte: "Jost", system-ui, sans-serif;
  --f-ar: "Aref Ruqaa", "Amiri", serif;
  --f-ar-texte: "Amiri", serif;
  --marge: clamp(18px, 5vw, 64px);
  --max: 1240px;
  --arc: 999px 999px 0 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* motif khatam (étoile à huit branches des zelliges), or très pâle */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23a5823f' stroke-width='.8' opacity='.16'%3E%3Crect x='24' y='24' width='24' height='24'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='4'/%3E%3Cpath d='M0 36h12M60 36h12M36 0v12M36 60v12'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font: 400 17px/1.6 var(--f-texte); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dore-texte { background: var(--dore); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none;
  font: 500 14px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--or { background: var(--dore); background-size: 200% 100%; color: #fffaf0; box-shadow: 0 10px 28px -12px rgba(var(--or-fonce-rgb), .65), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 1px rgba(80, 56, 18, .35); }
.btn--or:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(var(--or-fonce-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ligne { border: 1px solid var(--or); color: var(--or-fonce); background: rgba(var(--ivoire-rgb), .6); backdrop-filter: blur(6px); }
.btn--ligne:hover { background: var(--ivoire); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ en-tête */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--marge);
  transition: background .4s, box-shadow .4s, transform .4s var(--ease);
}
.entete.est-collee { background: rgba(var(--creme-rgb), .9); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(var(--or-rgb), .25); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--f-titre); letter-spacing: .02em; }
.marque img { height: 40px; width: auto; }
.entete__ig { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(var(--or-rgb), .5); border-radius: 50%; color: var(--or-fonce); transition: background .3s, transform .3s var(--ease); }
.entete__ig:hover { background: var(--ivoire); transform: rotate(-8deg); }
.entete__ig svg { width: 19px; height: 19px; }

/* chapitres : barre collante qui suit la lecture */
.chapitres {
  position: sticky; top: 64px; z-index: 30; display: flex; justify-content: safe center; gap: 4px;
  padding: 10px var(--marge); background: rgba(var(--creme-rgb), .97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--or-rgb), .22); overflow-x: auto; scrollbar-width: none;
}
.chapitres::-webkit-scrollbar { display: none; }
.chapitres a {
  position: relative; flex: none; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font: 500 12px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce);
  transition: color .3s, background .3s;
}
.chapitres a span { font: 400 15px/1 var(--f-ar-texte); letter-spacing: 0; margin-inline-start: 6px; text-transform: none; }
.chapitres a.est-active { color: #fffaf0; background: var(--dore); background-size: 200% 100%; }
@media (max-width: 520px) { .chapitres a { padding: 9px 13px; letter-spacing: .12em; } .chapitres a span { display: none; } }

/* ------------------------------------------------------------------ héros */
.heros {
  position: relative; min-height: 100svh; padding: 92px var(--marge) 56px;
  display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate;
}
.heros__fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: respire 18s ease-in-out infinite alternate; }
.heros::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 40%, rgba(var(--ivoire-rgb), 0) 40%, rgba(var(--creme-rgb), .85) 100%); }
.heros__contenu { display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 1080px; }
.surtitre { font: 500 11px/1.4 var(--f-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--or-fonce); display: flex; align-items: center; gap: 14px; }
.surtitre::before, .surtitre::after { content: ""; width: 34px; height: 1px; background: var(--or); opacity: .7; }

/* l'arche du héros : double filet d'or dessiné au chargement */
.arche { position: relative; width: min(62vw, 360px); aspect-ratio: 4 / 5; margin-top: 14px; }
@media (max-width: 520px) { .surtitre { letter-spacing: .22em; font-size: 10px; gap: 10px; } .surtitre::before, .surtitre::after { width: 18px; } }
.arche__photo { position: absolute; inset: 12px; border-radius: var(--arc); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60, 40, 15, .55); }
.arche__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: entre-photo 1.8s var(--ease) .2s forwards; }
.arche::before, .arche::after { content: ""; position: absolute; border-radius: var(--arc); border: 1px solid var(--or); border-bottom: 0; pointer-events: none; clip-path: inset(100% 0 0 0); animation: devoile 2s var(--ease) .2s forwards; }
.arche::before { inset: 0; border-color: rgba(var(--or-rgb), .85); }
.arche::after { inset: 5px; border-color: rgba(var(--or-moyen-rgb), .6); animation-delay: .55s; }
.secours .arche::before, .secours .arche::after { clip-path: none; }
.arche__etoile { position: absolute; left: 50%; top: -18px; width: 36px; height: 36px; translate: -50% 0; color: var(--or); animation: tourne 30s linear infinite; }

.heros h1 { margin: 6px 0 0; font: 400 clamp(44px, 12.4vw, 128px)/.95 var(--f-titre); letter-spacing: 0; white-space: nowrap; }
.heros { gap: 0; } .heros__contenu { gap: 14px; }
.entree > h1 { animation: monte 1s var(--ease) .7s forwards, brille 6s ease-in-out 1.7s infinite alternate; }
.heros__ar { margin: 0; font-size: clamp(30px, 8.4vw, 54px); line-height: 1.3; color: var(--or-fonce); }
.heros__ligne { margin: 0; max-width: 34ch; font: 400 italic clamp(19px, 4.6vw, 24px)/1.45 var(--f-serif); color: var(--encre-douce); }
.heros__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.heros__defile { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; width: 1px; height: 46px; background: linear-gradient(var(--or), transparent); animation: goutte 2.2s ease-in-out infinite; }

.entree > * { opacity: 0; translate: 0 18px; animation: monte 1s var(--ease) forwards; }
.entree > :nth-child(1) { animation-delay: .15s; } .entree > :nth-child(2) { animation-delay: .3s; }
.entree > :nth-child(3) { animation-delay: .7s; } .entree > :nth-child(4) { animation-delay: .85s; }
.entree > :nth-child(5) { animation-delay: 1s; } .entree > :nth-child(6) { animation-delay: 1.15s; }

@media (min-width: 900px) {
  .heros { text-align: start; }
  .heros h1 { font-size: clamp(64px, 6.4vw, 108px); }
  .heros__contenu { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "s a" "t a" "r a" "l a" "b a"; justify-items: start; align-items: center; column-gap: 72px; row-gap: 14px; }
  .heros__contenu > .surtitre { grid-area: s; } .heros__contenu > h1 { grid-area: t; }
  .heros__contenu > .heros__ar { grid-area: r; } .heros__contenu > .heros__ligne { grid-area: l; }
  .heros__contenu > .heros__actions { grid-area: b; justify-content: start; }
  .heros__contenu > .arche { grid-area: a; width: min(38vw, 440px); justify-self: end; }
}

/* ------------------------------------------------------------------ chapitres du catalogue */
.chapitre { position: relative; padding: clamp(72px, 12vw, 132px) var(--marge); background: var(--creme) var(--motif); background-size: 72px; }
.chapitre:nth-of-type(odd) { background-color: var(--ivoire); }
.chapitre__deco { position: absolute; width: clamp(140px, 30vw, 300px); mix-blend-mode: multiply; opacity: .9; pointer-events: none; }
.chapitre__deco--haut { top: 0; right: 0; -webkit-mask-image: radial-gradient(circle at 100% 0, #000 30%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 30%, transparent 72%); }
.chapitre__deco--bas { bottom: 0; left: 0; width: clamp(110px, 20vw, 210px); -webkit-mask-image: radial-gradient(circle at 0 100%, #000 30%, transparent 72%); mask-image: radial-gradient(circle at 0 100%, #000 30%, transparent 72%); }
.chapitre__tete { position: relative; display: grid; justify-items: center; gap: 6px; max-width: 760px; margin: 0 auto clamp(40px, 7vw, 72px); text-align: center; }
.chapitre__num { display: flex; align-items: center; gap: 16px; font: 500 13px/1 var(--f-caps); letter-spacing: .4em; color: var(--or); }
.chapitre__num::before, .chapitre__num::after { content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.chapitre__num::after { transform: scaleX(-1); }
.chapitre__ar { margin: 10px 0 0; font-size: clamp(40px, 11vw, 76px); line-height: 1.25; color: var(--or-fonce); }
.chapitre h2 { margin: 0; font: 400 italic clamp(34px, 8.6vw, 60px)/1.05 var(--f-serif); letter-spacing: -.01em; }
.chapitre__script { font: 400 clamp(22px, 5.6vw, 30px)/1.2 var(--f-script); color: var(--or); margin: 4px 0 0; }
.chapitre__compte { margin: 14px 0 0; font: 500 11px/1 var(--f-caps); letter-spacing: .28em; text-transform: uppercase; color: var(--encre-douce); }
.etoile-sep { width: 22px; height: 22px; color: var(--or); margin-top: 18px; }

/* grille : la première pièce en vedette, puis le rythme du chapitre */
.galerie { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
.galerie > li:first-child { grid-column: 1 / -1; }
.galerie--rythme > li:nth-child(3n + 1) { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
  .galerie > li:first-child, .galerie--rythme > li:nth-child(3n + 1) { grid-column: auto; }
  .galerie > li:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) {
  .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galerie--rythme > li:nth-child(7n + 5) { grid-column: span 2; grid-row: span 2; }
}

.piece { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: center; cursor: zoom-in; font: inherit; -webkit-tap-highlight-color: transparent; }
.piece__cadre { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--arc); padding: 7px; background: linear-gradient(160deg, rgba(var(--or-clair-rgb), .9), rgba(var(--or-rgb), .55) 45%, rgba(240, 220, 166, .9)); box-shadow: 0 22px 40px -28px rgba(var(--ombre-rgb), .6); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.galerie > li:first-child .piece__cadre, .galerie--rythme > li:nth-child(3n + 1) .piece__cadre { aspect-ratio: 4 / 4.4; }
@media (min-width: 760px) { .galerie > li .piece__cadre { aspect-ratio: 4 / 5 !important; } .galerie > li:first-child .piece__cadre, .galerie--rythme > li:nth-child(7n + 5) .piece__cadre { height: calc(100% - 46px); aspect-ratio: auto !important; } .galerie > li:first-child .piece, .galerie--rythme > li:nth-child(7n + 5) .piece { height: 100%; } }
.piece__cadre::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 250, 240, .55); pointer-events: none; }
.piece__photo { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: var(--creme-2); }
.piece__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .9s; }
.piece__num { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 500 12px/1 var(--f-caps); letter-spacing: .26em; color: var(--or-fonce); }
.piece__num::before, .piece__num::after { content: "✦"; font-size: 8px; color: var(--or); letter-spacing: 0; }
.piece__nom { display: block; margin-top: 6px; font: 400 italic 21px/1.25 var(--f-serif); }
.piece:focus-visible { outline: none; }
.piece:focus-visible .piece__cadre { box-shadow: 0 0 0 3px var(--creme), 0 0 0 5px var(--or); }
@media (hover: hover) {
  .piece:hover .piece__cadre { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(var(--ombre-rgb), .7); }
  .piece:hover .piece__photo img { transform: scale(1.06); filter: saturate(1.08); }
}

/* chapitre sombre : les coffrets comme dans un écrin */
.chapitre--ecrin { background: var(--cafe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a45a' stroke-width='.8' opacity='.12'%3E%3Crect x='24' y='24' width='24' height='24'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='4'/%3E%3Cpath d='M0 36h12M60 36h12M36 0v12M36 60v12'/%3E%3C/g%3E%3C/svg%3E") !important; background-size: 72px !important; color: #f6eedf; }
.chapitre--ecrin h2 { color: var(--ivoire); }
.chapitre--ecrin .chapitre__ar { color: var(--or-clair); }
.chapitre--ecrin .chapitre__compte, .chapitre--ecrin .piece__num { color: #d9c49a; }
.chapitre--ecrin .piece__nom { color: var(--ivoire); }
.chapitre--ecrin .piece__cadre { box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--or-clair-rgb), .15); }
.chapitre--ecrin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(var(--or-moyen-rgb), .18), transparent 70%); pointer-events: none; }

/* apparition à la lecture (seulement si le script tourne) */
.js .revele { opacity: 0; translate: 0 34px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.js .revele.est-vue { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ fin */
.fin { position: relative; padding: clamp(84px, 14vw, 150px) var(--marge) 40px; text-align: center; overflow: hidden; isolation: isolate; }
.fin__fond { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.fin__boite { position: relative; max-width: 620px; margin: 0 auto; padding: clamp(46px, 9vw, 72px) clamp(22px, 6vw, 56px) clamp(36px, 7vw, 56px); border-radius: 320px 320px 18px 18px; background: rgba(var(--ivoire-rgb), .78); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(var(--or-rgb), .45), 0 0 0 9px rgba(var(--ivoire-rgb), .5), 0 0 0 10px rgba(var(--or-rgb), .35), 0 40px 80px -40px rgba(var(--ombre-rgb), .5); }
.fin h2 { margin: 6px 0 0; font: 400 italic clamp(34px, 8vw, 54px)/1.08 var(--f-serif); }
.fin__ar { margin: 8px 0 0; font-size: clamp(28px, 7vw, 40px); color: var(--or-fonce); }
.fin p.fin__texte { margin: 14px auto 26px; max-width: 32ch; color: var(--encre-douce); }
.pied { display: grid; justify-items: center; gap: 10px; margin-top: clamp(56px, 10vw, 96px); font-size: 14px; color: var(--encre-douce); }
.pied .marque { font-size: 30px; }
.pied a { text-decoration: none; }
.pied a:not(.marque) { border-bottom: 1px solid rgba(var(--or-rgb), .45); }
@media (max-width: 520px) { .btn { letter-spacing: .1em; padding: 0 22px; white-space: nowrap; font-size: 13px; } }
.pied small { font: 500 10px/1 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; opacity: .8; }

/* bouton flottant sur téléphone */
.flottant { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45; translate: -50% 140%; width: min(92vw, 420px); transition: translate .5s var(--ease); }
.flottant.est-visible { translate: -50% 0; }
.flottant .btn { width: 100%; white-space: nowrap; letter-spacing: .1em; font-size: 13px; }
@media (min-width: 900px) { .flottant { display: none; } }

/* ------------------------------------------------------------------ visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(80% 60% at 50% 35%, var(--nuit-1), var(--nuit-2)); color: #f6eedf; opacity: 0; pointer-events: none; transition: opacity .35s; }
.visionneuse.est-ouverte { opacity: 1; pointer-events: auto; }
.visionneuse__haut { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--marge); font: 500 12px/1 var(--f-caps); letter-spacing: .26em; color: var(--or-clair); }
.visionneuse__scene { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--marge); touch-action: pan-y; }
.visionneuse__scene img { max-width: 100%; max-height: 100%; border-radius: 260px 260px 6px 6px; box-shadow: 0 0 0 1px rgba(var(--or-clair-rgb), .5), 0 40px 80px -30px rgba(0, 0, 0, .8); transition: opacity .25s, transform .35s var(--ease); }
.visionneuse__scene img.change { opacity: 0; transform: scale(.97); }
.visionneuse__bas { display: grid; justify-items: center; gap: 12px; padding: 18px var(--marge) max(22px, env(safe-area-inset-bottom)); text-align: center; }
.visionneuse__titre { font: 400 italic 24px/1.2 var(--f-serif); }
.rond { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(var(--or-clair-rgb), .45); background: rgba(255, 255, 255, .04); color: #f6eedf; cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.rond:hover { background: rgba(var(--or-clair-rgb), .16); }
.rond svg { width: 20px; height: 20px; }
.visionneuse__nav { position: absolute; top: 50%; translate: 0 -50%; }
.visionneuse__nav--prec { left: 10px; } .visionneuse__nav--suiv { right: 10px; }
@media (max-width: 600px) { .visionneuse__nav { top: auto; bottom: -58px; translate: 0 0; } .visionneuse__nav--prec { left: var(--marge); } .visionneuse__nav--suiv { right: var(--marge); } }

/* ------------------------------------------------------------------ animations */
@keyframes devoile { to { clip-path: inset(0 0 0 0); } }
@keyframes entre-photo { to { transform: scale(1); } }
@keyframes monte { to { opacity: 1; translate: 0 0; } }
@keyframes brille { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes respire { to { transform: scale(1.12) translate(-1%, -1%); } }
@keyframes tourne { to { rotate: 360deg; } }
@keyframes goutte { 0% { opacity: 0; transform: scaleY(.2); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1) translateY(16px); } }

/* filet de sécurité : si un navigateur intégré ne joue pas l'animation, le héros s'affiche quand même */
.secours .entree > * { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .revele { opacity: 1; translate: 0 0; }
}

/* IV · Ateliers (ordre d'Ishaq, 9 nov.) : nom, quand, lieu, montant, bouton WhatsApp « Réserver ma place » */
.ateliers { list-style: none; margin: 0 auto; padding: 0 var(--marge); max-width: 900px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.atelier { background: var(--ivoire); border: 1px solid var(--or-clair); border-radius: 18px; padding: 26px 24px 24px; display: grid; gap: 16px; align-content: start; box-shadow: 0 18px 40px -30px rgba(var(--or-fonce-rgb), .6); transition: transform .3s ease, box-shadow .3s ease; }
.atelier:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -28px rgba(var(--or-fonce-rgb), .7); }
.atelier__nom { font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.15; color: var(--encre); margin: 0; }
.atelier__infos { margin: 0; display: grid; gap: 10px; }
.atelier__infos div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; align-items: baseline; border-top: 1px solid rgba(var(--or-rgb), .25); padding-top: 10px; }
.atelier__infos dt { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or-fonce); }
.atelier__infos dd { margin: 0; font-family: var(--f-texte); font-size: 1rem; color: var(--encre); }
.atelier .btn { justify-self: start; }
@media (max-width: 480px) { .atelier .btn { justify-self: stretch; justify-content: center; } }

/* ------------------------------------------------------------------ portail : les boutons de la page d'accueil (lien de bio) */
.portail { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; width: min(100%, 440px); }
.portail a {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  min-height: 60px; padding: 12px 22px; border-radius: 999px; text-decoration: none; text-align: start;
  border: 1px solid rgba(var(--or-rgb), .55); background: rgba(var(--ivoire-rgb), .72); backdrop-filter: blur(6px);
  color: var(--encre); transition: transform .3s var(--ease), background .3s, box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.portail a:hover { transform: translateY(-2px); background: var(--ivoire); box-shadow: 0 14px 30px -18px rgba(var(--ombre-rgb), .6); }
.portail a:active { transform: translateY(0) scale(.985); }
.portail__fr { font: 500 13px/1.25 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; }
.portail__ar { grid-column: 1; font: 400 16px/1.3 var(--f-ar-texte); color: var(--encre-douce); direction: rtl; text-align: start; unicode-bidi: isolate; }
.portail__fleche { grid-row: 1 / span 2; grid-column: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--or-rgb), .45); color: var(--or-fonce); transition: transform .3s var(--ease); }
.portail__fleche svg { width: 16px; height: 16px; }
.portail a:hover .portail__fleche { transform: translateX(3px); }
.portail li:first-child a { background: var(--dore); background-size: 200% 100%; border-color: transparent; color: #fffaf0; box-shadow: 0 12px 28px -14px rgba(var(--or-fonce-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.portail li:first-child .portail__ar { color: rgba(255, 250, 240, .88); }
.portail li:first-child .portail__fleche { border-color: rgba(255, 250, 240, .6); color: #fffaf0; }
.portail li:first-child a:hover { background-position: 100% 0; }
.heros__bienvenue { margin: 0; font: 400 italic clamp(20px, 5vw, 26px)/1.35 var(--f-serif); color: var(--encre-douce); }
.heros__note { margin: 4px 0 0; max-width: 36ch; font-size: 15px; color: var(--encre-douce); }
.heros--portail .arche { width: min(46vw, 230px); }
@media (min-width: 900px) {
  .heros--portail .heros__contenu { grid-template-areas: "s a" "t a" "r a" "w a" "p a" "n a"; }
  .heros__contenu > .heros__bienvenue { grid-area: w; } .heros__contenu > .portail { grid-area: p; } .heros__contenu > .heros__note { grid-area: n; }
  .heros--portail .heros__contenu > .arche { width: min(34vw, 420px); }
}

/* arche sans photo : le motif de la marque remplit le cadre en attendant les photos */
.arche__photo--motif { background: var(--creme-2) var(--motif); background-size: 48px; display: grid; place-items: center; }
.arche__photo--motif svg { width: 34%; height: auto; color: var(--or); opacity: .9; }

/* sessions (formations, ateliers) : la carte et ses boutons */
.chapitre--sessions .ateliers { padding: 0; }
.atelier .btn { min-height: 48px; }
/* titres longs (École Délice de Nour) : retour à la ligne équilibré plutôt que débordement */
.heros--portail h1 { white-space: normal; text-wrap: balance; font-size: clamp(38px, 10.5vw, 104px); }
.heros__contenu { min-width: 0; }
.heros__contenu > * { max-width: 100%; }
