/* ============================================================================
   site.css : composition propre à E&S Évènementiel (base.css reste intact).
   ============================================================================ */

h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.surtitre { color: var(--accent); letter-spacing: 0.18em; }
.surtitre::before { content: ""; display: inline-block; width: 1.6em; height: 1px; background: var(--or); vertical-align: middle; margin-right: .7em; }
.bouton--plein { color: #fff; box-shadow: 0 8px 20px -10px rgb(156 86 69 / .7); }
.bouton--ligne:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.filet { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--or), transparent); margin-block: var(--e4); }

/* Fond rose sans démarcation : fondu en haut et en bas */
.voile-rose { background: linear-gradient(to bottom, transparent, var(--fond-doux) 16%, var(--fond-doux) 84%, transparent); }

/* ---------------------------------------------------------------- en-tête */
.entete { border-bottom-color: transparent; }
.entete__logo img { height: clamp(40px, 6vw, 54px); width: auto; }
.nav a[aria-current] { color: var(--accent); }

/* ---------------------------------------------------------------- héros */
.heros-es { position: relative; padding-block: clamp(6.5rem, 13vw, 10rem) clamp(3rem, 7vw, 6rem); overflow: clip; }
.guirlande { position: absolute; inset: 0 0 auto; height: clamp(90px, 12vw, 170px); pointer-events: none; z-index: 0; }
.guirlande svg { width: 100%; height: 100%; }
.guirlande .halo { transform-box: fill-box; transform-origin: center; animation: respire 3.2s ease-in-out infinite alternate; }
@keyframes respire { from { opacity: .25; transform: scale(.85); } to { opacity: .95; transform: scale(1.1); } }

.heros-es__grille { display: grid; gap: var(--e4); align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .heros-es__grille { grid-template-columns: 1.15fr .85fr; } }
.heros-es h1 { max-width: 16ch; }
.heros-es .chapo { margin-top: var(--e3); max-width: 46ch; }
.heros-es__logo { justify-self: center; width: min(100%, 460px); animation: apparait 1.4s var(--transition-lente) both .2s; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.heros-es__garanties { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: var(--e4); padding: 0; list-style: none; font-size: var(--t-petit); color: var(--encre-douce); }
.heros-es__garanties li::before { content: "✦"; color: var(--or); margin-right: .45em; }


/* ---------------------------------------------------------------- matériel */
.tete-section { display: grid; gap: var(--e2); margin-bottom: var(--e5); }
@media (min-width: 900px) { .tete-section { grid-template-columns: 1fr 1fr; align-items: end; } }
.materiel { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e2); }
@media (min-width: 1024px) {
  .materiel { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--e3); }
  .materiel .cat--vedette { grid-row: span 2; }
}
.materiel .cat--vedette { grid-column: span 2; }
@media (min-width: 1024px) { .materiel .cat--vedette { grid-column: auto; } }

.cat {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: clamp(1.1rem, 2.4vw, 2rem); min-height: 12rem;
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon);
  text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: var(--accent-clair); }
.cat svg { color: var(--accent); margin-bottom: auto; }
.cat h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); margin-top: var(--e2); }
.cat p { font-size: var(--t-petit); color: var(--encre-douce); }
.cat__meta { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: var(--t-mini); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-top: .4rem; }
.cat__num { position: absolute; top: .9rem; right: 1.1rem; font-family: var(--titre); font-style: italic; color: var(--or); font-size: 1.1rem; }
.cat--vedette { background: radial-gradient(120% 80% at 100% 0%, var(--fond-doux), var(--fond) 60%); }
.cat--vedette h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cat--vedette .cat__prix { font-family: var(--titre); font-size: clamp(2rem, 4vw, 3rem); color: var(--encre); line-height: 1; margin-top: var(--e2); }
.cat--vedette .cat__prix small { font-family: var(--texte); font-size: var(--t-petit); color: var(--encre-douce); margin-left: .3em; }
@media (max-width: 639px) { .materiel .cat:not(.cat--vedette) p { display: none; } }

