/* Au P'tit Jardin · version Animée, une seule page (corrigée le 30/10/2026 selon le retour de Loan). */
:root {
  --creme: #f5efe6;
  --papier: #fbf8f3;
  --encre: #2b2620;
  --gris: #6a6259;
  --kraft: #a47e58;
  --rose: #c99a8f;
  --trait: #e2d8c9;
  --titre: "Cormorant Garamond", Georgia, serif;
  --texte: "Jost", system-ui, -apple-system, sans-serif;
  --doux: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.mot { display: inline-block; white-space: nowrap; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 17px/1.6 var(--texte); }
/* Pas d'overflow sur body : avec overflow-x: clip sur html, il ferait de body un conteneur de défilement et casserait position: sticky (galerie épinglée). */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.01em; }
h3 { font-size: 27px; }
p { margin: 0 0 14px; }
.script { font: italic 500 clamp(24px, 2.4vw, 32px)/1.2 var(--titre); color: var(--kraft); margin: 0; }
.surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 500; margin-bottom: 16px; color: var(--kraft); }

.bandeau { position: relative; z-index: 31; margin: 0; background: var(--encre); color: #f3ece2; font-size: 14px; text-align: center; padding: 8px 16px; }

/* En-tête : transparent sur la photo, papier ensuite */
.entete { position: fixed; left: 0; right: 0; top: 36px; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 48px); color: #fff; transition: background .5s var(--doux), color .5s var(--doux), top .4s var(--doux), box-shadow .5s; }
.entete.solide { top: 0; background: rgba(245, 239, 230, .95); color: var(--encre); box-shadow: 0 1px 0 var(--trait); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font: 600 24px/1 var(--titre); }
.marque img { width: 50px; filter: invert(1) brightness(2); transition: filter .5s; }
.entete.solide .marque img { filter: none; }
.nav { display: flex; gap: 26px; font-size: 15.5px; }
.nav a, .entete__appel { position: relative; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--doux); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.entete__appel { border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px; font-size: 15px; transition: background .3s, color .3s; }
.entete__appel:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bouton { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--papier); color: var(--encre); text-decoration: none; font-weight: 500; border: 1px solid var(--papier); isolation: isolate; transition: color .45s var(--doux), transform .45s var(--doux); }
.bouton::before { content: ""; position: absolute; inset: 0; background: var(--rose); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--doux); z-index: -1; }
.bouton:hover::before { transform: translateY(0); }
.bouton:hover { transform: translateY(-2px); }
.bouton--verre { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bouton--fonce { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.bouton--fonce:hover { color: var(--encre); }
.bouton--trait-fonce { background: transparent; color: var(--encre); border-color: var(--encre); }

/* Accueil */
.heros { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; align-items: end; color: #fff; }
.heros__fond { position: absolute; inset: -4% 0 0; will-change: transform; }
.heros__fond img { width: 100%; height: 100%; object-fit: cover; animation: lent 9s var(--doux) both; }
@keyframes lent { from { transform: scale(1.07); filter: saturate(.8) brightness(.85); } to { transform: scale(1); filter: none; } }
.heros__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 28, 23, .4) 0%, rgba(36, 28, 23, .05) 35%, rgba(36, 28, 23, .75) 100%); }
.graines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.heros__contenu { position: relative; z-index: 2; padding: 0 clamp(16px, 5vw, 64px) clamp(70px, 12vh, 120px); max-width: 1100px; }
.heros .surtitre { color: #f1e3d3; }
.titre-lettres { font-size: clamp(52px, 13vw, 168px); line-height: .92; margin: 0 0 18px; letter-spacing: -0.02em; }
.titre-lettres .l { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg); filter: blur(8px); animation: lettre 1s var(--doux) forwards; animation-delay: calc(.35s + var(--i) * .055s); }
@keyframes lettre { to { opacity: 1; transform: none; filter: blur(0); } }
.heros__phrase { font: italic 500 clamp(22px, 2.4vw, 32px)/1.25 var(--titre); max-width: 26ch; color: #f6efe6; }
.entree { opacity: 0; transform: translateY(24px); animation: entree 1s var(--doux) forwards; animation-delay: var(--d, 0s); }
@keyframes entree { to { opacity: 1; transform: none; } }
.indice { position: absolute; z-index: 2; right: clamp(16px, 5vw, 64px); bottom: 40px; width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 20px; }
.indice span { position: absolute; left: 50%; top: 9px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: souris 1.8s ease-in-out infinite; }
@keyframes souris { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ruban */
.ruban { background: var(--encre); color: var(--creme); overflow: hidden; padding: 18px 0; }
.ruban__piste { display: flex; align-items: center; gap: 34px; width: max-content; animation: ruban 32s linear infinite; }
.ruban span { font: italic 500 clamp(26px, 3vw, 40px)/1 var(--titre); white-space: nowrap; }
.ruban i { width: 26px; height: 26px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23c99a8f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 38V18'/%3E%3Cpath d='M20 18L8 6M20 18L14 3M20 18L20 2M20 18L26 3M20 18L32 6M20 18L5 13M20 18L35 13'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes ruban { to { transform: translateX(-50%); } }

/* Galerie épinglée : titre au-dessus, photos en dessous, jamais l'une sur l'autre */
.defile { position: relative; background: var(--papier); }
.defile__scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: 96px 0 28px; gap: 20px; }
.defile__tete { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding: 0 clamp(16px, 5vw, 64px); }
.defile__tete h2 { margin: 0; }
.defile__cadre { flex: 1; min-height: 0; }
.defile__piste { height: 100%; display: flex; gap: clamp(16px, 2.2vw, 30px); padding: 0 clamp(16px, 5vw, 64px); width: max-content; will-change: transform; }
.defile__piste figure { margin: 0; flex: none; height: 100%; aspect-ratio: 3 / 4.3; display: flex; flex-direction: column; gap: 10px; }
.defile__piste img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 26px 50px -30px rgba(43, 38, 32, .5); }
.defile__piste figcaption { flex: none; font: italic 500 21px/1.1 var(--titre); color: var(--kraft); }
.defile__barre { flex: none; margin: 0 clamp(16px, 5vw, 64px); height: 2px; background: var(--trait); border-radius: 2px; overflow: hidden; }
.defile__barre span { display: block; height: 100%; width: 100%; background: var(--kraft); transform-origin: left; transform: scaleX(0); }

/* Apparitions */
.apparait { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--doux), transform 1.1s var(--doux); transition-delay: var(--d, 0s); }
.apparait.vu { opacity: 1; transform: none; }

