/* ==========================================================================
   SuiteAI — Guide du mariage (je dis Oui), étiquette flottante, documents
   ========================================================================== */

/* ---------- Livre (couverture du guide) ---------- */
.sai-book {
  position: relative; display: block; width: 100%; aspect-ratio: 1086 / 1448;
  transform-style: preserve-3d; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 12px 24px rgba(0,0,0,0.35);
  container-type: inline-size; overflow: hidden; --shine-x: 30%;
}
.sai-book-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sai-book-design {
  position: absolute; top: 13.4%; left: 12.6%; width: 74.1%; height: 74.9%;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #263e55;
}
.sai-book-design img { width: 90%; height: auto; mix-blend-mode: multiply; margin-top: 1%; }
.sai-book-over { font-family: Arial, sans-serif; font-size: 1.76cqw; letter-spacing: 0.08em; color: #927140; text-transform: uppercase; margin-top: 3%; }
.sai-book-title { font-family: Georgia, serif; font-weight: 700; font-size: 7cqw; line-height: 1.08; letter-spacing: -0.02em; margin-top: 3%; }
.sai-book-title em { font-style: normal; color: #6b2736; }
.sai-book-sub { font-family: Georgia, serif; font-style: italic; font-size: 3.2cqw; color: #586674; margin-top: 5%; line-height: 1.35; }
.sai-book-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.55) calc(var(--shine-x) - 8%), rgba(255,255,255,0) calc(var(--shine-x) + 12%), transparent 80%);
}
.sai-book-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05) 60%, rgba(255,255,255,0.15)); pointer-events: none; }