/* ---------------------------------------------------------------- étapes */
.etapes { display: grid; gap: var(--e4); counter-reset: etape; padding: 0; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etapes li { list-style: none; counter-increment: etape; position: relative; padding-top: var(--e4); border-top: 1px solid var(--bord); max-width: none; }
.etapes li::before { content: "0" counter(etape); position: absolute; top: -.75em; left: 0; background: var(--fond-doux); padding-right: .6em; font-family: var(--titre); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.etapes h3 { margin-bottom: .6rem; }
.etapes p { color: var(--encre-douce); font-size: var(--t-petit); }

/* ---------------------------------------------------------------- à propos */
.apropos { display: grid; gap: var(--e4); align-items: center; }
@media (min-width: 900px) { .apropos { grid-template-columns: .8fr 1.2fr; } }
.monogramme { font-family: var(--titre); font-style: italic; font-size: clamp(6rem, 16vw, 11rem); line-height: .9; color: var(--accent-clair); text-align: center; position: relative; }
.monogramme small { display: block; font-size: var(--t-petit); font-style: normal; font-family: var(--texte); letter-spacing: .3em; text-transform: uppercase; color: var(--encre-douce); margin-top: var(--e2); }
.citation { font-family: var(--titre); font-style: italic; font-size: var(--t-moyen); line-height: 1.4; border-left: 2px solid var(--or); padding-left: var(--e3); margin-top: var(--e3); }

/* ---------------------------------------------------------------- questions */
.faq { display: grid; gap: var(--e2); max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--bord); padding-block: var(--e2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--e2); font-family: var(--titre); font-size: var(--t-moyen); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--texte); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--e2); color: var(--encre-douce); }