/* Manifeste : les mots s'allument au défilement */
.manifeste { padding: clamp(90px, 15vh, 160px) clamp(16px, 7vw, 120px); }
.manifeste__texte { font: 500 clamp(30px, 4.4vw, 62px)/1.18 var(--titre); max-width: 22ch; margin: 0 auto; text-align: center; }
.manifeste__texte .m { opacity: .16; transition: opacity .25s linear; }

/* Prestations : les photos s'ouvrent */
.prestations { padding: 0 clamp(16px, 5vw, 64px) clamp(90px, 14vh, 140px); max-width: 1320px; margin: 0 auto; }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 34px; }
.carte__img { overflow: hidden; border-radius: 20px; clip-path: inset(16% 16% 16% 16% round 20px); transition: clip-path 1.3s var(--doux); }
.carte.vu .carte__img { clip-path: inset(0 0 0 0 round 20px); }
.carte__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.2); transition: transform 1.6s var(--doux); }
.carte.vu .carte__img img { transform: scale(1); }
.carte:hover .carte__img img { transform: scale(1.05); }
.carte__num { display: block; margin: 20px 0 6px; font-size: 13px; letter-spacing: .2em; color: var(--kraft); }
.carte p { color: var(--gris); }
.carte.apparait { transform: translateY(70px); }