/* ---------- Section Guide ---------- */
.sai-guide { position: relative; overflow: hidden; }
.sai-guide-bg {
  position: absolute; inset: -10% 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 25% 50%, rgba(201,169,110,0.13), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(107,39,54,0.18), transparent 70%);
}
.sai-guide-inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; align-items: center;
}
.sai-guide-visual { position: relative; display: flex; justify-content: center; padding: 2rem 0; }
.sai-guide-book-link { display: block; width: min(360px, 78%); position: relative; z-index: 2; }
.sai-guide-halo {
  position: absolute; z-index: 0; top: 50%; left: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,213,168,0.28) 0%, rgba(201,169,110,0.08) 38%, transparent 66%);
  border-radius: 50%; opacity: 0.6; pointer-events: none;
}
.sai-guide-price {
  position: absolute; z-index: 3; top: 6%; right: 6%;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-light, #E8D5A8), var(--gold, #C9A96E) 55%, var(--gold-dark, #A68B5B));
  color: #1a140b; font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600; line-height: 1;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: rotate(12deg);
}
.sai-guide-price small { font-family: var(--font-body); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.15rem; text-align: center; max-width: 80%; line-height: 1.2; }
.sai-guide-price s { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; opacity: 0.65; margin-top: 0.15rem; }
.sai-guide-price { width: 116px; height: 116px; animation: saiPulse 2.4s ease-in-out infinite; }
@keyframes saiPulse { 0%, 100% { box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 0 rgba(232,213,168,0.45), inset 0 1px 0 rgba(255,255,255,0.5); } 50% { box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 14px rgba(232,213,168,0), inset 0 1px 0 rgba(255,255,255,0.5); } }
.sai-guide-offer {
  display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; border-radius: 14px;
  background: linear-gradient(120deg, rgba(107,39,54,0.35), rgba(201,169,110,0.12)); border: 1px solid rgba(232,213,168,0.35);
}
.sai-guide-offer strong { display: block; font-size: 0.95rem; color: #f5f0e8; font-weight: 600; }
.sai-guide-offer strong b { font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold-light, #E8D5A8); font-weight: 600; margin: 0 0.15rem; }
.sai-guide-offer strong s { color: rgba(245,240,232,0.5); font-size: 0.9rem; }
.sai-guide-offer span { display: block; font-size: 0.76rem; line-height: 1.5; color: rgba(245,240,232,0.65); margin-top: 0.15rem; }
.sai-offer-clock {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(232,213,168,0.15); color: var(--gold-light, #E8D5A8); font-size: 1.1rem; position: relative;
}
.sai-offer-clock::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(232,213,168,0.5); animation: sgPulse 2.2s infinite; }
.sai-doc-promo b { font-family: var(--font-heading); font-size: 1rem; color: var(--gold-light, #E8D5A8); letter-spacing: 0; }
.sai-doc-promo s { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .sai-guide-price, .sai-offer-clock::after { animation: none; } }
.sai-guide-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.75rem; color: #f5f0e8;
  background: rgba(17,16,15,0.85); border: 1px solid rgba(201,169,110,0.35);
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.sai-guide-chip i { color: var(--gold); }
.sai-chip-a { left: 0; bottom: 22%; }
.sai-chip-b { right: 2%; bottom: 8%; }
.sai-guide-text .section-eyebrow { display: block; }
.sai-guide-title { text-align: left; margin: 0.8rem 0 1.2rem; font-size: clamp(2.2rem, 3.6vw, 3.5rem) !important; line-height: 1.08; }
.sai-guide-title em { font-style: italic; color: var(--gold-light, #E8D5A8); }
.sai-guide-lead { font-size: 1rem; line-height: 1.75; color: var(--text-secondary, rgba(245,240,232,0.7)); max-width: 560px; }
.sai-guide-lead strong { color: #f5f0e8; }
.sai-guide-list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.6rem; }
.sai-guide-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.sai-guide-list i {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(201,169,110,0.1); border: 1px solid rgba(201,169,110,0.25); color: var(--gold); font-size: 0.85rem;
}
.sai-guide-list strong { display: block; font-size: 0.9rem; color: #f5f0e8; margin-bottom: 0.2rem; }
.sai-guide-list span { font-size: 0.78rem; line-height: 1.55; color: rgba(245,240,232,0.55); }
.sai-guide-stats { display: flex; gap: 2.4rem; padding: 1.2rem 0; margin-bottom: 1.8rem; border-top: 1px solid rgba(201,169,110,0.15); border-bottom: 1px solid rgba(201,169,110,0.15); }
.sai-guide-stats div { display: flex; flex-direction: column; }
.sai-guide-stats b { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 400; color: var(--gold-light, #E8D5A8); line-height: 1; }
.sai-guide-stats span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,232,0.5); margin-top: 0.35rem; }
.sai-guide-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sai-guide-ctas .hero-btn { min-width: 0; }
.sai-guide-small { margin-top: 1.1rem; font-size: 0.75rem; color: rgba(245,240,232,0.45); }
.sai-guide-small i { margin-right: 0.35rem; color: var(--gold); }
.sai-nav-guide { color: var(--gold-light, #E8D5A8) !important; }

/* ---------- Étiquette flottante ---------- */
#documents.sai-docs-has-badge { position: relative; }
.sai-float-badge {
  position: absolute; z-index: 5; top: 7rem; right: max(4%, calc(50% - 600px));
  width: 170px; height: 170px; display: block; text-decoration: none; cursor: pointer;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5));
}
.sai-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: saiSpin 22s linear infinite; }
.sai-badge-ring text { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; letter-spacing: 3.2px; fill: var(--gold-light, #E8D5A8); }
.sai-float-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,18,15,0.96) 58%, rgba(20,18,15,0.9) 62%, rgba(201,169,110,0.25) 63%, rgba(20,18,15,0.92) 64%);
  border: 1px solid rgba(201,169,110,0.4);
}
.sai-badge-core { position: absolute; top: 50%; left: 50%; width: 64px; transform: translate(-50%, -50%) rotate(-8deg); transition: transform .5s var(--ease-out-expo); }
.sai-float-badge:hover .sai-badge-core { transform: translate(-50%, -50%) rotate(0) scale(1.12); }
.sai-float-badge:hover .sai-badge-ring { animation-duration: 6s; }
.sai-book-sm { border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 16px rgba(0,0,0,0.5); transform: none; }
.sai-badge-new {
  position: absolute; top: 8px; left: -6px; padding: 0.3rem 0.65rem; border-radius: 999px;
  background: #6b2736; color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4); transform: rotate(-12deg);
}
@keyframes saiSpin { to { transform: rotate(360deg); } }

/* ---------- Documents ---------- */
.sai-docs {
  max-width: 1080px; margin: 0 auto; padding: 0 4%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.sai-doc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(201,169,110,0.16);
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: transform .5s var(--ease-out-expo), border-color .4s, box-shadow .5s;
}
.sai-doc:hover { transform: translateY(-6px); border-color: rgba(201,169,110,0.45); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.sai-doc-visual {
  position: relative; display: flex; align-items: center; justify-content: center; height: 230px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,169,110,0.16), transparent 65%), #121110;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.sai-doc-img { position: absolute; inset: 0; }
.sai-doc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.sai-doc:hover .sai-doc-img img { transform: scale(1.06); }
.sai-doc-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.sai-doc-body h3 { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 400; color: #f5f0e8; margin: 0; line-height: 1.2; }
.sai-doc-body p { font-size: 0.85rem; color: rgba(245,240,232,0.6); line-height: 1.6; margin: 0; }
.sai-doc-meta { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,240,232,0.45); }
.sai-doc-meta i { color: var(--gold); margin-right: 0.3rem; }
.sai-doc-tag { align-self: flex-start; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgba(201,169,110,0.35); }
.sai-doc-actions { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; flex-wrap: wrap; }
.sai-doc-actions a { padding: 0.65rem 1.1rem; font-size: 0.7rem; }

/* Carte vedette : sur toute la largeur, visuel à gauche */
.sai-doc.is-featured { grid-column: 1 / -1; flex-direction: row; }
.sai-doc.is-featured .sai-doc-visual { width: 42%; height: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid rgba(201,169,110,0.1); }
.sai-doc.is-featured .sai-doc-body { padding: 2.2rem 2.4rem; justify-content: center; }
.sai-doc.is-featured .sai-doc-body h3 { font-size: 2.1rem; }

/* Carte large (dernière carte seule) et carte guide */
.sai-doc.is-wide { grid-column: 1 / -1; flex-direction: row; }
.sai-doc.is-wide .sai-doc-visual { width: 38%; height: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid rgba(201,169,110,0.1); }
.sai-doc.is-wide .sai-doc-body { justify-content: center; padding: 1.8rem 2rem; }
.sai-doc-guide { border-color: rgba(201,169,110,0.35); background: linear-gradient(160deg, rgba(201,169,110,0.09), rgba(107,39,54,0.08)); }
.sai-doc-guide .sai-doc-visual { background: radial-gradient(ellipse at 50% 60%, rgba(232,213,168,0.25), transparent 65%), #14110d; }
.sai-doc-book { display: block; width: 118px; transition: transform .7s var(--ease-out-expo); }
.sai-doc-guide:hover .sai-doc-book { transform: translateY(-8px) rotate(-3deg) scale(1.05); }
.sai-book-md { border-radius: 3px 7px 7px 3px; }
.sai-doc-tag-new { color: #fff; background: #6b2736; border-color: #6b2736; }

/* Pile de feuilles (aperçu PDF) */
.sai-paper { position: relative; width: 132px; height: 176px; }
.sai-paper span { position: absolute; inset: 0; border-radius: 4px; transition: transform .7s var(--ease-out-expo); }
.sai-paper-back { background: #2a2622; transform: rotate(-7deg) translate(-8px, 4px); }
.sai-paper-mid { background: #3a342d; transform: rotate(4deg) translate(6px, 2px); }
.sai-paper-front {
  background: linear-gradient(160deg, #fbf7ef, #efe6d6); box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  padding: 1rem 0.85rem; display: flex; flex-direction: column; gap: 0.45rem;
}
.sai-paper-front b { align-self: flex-start; font-size: 0.6rem; letter-spacing: 0.1em; color: #fff; background: #b8433b; padding: 0.15rem 0.4rem; border-radius: 3px; }
.sai-paper-front i { display: block; height: 4px; border-radius: 2px; background: rgba(38,62,85,0.15); }
.sai-paper-front i.short { width: 60%; }
.sai-paper-front em { margin-top: auto; font-family: var(--font-heading); font-style: italic; font-size: 0.85rem; line-height: 1.15; color: #6b2736; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sai-doc:hover .sai-paper-back { transform: rotate(-16deg) translate(-26px, 6px); }
.sai-doc:hover .sai-paper-mid { transform: rotate(10deg) translate(24px, 0); }
.sai-doc:hover .sai-paper-front { transform: translateY(-8px) rotate(-1deg); }
.sai-doc.is-featured .sai-paper { width: 170px; height: 226px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sai-guide-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .sai-guide-book-link { width: min(280px, 70%); }
  .sai-guide-title, .sai-guide-text { text-align: center; }
  .sai-guide-lead { margin: 0 auto; }
  .sai-guide-list { text-align: left; }
  .sai-guide-stats, .sai-guide-ctas { justify-content: center; }
  .sai-float-badge { position: relative; top: auto; right: auto; margin: -1rem auto 2rem; }
}
@media (max-width: 680px) {
  .sai-guide-list { grid-template-columns: 1fr; }
  .sai-guide-price { width: 96px; height: 96px; font-size: 1.5rem; right: 4%; }
  .sai-guide-chip { font-size: 0.68rem; padding: 0.5rem 0.8rem; }
  .sai-guide-stats { gap: 1.4rem; }
  .sai-guide-stats b { font-size: 2rem; }
  .sai-guide-ctas .hero-btn { width: 100%; }
  .sai-docs { grid-template-columns: 1fr; }
  .sai-doc.is-featured, .sai-doc.is-wide { flex-direction: column; }
  .sai-doc.is-wide .sai-doc-visual { width: 100%; min-height: 220px; border-right: 0; border-bottom: 1px solid rgba(201,169,110,0.1); }
  .sai-doc.is-featured .sai-doc-visual { width: 100%; min-height: 240px; border-right: 0; border-bottom: 1px solid rgba(201,169,110,0.1); }
  .sai-doc.is-featured .sai-doc-body { padding: 1.5rem 1.4rem; }
  .sai-doc.is-featured .sai-doc-body h3 { font-size: 1.6rem; }
  .sai-float-badge { width: 140px; height: 140px; }
  .sai-badge-core { width: 52px; }
}
@media (prefers-reduced-motion: reduce) { .sai-badge-ring { animation: none; } }