/* ---------------------------------------------------------------- appel final */
.appel { text-align: center; border-radius: calc(var(--rayon) * 2); padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 5vw, 4rem); background: radial-gradient(90% 120% at 50% 0%, #56303a, var(--fond-sombre)); color: var(--encre-inverse); position: relative; overflow: hidden; }
.appel h2 { max-width: 20ch; margin-inline: auto; }
.appel h2 em { color: var(--accent-clair); }
.appel p { margin: var(--e3) auto 0; opacity: .85; }
.appel .rangee { justify-content: center; margin-top: var(--e4); }
.appel .bouton--ligne { color: var(--encre-inverse); }
.appel .bouton--ligne:hover { background: var(--encre-inverse); color: var(--encre); }

/* ---------------------------------------------------------------- pied */
.pied__logo { background: var(--fond); border-radius: var(--rayon); padding: .6rem 1rem; display: inline-block; }
.pied__logo img { height: 56px; width: auto; }

/* ---------------------------------------------------------------- carte menu (articles) */
.carte-menu { list-style: none; padding: 0; display: grid; gap: 0; }
.ligne {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom prix" "nom compteur";
  gap: .4rem var(--e2); align-items: center; padding: var(--e2) .75rem; max-width: none;
  border-bottom: 1px dashed var(--bord); border-radius: 10px; transition: background var(--transition);
}
@media (min-width: 640px) {
  .ligne { grid-template-columns: auto 1fr auto auto; grid-template-areas: "nom points prix compteur"; }
}
.ligne[data-choisi="true"] { background: color-mix(in srgb, var(--fond-doux) 70%, transparent); }
.ligne__nom { grid-area: nom; }
.ligne__nom strong { font-weight: 500; }
.ligne__nom span { color: var(--encre-douce); font-size: var(--t-petit); }
.ligne__points { grid-area: points; display: none; border-bottom: 1px dotted var(--accent-clair); height: 1px; align-self: center; margin-top: .5em; min-width: 2rem; }
@media (min-width: 640px) { .ligne__points { display: block; } }
.ligne__prix { grid-area: prix; font-family: var(--titre); font-size: 1.15rem; text-align: right; white-space: nowrap; }
.ligne .compteur { grid-area: compteur; justify-self: end; }
.pastille { display: inline-block; font-style: normal; font-size: var(--t-mini); color: var(--accent); background: var(--fond-doux); border: 1px solid var(--bord); border-radius: 999px; padding: .1em .7em; margin-left: .3em; white-space: nowrap; vertical-align: .1em; }

.compteur { display: inline-flex; align-items: center; border: 1px solid var(--bord); border-radius: 999px; background: var(--fond); }
.compteur button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 1.25rem; color: var(--accent); cursor: pointer; border-radius: 999px; transition: background var(--transition); }
.compteur button:hover { background: var(--fond-doux); }
.compteur input { width: 3.2ch; border: 0; background: none; font: inherit; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.compteur input::-webkit-inner-spin-button, .compteur input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ligne[data-choisi="true"] .compteur { border-color: var(--accent); }

/* ---------------------------------------------------------------- bouton flottant + annonce */
.dock {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem .7rem 1.1rem; min-height: 56px;
  background: var(--fond-sombre); color: var(--encre-inverse); text-decoration: none;
  border-radius: 22px; box-shadow: var(--ombre-forte);
  transform: translateY(140%); opacity: 0; transition: transform var(--transition-lente), opacity var(--transition);
}
.dock[data-visible="true"] { transform: none; opacity: 1; }
.dock__txt { display: flex; flex-direction: column; line-height: 1.2; font-weight: 500; }
.dock__txt small { opacity: .7; font-size: var(--t-mini); font-weight: 400; }
.dock__n { display: grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 12px; background: var(--accent); font-weight: 600; font-size: var(--t-petit); }

.annonce {
  position: fixed; left: 50%; top: 84px; z-index: 70; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--fond); border: 1px solid var(--bord); box-shadow: var(--ombre); border-radius: 999px;
  padding: .6rem 1.2rem; font-size: var(--t-petit); width: max-content; max-width: calc(100vw - 2rem); text-align: center;
  transition: opacity var(--transition), transform var(--transition-lente);
}
.annonce span { font-weight: 600; color: var(--accent); }
.annonce[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- page catégorie */
.onglets { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-block: .3rem; margin-top: var(--e4); }
.onglets a { flex: none; text-decoration: none; padding: .55rem 1.1rem; border: 1px solid var(--bord); border-radius: 999px; font-size: var(--t-petit); background: var(--fond); }
.onglets a[aria-current] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.cat-page { display: grid; gap: var(--e5); align-items: start; }
@media (min-width: 1024px) { .cat-page { grid-template-columns: 1.5fr 1fr; } }
.cat-tete svg { color: var(--accent); margin-bottom: var(--e2); }
.cat-tete h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cat-tete .chapo { margin-top: var(--e2); }
.encart { position: sticky; top: 96px; background: var(--fond); border: 1px solid var(--bord); border-radius: calc(var(--rayon) * 1.4); padding: var(--e4) var(--e3); box-shadow: var(--ombre); }
.encart h2 { font-size: var(--t-moyen); }
.encart ul { list-style: none; padding: 0; margin-top: var(--e2); display: grid; gap: .7rem; font-size: var(--t-petit); color: var(--encre-douce); }
.encart li::before { content: "✦"; color: var(--or); margin-right: .5em; }
.encart .bouton { width: 100%; margin-top: var(--e3); }
.autres { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e2); }
@media (min-width: 900px) { .autres { grid-template-columns: repeat(4, 1fr); } }
.autre { display: flex; flex-direction: column; gap: .3rem; padding: var(--e3); border: 1px solid var(--bord); border-radius: var(--rayon); text-decoration: none; background: var(--fond); transition: border-color var(--transition), transform var(--transition); }
.autre:hover { border-color: var(--accent-clair); transform: translateY(-2px); }
.autre svg { color: var(--accent); }
.autre span { font-family: var(--titre); font-size: 1.1rem; margin-top: .4rem; }
.autre small { color: var(--encre-douce); font-size: var(--t-mini); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- page demande */
.demande { display: grid; gap: var(--e4); align-items: start; }
@media (min-width: 1024px) { .demande { grid-template-columns: 1.45fr 1fr; gap: var(--e5); } }
.etape-form { counter-increment: etapeform; }
.etape-form + .etape-form { margin-top: var(--e5); }
.etape-form > h2 { font-size: var(--t-moyen); display: flex; align-items: baseline; gap: .7rem; margin-bottom: var(--e3); }
.etape-form > h2::before { content: "0" counter(etapeform); font-style: italic; color: var(--accent); }
.demande form { counter-reset: etapeform; }
.rayon { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond); margin-bottom: .75rem; overflow: hidden; }
.rayon summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; padding: 1rem 1.2rem; list-style: none; font-family: var(--titre); font-size: 1.15rem; }
.rayon summary::-webkit-details-marker { display: none; }
.rayon summary svg { color: var(--accent); flex: none; }
.rayon summary small { margin-left: auto; font-family: var(--texte); font-size: var(--t-mini); color: var(--encre-douce); text-transform: uppercase; letter-spacing: .08em; }
.rayon[open] summary { border-bottom: 1px solid var(--bord); }
.rayon .carte-menu { padding: .4rem .5rem .6rem; }