/* Mariage, ambiance bougie, deux photos en parallaxe */
.mariage { background: #241c17; color: #f3ebe1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(90px, 15vh, 160px) clamp(16px, 5vw, 64px); overflow: hidden; }
.mariage .surtitre { color: var(--rose); }
.mariage p { color: #d8cbbd; max-width: 46ch; }
.mariage .fort { color: #fff; font-weight: 500; }
.mariage__images { position: relative; min-height: 620px; }
.mariage__grande, .mariage__petite { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; will-change: transform; }
.mariage__grande { inset: 0 18% 8% 0; }
.mariage__petite { width: 42%; aspect-ratio: 3 / 4; right: 0; bottom: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 6px solid #241c17; }
.mariage__images img { width: 100%; height: 100%; object-fit: cover; }
.bouton--trait { background: transparent; color: var(--papier); border-color: rgba(251, 248, 243, .6); }
.bouton--trait:hover { color: var(--encre); }

/* Livraisons : le trajet se dessine */
.livraisons { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(90px, 14vh, 150px) clamp(16px, 5vw, 64px) 0; max-width: 1320px; margin: 0 auto; }
.livraisons p { color: var(--gris); max-width: 46ch; }
.trajet { position: relative; }
.trajet svg { width: 100%; height: auto; overflow: visible; }
.trajet__fond { stroke: var(--trait); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.trajet__trait { stroke: var(--kraft); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.trajet__point { fill: var(--creme); stroke: var(--kraft); stroke-width: 3; }
.trajet.arrive .trajet__fin { fill: var(--rose); }
.trajet span { position: absolute; font: italic 500 22px/1 var(--titre); color: var(--kraft); }
.trajet__depart { left: 0; bottom: -6px; }
.trajet__arrivee { right: 0; top: -12px; opacity: .3; transition: opacity .5s; }
.trajet.arrive .trajet__arrivee { opacity: 1; }

/* Bas de page */
.infos { display: grid; grid-template-columns: 1fr .9fr 1fr; gap: 28px; align-items: start; padding: clamp(80px, 12vh, 120px) clamp(16px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }
.infos__carte { background: var(--papier); border: 1px solid var(--trait); border-radius: 20px; padding: 32px; }
.infos__carte p { color: var(--gris); }
.nom { color: var(--encre) !important; font-weight: 500; }
.horaires dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.horaires dt { font-weight: 500; }
.horaires dd { margin: 0; color: var(--gris); text-align: right; }
.infos__photo { margin: 0; border-radius: 20px; overflow: hidden; }
.infos__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform 1.2s var(--doux); }
.infos__photo:hover img { transform: scale(1.05); }
.pied { text-align: center; padding: 50px 16px 120px; border-top: 1px solid var(--trait); }
.pied img { width: 70px; margin: 0 auto 10px; }
.pied p { color: var(--gris); font-size: 15px; margin: 8px 0 0; }

/* Boutons fixes : retour (bas gauche, règle de Loan) et appel (bas droite) */
.retour { position: fixed; z-index: 50; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(251, 248, 243, .94); color: var(--encre); border: 1px solid var(--trait); text-decoration: none; font-weight: 500; font-size: 15px; box-shadow: 0 12px 30px -12px rgba(43, 38, 32, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.retour:hover { background: var(--encre); color: var(--papier); }
.appel { position: fixed; z-index: 35; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--encre); color: var(--papier); text-decoration: none; font-weight: 500; box-shadow: 0 18px 40px -14px rgba(43, 38, 32, .6); transform: translateY(160%); transition: transform .6s var(--doux); }
.appel.visible { transform: none; }
.appel svg { width: 20px; height: 20px; fill: currentColor; }
.appel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--rose); animation: onde 2.6s ease-out infinite; }
@keyframes onde { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

@media (max-width: 980px) {
  .nav { display: none; }
  .infos { grid-template-columns: 1fr; }
  .cartes { grid-template-columns: 1fr; gap: 46px; }
  .mariage, .livraisons { grid-template-columns: 1fr; }
  .mariage__images { min-height: 0; aspect-ratio: 1 / 1.1; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .bandeau { font-size: 13px; }
  .entete { top: 34px; padding: 12px 16px; }
  .entete__appel { display: none; }
  .marque { font-size: 21px; }
  .marque img { width: 40px; }
  .actions .bouton { flex: 1 1 100%; }
  .defile__scene { padding: 84px 0 84px; gap: 14px; }
  .defile__piste figcaption { font-size: 18px; }
  .infos__carte { padding: 24px; }
  .appel span { display: none; }
  .appel { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
  .graines { display: none; }
}