.champs { display: grid; gap: var(--e2); }
@media (min-width: 640px) { .champs--2 { grid-template-columns: repeat(2, 1fr); } }
.champ { display: grid; gap: .35rem; font-size: var(--t-petit); font-weight: 500; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: .6rem .9rem; font: inherit; font-weight: 400; color: var(--encre);
  background: var(--fond); border: 1px solid var(--bord); border-radius: 12px; transition: border-color var(--transition);
}
.champ textarea { min-height: 7rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--accent); outline: none; }
.choix-livraison { display: grid; gap: .6rem; border: 0; padding: 0; }
@media (min-width: 640px) { .choix-livraison { grid-template-columns: repeat(2, 1fr); } }
.choix-livraison legend { font-size: var(--t-petit); font-weight: 500; margin-bottom: .35rem; }
.choix-livraison label { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--bord); border-radius: 12px; cursor: pointer; font-size: var(--t-petit); }
.choix-livraison label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--fond-doux) 60%, transparent); }
.choix-livraison label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.choix-livraison input { accent-color: var(--accent); margin-top: .3rem; }
.note { font-size: var(--t-petit); color: var(--accent); grid-column: 1 / -1; }

.recap { position: sticky; top: 96px; background: var(--fond-sombre); color: var(--encre-inverse); border-radius: calc(var(--rayon) * 1.4); padding: var(--e4) var(--e3); box-shadow: var(--ombre-forte); }
.recap h2 { font-size: var(--t-moyen); }
.recap ul { list-style: none; padding: 0; margin-top: var(--e3); display: grid; gap: .55rem; max-height: 40vh; overflow-y: auto; font-size: var(--t-petit); }
.recap li { display: flex; justify-content: space-between; gap: var(--e2); max-width: none; }
.recap li span:last-child { white-space: nowrap; opacity: .85; }
.recap li.vide { opacity: .7; }
.recap__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgb(255 255 255 / .15); margin-top: var(--e3); padding-top: var(--e3); }
.recap__total strong { font-family: var(--titre); font-size: 2rem; font-weight: 500; }
.recap__mention { font-size: var(--t-mini); opacity: .7; margin-top: .5rem; }
.recap .note { color: #f0c3b4; margin-top: var(--e2); }
.recap .bouton { width: 100%; margin-top: var(--e3); }
.erreur { color: #b3261e; font-size: var(--t-petit); margin-top: var(--e2); min-height: 1.4em; }
.recap .erreur { color: #ffb4a8; }

.merci { display: none; text-align: center; max-width: 640px; margin-inline: auto; }
[data-envoye="true"] .merci { display: block; }
[data-envoye="true"] .demande, [data-envoye="true"] .demande-tete { display: none; }
.merci .monogramme { font-size: clamp(4rem, 10vw, 6rem); }

/* ================================================================ emplacements photo
   Tant que le fichier n'existe pas, l'emplacement affiche un filigrane avec le
   nom du fichier attendu. Déposer l'image dans images/ sous ce nom suffit :
   elle recouvre le filigrane (onload), sans toucher au HTML. */
.photo {
  position: relative; overflow: hidden; margin: 0; border-radius: var(--rayon);
  background: repeating-linear-gradient(135deg, #f4e2db 0 14px, #f9ede8 14px 28px);
  outline: 1px dashed var(--accent-clair); outline-offset: -1px;
  display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3;
}
.photo[data-ok] { outline: 0; background: var(--fond-doux); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__etiquette { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .75rem; font-size: var(--t-mini); color: var(--accent); line-height: 1.35; }
.photo__etiquette b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.photo__etiquette i { font-style: normal; opacity: .75; word-break: break-all; }
.photo__etiquette::before { content: ""; width: 26px; height: 26px; margin-bottom: .2rem; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat; }
.photo--mini .photo__etiquette { padding: 0; }
.photo--mini .photo__etiquette b, .photo--mini .photo__etiquette i, .photo--mini .photo__etiquette span { display: none; }

/* Héros : photo en arche (motif de cérémonie) + sceau du logo */
.heros-es__visuel { position: relative; justify-self: center; width: min(100%, 440px); }
.photo--arche { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--rayon) var(--rayon); box-shadow: var(--ombre-forte); }
.sceau { position: absolute; left: -6%; bottom: 6%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--fond); box-shadow: var(--ombre); display: grid; place-items: center; padding: 8%; }
.sceau img { width: 100%; height: auto; }
@media (max-width: 959px) { .heros-es__visuel { width: min(78%, 360px); } }

/* Cartes catégorie avec photo */
.cat { padding: 0; overflow: hidden; min-height: 0; gap: 0; }
.cat .photo { border-radius: 0; outline-offset: -1px; aspect-ratio: 16 / 10; }
.cat--vedette .photo { aspect-ratio: auto; flex: 1; min-height: 16rem; }
.cat__corps { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: clamp(1rem, 2vw, 1.6rem); }
.cat__corps svg { margin-bottom: 0; }
.cat h3 { margin-top: .2rem; }
.cat__num { top: -1.6rem; right: 1rem; background: var(--fond); border-radius: 999px; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; box-shadow: var(--ombre); z-index: 1; }

/* À propos : portrait en arche */
.apropos .photo--arche { width: min(100%, 380px); justify-self: center; }
.apropos figcaption { text-align: center; font-family: var(--titre); font-style: italic; color: var(--encre-douce); margin-top: var(--e2); }

/* Lignes d'articles avec vignette */
.ligne { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "vignette nom nom" "vignette prix compteur"; }
@media (max-width: 639px) { .ligne__prix { text-align: left; } .pastille { white-space: normal; margin-left: 0; } }
@media (min-width: 640px) {
  .ligne { grid-template-columns: auto auto minmax(2rem, 1fr) auto auto; grid-template-areas: "vignette nom points prix compteur"; }
}
.ligne .photo { grid-area: vignette; width: clamp(64px, 9vw, 88px); aspect-ratio: 1; border-radius: 12px; }
.rayon .ligne .photo { width: 56px; }

/* Encart catégorie : photo d'ambiance */
.encart .photo { margin: calc(var(--e4) * -1) calc(var(--e3) * -1) var(--e3); border-radius: calc(var(--rayon) * 1.4) calc(var(--rayon) * 1.4) 0 0; aspect-ratio: 16 / 11; }
.autre { overflow: hidden; }
.autre .photo { margin: calc(var(--e3) * -1) calc(var(--e3) * -1) .6rem; border-radius: 0; aspect-ratio: 16 / 10; }
.apropos__legende { text-align: center; font-family: var(--titre); font-style: italic; color: var(--encre-douce); margin-top: var(--e2); max-width: none; }
.encart [data-cat-photo] .photo { margin: calc(var(--e4) * -1) calc(var(--e3) * -1) var(--e3); border-radius: calc(var(--rayon) * 1.4) calc(var(--rayon) * 1.4) 0 0; aspect-ratio: 16 / 11; }

/* ================================================================ finitions v2 */
/* Orbes (skill blob-orbs) : canvas sous le contenu, aucune démarcation */
.orbes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#apropos > .conteneur { position: relative; z-index: 1; }

/* Grain de papier, très léger, sur toute la page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* Guirlande : passe devant le collage, ampoules qui se balancent */
.guirlande { z-index: 3; }
.guirlande .balance { transform-box: view-box; transform-origin: 0 0; animation: balance 5s ease-in-out infinite alternate; }
@keyframes balance { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* Collage du héros */
.heros-es__visuel { margin-top: clamp(1rem, 4vw, 3rem); }
.polaroid {
  position: absolute; z-index: 2; background: #fff; padding: .5rem .5rem 0; width: 40%;
  box-shadow: 0 2px 4px rgb(58 31 39 / .08), 0 18px 36px -12px rgb(58 31 39 / .35);
  transition: transform var(--transition-lente);
  animation: pose 1.4s var(--transition-lente) both;
}
.polaroid .photo { aspect-ratio: 1; border-radius: 2px; }
.polaroid .photo__etiquette span, .polaroid .photo__etiquette i { display: none; }
.polaroid p { font-family: var(--titre); font-style: italic; text-align: center; padding: .45rem 0 .55rem; font-size: clamp(.78rem, 1.1vw, .95rem); color: var(--encre-douce); max-width: none; }
.polaroid--1 { left: -12%; bottom: 14%; --r: -7deg; transform: rotate(var(--r)); animation-delay: .5s; }
.polaroid--2 { right: -9%; top: 16%; width: 34%; --r: 6deg; transform: rotate(var(--r)); animation-delay: .75s; }
.polaroid:hover { transform: rotate(0deg) scale(1.04); }
@keyframes pose { from { opacity: 0; transform: translateY(24px) rotate(0deg); } }
.sceau { left: auto; right: -2%; bottom: -5%; width: 34%; z-index: 2; }
.etincelle { position: absolute; left: var(--x); top: var(--y); z-index: 3; color: var(--or); font-size: 1.3rem; animation: scintille 2.4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes scintille { from { opacity: .2; transform: scale(.7) rotate(0deg); } to { opacity: 1; transform: scale(1.1) rotate(25deg); } }
@media (max-width: 959px) {
  .heros-es__visuel { width: min(74%, 340px); margin-top: var(--e3); }
  .polaroid--1 { left: -16%; } .polaroid--2 { right: -14%; }
}

/* Occasions en mosaïque photo, 2 / 3 / 6 colonnes */
.occasions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e2); padding: 0; }
@media (min-width: 640px) { .occasions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .occasions { grid-template-columns: repeat(6, 1fr); } }
.occasions li { list-style: none; max-width: none; }
.occasions a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; text-decoration: none; box-shadow: var(--ombre); }
.occasions .photo { aspect-ratio: 3 / 4; border-radius: 0; }
.occasions .photo__etiquette { padding-bottom: 3rem; }
.occasions a > span {
  position: absolute; inset: auto 0 0; padding: 2.4rem .9rem .85rem; color: var(--encre-inverse);
  background: linear-gradient(transparent, rgb(58 31 39 / .78)); font-family: var(--titre); font-style: italic; font-size: 1.15rem;
}
.occasions a > span::after { content: " →"; font-style: normal; opacity: 0; transition: opacity var(--transition); }
.occasions a:hover > span::after { opacity: 1; }

/* Zoom lent des photos au survol */
.occasions img, .cat img, .autre img { transition: transform 1.2s var(--transition-lente); }
.occasions a:hover img, .cat:hover img, .autre:hover img { transform: scale(1.06); }
.occasions a:hover .photo, .cat:hover .photo { background-position: 20px 0; }
.cat__meta span:last-child::after { content: " →"; display: inline-block; transition: transform var(--transition); }
.cat:hover .cat__meta span:last-child::after { transform: translateX(4px); }
.sceau { padding: 12%; }
@media (prefers-reduced-motion: reduce) { .polaroid { animation: none; } .guirlande .balance, .etincelle { animation: none; } }
.sceau { display: flex; align-items: center; justify-content: center; } .sceau img { width: 100%; flex: none; }
.sceau { padding: clamp(.6rem, 1.6vw, 1.1rem); }

/* ================================================================ v3 : effet waouh
   Inspiration : page-mariage.fr (photo plein écran, voile chaud, sections
   numérotées en chiffres romains, galerie en mosaïque). */
.guirlande { color: var(--encre-douce); }
.guirlande svg { width: 100%; height: 100%; overflow: visible; }
.guirlande .balance { transform-box: fill-box; transform-origin: 50% 0; }

.heros-plein {
  position: relative; min-height: calc(100svh - 68px); display: flex; align-items: center;
  padding-block: clamp(7rem, 12vw, 9rem) clamp(5rem, 9vw, 7rem); overflow: clip; color: var(--encre-inverse);
}
.heros-plein__fond { position: absolute; inset: 0; z-index: -2; }
.photo--fond { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; outline: 0; align-items: end; justify-items: end;
  background: repeating-linear-gradient(135deg, #6b3f48 0 22px, #74464f 22px 44px); }
.photo--fond .photo__etiquette { color: #f6d9cf; padding: 0 2rem 7rem; align-items: flex-end; text-align: right; max-width: 30rem; }
.heros-plein__fond img { animation: respiration 24s ease-in-out infinite alternate; }
@keyframes respiration { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.heros-plein__voile { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, transparent 86%, var(--fond) 100%),
    linear-gradient(90deg, rgb(58 31 39 / .86) 0%, rgb(58 31 39 / .55) 55%, rgb(58 31 39 / .2) 100%); }
.heros-plein .guirlande { position: absolute; inset: 0 0 auto; height: clamp(110px, 13vw, 170px); color: #f3dcd3; z-index: 2; pointer-events: none; }
.heros-plein__contenu { display: grid; gap: var(--e5); align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .heros-plein__contenu { grid-template-columns: 1.35fr .65fr; } }
.heros-plein .surtitre { color: #f0c3b4; }
.heros-plein .surtitre::before { background: #f0c3b4; }
.heros-plein h1 { font-size: clamp(2.7rem, 6.8vw, 5.6rem); max-width: 14ch; font-weight: 400; line-height: 1.02; }
.heros-plein h1 em { color: #f0c3b4; }
.heros-plein .chapo { color: var(--encre-inverse); opacity: .88; margin-top: var(--e3); max-width: 44ch; }
.heros-plein .rangee { margin-top: var(--e4); }
.heros-plein .bouton--ligne { color: var(--encre-inverse); }
.heros-plein .bouton--ligne:hover { background: var(--encre-inverse); color: var(--encre); border-color: var(--encre-inverse); }
.faits { display: flex; flex-wrap: wrap; gap: var(--e3) var(--e5); list-style: none; padding: var(--e3) 0 0; margin-top: var(--e4); border-top: 1px solid rgb(253 248 242 / .22); }
.faits li { display: flex; align-items: center; gap: .7rem; max-width: none; }
.faits strong { font-family: var(--titre); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #f0c3b4; }
.faits span { font-size: var(--t-mini); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; max-width: 9ch; opacity: .85; }
.heros-plein__tirages { position: relative; height: clamp(300px, 34vw, 440px); }
.heros-plein .polaroid--1 { left: 0; bottom: 0; top: auto; width: 62%; }
.heros-plein .polaroid--2 { right: 0; top: 0; left: auto; width: 54%; }
@media (max-width: 1023px) {
  .heros-plein__tirages { height: 260px; width: min(100%, 380px); justify-self: center; }
}
.defiler { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: var(--t-mini); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--encre-douce); z-index: 1; }
.defiler span { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: descend 2s ease-in-out infinite; transform-origin: top; }
@keyframes descend { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Numéros de section en chiffres romains */
.numero { display: block; font-family: var(--titre); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--accent-clair); margin-bottom: .3rem; }

/* Manifeste */
.manifeste { text-align: center; }
.manifeste .surtitre::before { display: none; }
.manifeste__phrase { font-family: var(--titre); font-weight: 400; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.12; max-width: 18ch; margin: var(--e2) auto 0; text-wrap: balance; }
.manifeste__phrase em { color: var(--accent); }
.ornement { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--or); margin: var(--e4) 0; }
.ornement span { width: 80px; height: 1px; background: var(--or); opacity: .6; }
.manifeste .chapo { margin-inline: auto; max-width: 52ch; }

/* Galerie en mosaïque : 4 colonnes × 3 rangées pleines, 2 colonnes en dense sur mobile */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; grid-auto-flow: dense; gap: 6px; padding-inline: 6px; }
.galerie__item { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.galerie__item .photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.galerie__item img { transition: transform 1.4s var(--transition-lente); }
.galerie__item:hover img { transform: scale(1.06); }
.galerie__item--1, .galerie__item--3, .galerie__item--6 { grid-column: span 2; }
.galerie__item--1 { grid-row: span 2; }
@media (min-width: 900px) {
  .galerie { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 17vw, 260px); grid-auto-flow: row; }
  .galerie__item--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .galerie__item--2 { grid-column: 3; grid-row: 1; }
  .galerie__item--3 { grid-column: 4; grid-row: 1 / 3; }
  .galerie__item--4 { grid-column: 3; grid-row: 2; }
  .galerie__item--5 { grid-column: 1; grid-row: 3; }
  .galerie__item--6 { grid-column: 2 / 4; grid-row: 3; }
  .galerie__item--7 { grid-column: 4; grid-row: 3; }
}
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.visionneuse::backdrop { background: rgb(58 31 39 / .88); backdrop-filter: blur(4px); }
.visionneuse img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.visionneuse__fermer { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fond); color: var(--encre); font-size: 1.6rem; cursor: pointer; }
.photo--fond .photo__etiquette { padding-bottom: 9rem; }
