:root {
  --teal: #007080;
  --teal-dark: #005a66;
  --gold: #C9A227;
  --gold-light: #E8D48B;
  --gold-dark: #9A7B0A;
  --primary: #007080;
  --accent: #E8D48B;
  --blue: #1a3d7c;
  --dark: #1a1a1a;
  --text: #2d2d2d;
  --bg: #faf9f6;
  --card-bg: rgba(255, 255, 255, 0.12);
  --info-bg: rgba(255, 252, 247, 0.96);
  --info-bg-end: rgba(245, 237, 225, 0.94);
  --brown-warm: #5d3a1a;
  --cyan-accent: #00a8c5;
  --bs-primary: #007080;
  --bs-primary-rgb: 0, 112, 128;
  --carousel-aspect: 1026 / 1280;
}
* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* Animation de chargement */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, rgba(0,112,128,0.94), rgba(201,162,39,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  pointer-events: auto;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading {
  overflow: hidden;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loader-ring {
  width: 120px;
  height: 120px;
  animation: loaderRotate 2s linear infinite, loaderPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.loader-text {
  color: #fff;
  font-family: 'Freestyle Script', cursive;
  font-size: 28px;
  letter-spacing: 2px;
  animation: loaderFade 1.5s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@keyframes loaderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}
@keyframes loaderFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
body,
body.page-bg {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: #4a3020;
  background-image: url('../img/fond-couple.png');
  background-repeat: no-repeat;
  background-position: center 28%;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::-webkit-scrollbar {
  width: 0;
  display: none;
}
@media (max-width: 768px) {
  body.page-bg {
    background-attachment: scroll;
    background-position: center 22%;
    background-size: cover;
  }
}
@media (min-aspect-ratio: 16/10) {
  body.page-bg {
    background-size: auto 100%;
    background-position: center center;
  }
}
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(74, 48, 32, 0.55) 0%,
      rgba(255, 255, 255, 0.35) 22%,
      rgba(255, 255, 255, 0.35) 78%,
      rgba(74, 48, 32, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.65) 100%
    );
}
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0 1rem;
}
.invitation-container {
  width: min(80%, 720px);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding-left: env(safe-area-inset-left, 0.5rem);
  padding-right: env(safe-area-inset-right, 0.5rem);
}
.invitation-card {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  border: none;
  animation: floatIn 800ms ease-out both;
  padding: 0.4rem;
}
.invitation-info {
  position: relative;
  background:
    linear-gradient(
      165deg,
      rgba(255, 252, 247, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 45%,
      rgba(245, 237, 225, 0.97) 100%
    );
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(201, 162, 39, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.invitation-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--cyan-accent), var(--gold));
  z-index: 1;
  pointer-events: none;
}
.invitation-section {
  padding: 1rem 1.15rem;
}
.invitation-info .invitation-section + .invitation-section {
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}
.invitation-header {
  padding-top: 1.25rem;
}
.invitation-header .quote-section {
  margin-bottom: 1rem;
}
.invitation-header .families-section {
  margin: 0.75rem 0;
}
.invitation-header .names {
  margin: 0.75rem 0;
}
.gallery-section {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 197, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}
.border-gold {
  border-color: rgba(201, 162, 39, 0.35) !important;
}
.border-gold-subtle {
  border-color: rgba(201, 162, 39, 0.2) !important;
}
.btn-primary {
  --bs-btn-bg: var(--teal);
  --bs-btn-border-color: var(--teal);
  --bs-btn-hover-bg: var(--teal-dark);
  --bs-btn-hover-border-color: var(--teal-dark);
  --bs-btn-active-bg: var(--teal-dark);
  --bs-btn-active-border-color: var(--teal-dark);
}
/* Cadre décoratif autour de la carte */
.frame {
  position: absolute;
  inset: -40px;
  border: 3px solid transparent;
  border-radius: 24px;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, rgba(201,162,39,0.5), rgba(232,212,139,0.35), rgba(201,162,39,0.5)) border-box;
  pointer-events: none;
  z-index: 0;
  animation: frameGlow 3s ease-in-out infinite;
}
.frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(196,160,119,0.2);
  border-radius: 28px;
  animation: framePulse 4s ease-in-out infinite;
}
/* Coins décoratifs du cadre */
.corner-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: -1;
}
.corner-decoration.top-left {
  top: -30px;
  left: -30px;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  border-radius: 50%;
  animation: cornerFloat 6s ease-in-out infinite;
}
.corner-decoration.top-right {
  top: -30px;
  right: -30px;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  border-radius: 50%;
  animation: cornerFloat 6s ease-in-out infinite 1.5s;
}
.corner-decoration.bottom-left {
  bottom: -30px;
  left: -30px;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  border-radius: 50%;
  animation: cornerFloat 6s ease-in-out infinite 3s;
}
.corner-decoration.bottom-right {
  bottom: -30px;
  right: -30px;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 70%);
  border-radius: 50%;
  animation: cornerFloat 6s ease-in-out infinite 4.5s;
}
.invitation-card::before, .invitation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166,124,82,0.25);
  border-radius: 14px;
  pointer-events: none;
  will-change: transform;
}
.invitation-card::before {
  transform: translate(10px, 10px);
  opacity: 0.35;
}
.invitation-card::after {
  transform: translate(20px, 20px);
  opacity: 0.18;
}
.monogram {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Freestyle Script', cursive;
  font-size: 48px;
  letter-spacing: 1px;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.5),
              0 12px 40px rgba(166,124,82,0.25);
  position: relative;
  overflow: hidden;
  animation: pulse 2.2s ease-in-out infinite;
  z-index: 1;
  font-weight: normal;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.monogram::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate 4s linear infinite;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
}
h1 {
  text-align: center;
  margin: 0 0 12px;
  font-family: 'Freestyle Script', cursive;
  font-size: 56px;
  color: var(--dark);
  letter-spacing: 2px;
  animation: fadeUp 900ms ease-out both;
  font-weight: normal;
  text-shadow: 0 2px 12px rgba(0,0,0,0.08);
  line-height: 1.2;
}
h2 {
  margin: 12px 0 32px;
  text-align: center;
  font-weight: normal;
}
/* Styles pour index2.html - Sections du PDF */
.quote-section {
  margin: 0;
  padding: 0.85rem 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  border: 1px solid rgba(0, 168, 197, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  font-style: italic;
  color: var(--dark);
  line-height: 1.55;
  margin: 0;
}
.invocation {
  margin: 10px 0;
  text-align: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  animation: fadeUp 1s ease-out both 100ms;
}
.arabic-text {
  font-family: 'Arial', sans-serif;
  font-size: 18px;
  color: var(--primary);
  margin: 8px 0;
  direction: rtl;
  text-align: center;
  font-weight: 500;
}
.translation {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  margin: 4px 0;
  font-style: italic;
}
.families-section {
  margin: 32px 0;
  text-align: center;
  animation: fadeUp 1s ease-out both 140ms;
}
.family-group {
  margin: 20px 0;
}
.family-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.family-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  letter-spacing: 2px;
}
.separator-large {
  font-family: 'Freestyle Script', cursive;
  font-size: 48px;
  color: var(--accent);
  margin: 16px 0;
  text-align: center;
  opacity: 0.8;
}
.invitation-message {
  margin: 10px 0 40px;
  text-align: center;
  padding: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--dark);
  line-height: 1.8;
  animation: fadeUp 1s ease-out both 160ms;
}
.invitation-message p {
  margin: 0;
}
h2 {
  margin: 12px 0 32px;
  text-align: center;
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: none;
  color: var(--primary);
  font-size: 24px;
  font-family: 'Freestyle Script', cursive;
  opacity: 0.9;
}
.names {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
}
.rings-showcase {
  position: relative;
  width: clamp(88px, 18vw, 120px);
  height: clamp(88px, 18vw, 120px);
  margin: 0.65rem auto 0.85rem;
  display: grid;
  place-items: center;
}
.rings-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.45) 0%, rgba(232, 212, 139, 0.15) 45%, transparent 72%);
  animation: ringGlowPulse 2.8s ease-in-out infinite;
  z-index: 0;
}
.rings-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--gold-light) 40%, transparent 100%);
  opacity: 0;
  z-index: 3;
  animation: ringSparkle 3s ease-in-out infinite;
}
.rings-sparkle--left {
  top: 18%;
  left: 8%;
  animation-delay: 0.4s;
}
.rings-sparkle--right {
  bottom: 22%;
  right: 6%;
  animation-delay: 1.6s;
}
.names .rings {
  position: relative;
  z-index: 2;
  width: clamp(72px, 15vw, 96px);
  height: auto;
  margin: 0;
  pointer-events: none;
  animation: ringFloat 3.5s ease-in-out infinite, ringShimmer 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(201, 162, 39, 0.5));
  transform-origin: center center;
}
@keyframes ringFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes ringShimmer {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(201, 162, 39, 0.45)) brightness(1); }
  50% { filter: drop-shadow(0 8px 20px rgba(232, 212, 139, 0.75)) brightness(1.08); }
}
@keyframes ringGlowPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes ringSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  45%, 55% { opacity: 1; transform: scale(1.2); }
}
.names::before,
.names::after {
  content: "✦";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 14px;
  opacity: 0.35;
}
.names::before {
  top: -8px;
}
.names::after {
  bottom: -8px;
}
.names .name-groom,
.names .name-bride {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
  line-height: 1.3;
  animation: fadeUp 1s ease-out both;
}
.name-groom {
  animation-delay: 0.1s;
  background: linear-gradient(180deg, #E8D48B 0%, #C9A227 45%, #9A7B0A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-stroke: 0.5px rgba(154, 123, 10, 0.35);
}
.name-bride {
  animation-delay: 0.2s;
  color: var(--dark) !important;
}
.separator {
  text-align: center;
  letter-spacing: 12px;
  color: rgba(201, 162, 39, 0.55);
  font-size: 18px;
  font-family: 'Freestyle Script', cursive;
  margin: 8px 0;
  position: relative;
}
.separator::before,
.separator::after {
  content: "✿";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 14px;
  opacity: 0.6;
}
.separator::before {
  left: 20%;
}
.separator::after {
  right: 20%;
}
.details {
  text-align: center;
  margin: 0;
  line-height: 1.65;
  font-size: 1.15rem;
  color: var(--dark);
  font-family: 'Freestyle Script', cursive;
}
.date {
  margin: 0.5rem auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.1);
}
.cta {
  text-align: center;
  margin-top: 26px;
}
.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(166,124,82,0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
  animation: buttonGlow 3s ease-in-out infinite;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.cta a:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(166,124,82,0.3);
}
.cta a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.cta a:hover::before {
  transform: translateX(100%);
}
.cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(166,124,82,0.32); }
.program {
  margin: 0;
  padding-top: 0;
  border-top: none;
}
.program h3,
.program-title {
  margin: 0 auto 1rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), #0099a8);
  padding: 12px 36px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(0, 112, 128, 0.35);
}
.program-intro {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.5;
}
.program-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.program-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}
.program-card-head {
  margin-bottom: 0.5rem;
}
.program-day {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.program-day-reception {
  color: var(--blue);
  background: rgba(26, 61, 124, 0.1);
}
.program-event {
  margin: 0;
  font-family: 'Freestyle Script', cursive;
  font-size: 1.75rem;
  font-weight: normal;
  color: var(--teal-dark);
  line-height: 1.2;
}
.program-event-reception {
  color: var(--blue);
}
.program-time {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--dark);
}
.program-place {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
}
.program-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.program-actions .icon-btn {
  min-width: 44px;
  min-height: 44px;
}
/* Info-bulle pour les localisations */
.info-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: -8px 0 20px;
  padding: 10px 16px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  border: 1px solid rgba(201, 162, 39, 0.15);
}
.info-bubble svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}
.info-bubble span {
  flex: 1;
  text-align: center;
}
.program-list .program-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.program-list .program-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.program-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.program-content {
  flex: 1;
  min-width: 0;
}
.program-item {
  list-style: none;
  animation: fadeUp 900ms ease-out both;
  transition: background 200ms ease;
  border-radius: 8px;
}
.program-item:hover {
  transform: translateX(4px);
  background: rgba(201, 162, 39, 0.05);
}
.event-type {
  font-family: 'Freestyle Script', cursive;
  font-size: 1.35em;
  font-weight: normal;
  color: var(--gold-dark);
  letter-spacing: 0;
  text-transform: none;
}
.event-reception {
  color: var(--blue);
}
.reception-item .text .label {
  color: var(--text);
}
.program-item .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.program-item:nth-child(1) { animation-delay: 0.1s; }
.program-item:nth-child(2) { animation-delay: 0.2s; }
.program-item:nth-child(3) { animation-delay: 0.3s; }
.program-item:last-child { border-bottom: none; }
.icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(232,212,139,0.18));
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  animation: iconFloat 3s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.icon svg {
  width: 28px;
  height: 28px;
}
.icon:hover {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(166,124,82,0.2), rgba(196,160,119,0.25));
}
/* Styles spécifiques pour les icônes d'événements */
.mosque-icon {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.15), rgba(50, 205, 50, 0.12));
  color: #228B22;
  animation: iconFloat 3s ease-in-out infinite, mosqueGlow 2s ease-in-out infinite;
}
.mosque-icon:hover {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.25), rgba(50, 205, 50, 0.2));
  transform: scale(1.15) rotate(-3deg);
}
.reception-icon {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 165, 0, 0.12));
  color: #FF8C00;
  animation: iconFloat 3s ease-in-out infinite 0.5s, receptionPulse 2.5s ease-in-out infinite;
}
.reception-icon:hover {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.25), rgba(255, 165, 0, 0.2));
  transform: scale(1.15) rotate(3deg);
}
.dance-icon {
  background: linear-gradient(135deg, rgba(186, 85, 211, 0.15), rgba(221, 160, 221, 0.12));
  color: #BA55D3;
  animation: iconFloat 3s ease-in-out infinite 1s, danceShake 2s ease-in-out infinite;
}
.dance-icon:hover {
  background: linear-gradient(135deg, rgba(186, 85, 211, 0.25), rgba(221, 160, 221, 0.2));
  transform: scale(1.15) rotate(-5deg);
}
/* Styles pour les items de programme */
.mosque-item {
  border-left: 3px solid rgba(34, 139, 34, 0.3);
}
.mosque-item:hover {
  background: rgba(34, 139, 34, 0.05);
  border-left-color: rgba(34, 139, 34, 0.6);
}
.reception-item {
  border-left: 3px solid rgba(255, 140, 0, 0.3);
}
.reception-item:hover {
  background: rgba(255, 140, 0, 0.05);
  border-left-color: rgba(255, 140, 0, 0.6);
}
.dance-item {
  border-left: 3px solid rgba(186, 85, 211, 0.3);
}
.dance-item:hover {
  background: rgba(186, 85, 211, 0.05);
  border-left-color: rgba(186, 85, 211, 0.6);
}
/* Animations spécifiques */
@keyframes mosqueGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 139, 34, 0.3); }
  50% { box-shadow: 0 0 16px rgba(34, 139, 34, 0.5); }
}
@keyframes receptionPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes danceShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}
.program-item:nth-child(1) .icon { animation-delay: 0s; }
.program-item:nth-child(2) .icon { animation-delay: 1s; }
.program-item:nth-child(3) .icon { animation-delay: 2s; }
.icon svg { width: 26px; height: 26px; }
.text .label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
}
.text .time {
  color: rgba(0,0,0,0.68);
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.infoline {
  text-align: center;
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.infoline a {
  color: var(--primary);
  text-decoration: none;
}
.infoline a:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: transform 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.16); }
.icon-btn:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(0,0,0,0.14); }
.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Réduire la taille du logo Yango dans les boutons */
.icon-btn img[src="img/yango.png"],
.icon-btn img[src="../img/yango.png"] {
  width: 60%;
  height: 60%;
  object-fit: contain;
  margin: auto;
}
/* Augmenter la taille de l'image Maps dans les boutons */
.icon-btn img[src="img/maps.jpg"],
.icon-btn img[src="../img/maps.jpg"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* .rings : styles définis dans .names .rings et .rings-showcase */
.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(255, 215, 128, 0.18), transparent 40%),
              radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.15), transparent 30%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
/* Effet de brillance animé */
.shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: 18px;
  opacity: 0.6;
}
footer {
  text-align: center;
  margin-top: 34px;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}
/* Boutons de contact */
.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
}
.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128C7E, #25D366);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}
.whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}
.call-btn:hover {
  transform: translateY(-2px);
}
/* Crédit du footer */
.footer-credit {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}
.footer-credit p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}
.credit-name {
  font-weight: 600;
  color: var(--primary);
  font-style: italic;
}
@keyframes floatIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 0 0 8px rgba(255,255,255,0.5), 0 0 20px rgba(166,124,82,0.3); transform: scale(1); }
  50% { box-shadow: inset 0 0 0 10px rgba(255,255,255,0.35), 0 0 30px rgba(166,124,82,0.4); transform: scale(1.02); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-15px, -50px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.5; }
}
@keyframes frameGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(196,160,119,0.2), 0 0 60px rgba(166,124,82,0.1); }
  50% { box-shadow: 0 0 40px rgba(196,160,119,0.3), 0 0 80px rgba(166,124,82,0.15); }
}
@keyframes framePulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.02); }
}
@keyframes cornerFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  33% { transform: translate(5px, -8px) rotate(5deg); opacity: 0.5; }
  66% { transform: translate(-5px, -12px) rotate(-5deg); opacity: 0.4; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes ringRotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes buttonGlow {
  0%, 100% { box-shadow: 0 10px 25px rgba(166,124,82,0.35); }
  50% { box-shadow: 0 10px 30px rgba(166,124,82,0.45), 0 0 20px rgba(196,160,119,0.3); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
/* Optimisations pour mobile */
@media (max-width: 768px) {
  .page-wrapper {
    align-items: flex-start;
    padding: 0.5rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  }
  .invitation-container {
    width: 94%;
    max-width: 94%;
    padding-left: 0;
    padding-right: 0;
  }
  .loader-ring {
    width: 100px;
    height: 100px;
  }
  .loader-text {
    font-size: 24px;
  }
  body.page-bg {
    background-color: #4a3020;
    background-image: url('../img/fond-couple.png');
    background-position: center 22%;
    background-size: cover;
    background-attachment: scroll;
    padding: 0;
  }
  .page-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.72) 100%);
  }
  .invitation-card {
    width: 100%;
    padding: 0.25rem;
    border-radius: 14px;
    margin: 0;
  }
  .invitation-section {
    padding: 0.9rem 1rem;
  }
  .invitation-header {
    padding-top: 1rem;
  }
  .quote-text {
    font-size: 0.82rem;
  }
  .names .name-groom,
  .names .name-bride {
    font-size: 1.35rem !important;
  }
  .program-title {
    font-size: 12px;
    padding: 10px 28px;
    letter-spacing: 2px;
  }
  .program-card {
    padding: 0.9rem 1rem;
  }
  .program-event {
    font-size: 1.55rem;
  }
  .contact-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .photo-carousel {
    --carousel-height: clamp(220px, 52vh, 520px);
  }
  .gallery-section {
    margin: 0.35rem 0.25rem 0.25rem;
    padding: 0.75rem 0.85rem 1rem;
  }
  .frame {
    inset: -20px;
    border-width: 2px;
    border-radius: 18px;
  }
  .frame::before {
    inset: -12px;
    border-width: 1.5px;
    border-radius: 20px;
  }
  .corner-decoration {
    width: 40px;
    height: 40px;
  }
  .corner-decoration.top-left {
    top: -20px;
    left: -20px;
  }
  .corner-decoration.top-right {
    top: -20px;
    right: -20px;
  }
  .corner-decoration.bottom-left {
    bottom: -20px;
    left: -20px;
  }
  .corner-decoration.bottom-right {
    bottom: -20px;
    right: -20px;
  }
  .monogram {
    width: 120px;
    height: 120px;
    font-size: 40px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 42px;
    margin-bottom: 8px;
  }
  h2 {
    font-size: 20px;
    margin: 8px 0 28px;
    letter-spacing: 2px;
  }
  .names {
    margin: 32px 0 36px;
    gap: 12px;
  }
  .names span {
    font-size: 34px;
    letter-spacing: 0.8px;
  }
  .separator {
    font-size: 16px;
    letter-spacing: 8px;
  }
  .details {
    font-size: 14px;
    line-height: 1.7;
    margin: 24px 0 22px;
  }
  .date {
    margin: 32px auto 36px;
    padding: 14px 24px;
    font-size: 22px;
    border-radius: 12px;
    margin: 24px auto;
  }
  .date::before,
  .date::after {
    font-size: 14px;
  }
  .cta {
    margin-top: 22px;
  }
  .cta a {
    padding: 14px 28px;
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .program {
    margin-top: 36px;
    padding-top: 28px;
  }
  .program h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .info-bubble {
    font-size: 11px;
    padding: 8px 12px;
    margin: -6px 0 16px;
  }
  .info-bubble svg {
    width: 14px;
    height: 14px;
  }
  .quote-section {
    margin: 20px 0 32px;
    padding: 16px;
  }
  .quote-text {
    font-size: 14px;
  }
  .invocation {
    margin: 32px 0;
    padding: 14px;
  }
  .arabic-text {
    font-size: 16px;
  }
  .translation {
    font-size: 12px;
  }
  .family-name {
    font-size: 20px;
  }
  .separator-large {
    font-size: 40px;
  }
  .invitation-message {
    margin: 36px 0 32px;
    font-size: 16px;
    padding: 14px;
  }
  .program-item {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 12px 0;
    align-items: start;
  }
  .program-item .icon {
    margin-top: 2px;
  }
  .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .icon svg {
    width: 24px;
    height: 24px;
  }
  .mosque-icon,
  .reception-icon,
  .dance-icon {
    width: 48px;
    height: 48px;
  }
  .text .label {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 3px;
  }
  .text .time {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .actions {
    gap: 8px;
    margin-top: 6px;
  }
  .icon-btn {
    width: 130px;
    height: 38px;
    border-radius: 8px;
    min-height: 60px;
  }
  .rings-showcase {
    width: 80px;
    height: 80px;
  }
  .names .rings {
    width: 68px;
  }
  footer {
    font-size: 12px;
    margin-top: 28px;
    line-height: 1.6;
  }
  .contact-buttons {
    gap: 10px;
    margin-top: 20px;
  }
  .contact-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .contact-btn svg {
    width: 18px;
    height: 18px;
  }
  .footer-credit {
    margin-top: 28px;
    padding-top: 20px;
  }
  .footer-credit p {
    font-size: 10px;
  }
  .particle {
    width: 3px;
    height: 3px;
  }
}
@media (max-width: 480px) {
  .loader-ring {
    width: 80px;
    height: 80px;
  }
  .loader-text {
    font-size: 20px;
  }
  body {
    padding: 8px;
  }
  .invitation-card {
    padding: 32px 20px 38px;
    border-radius: 14px;
  }
  .frame {
    inset: -16px;
    border-radius: 16px;
  }
  .monogram {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 18px;
  }
  .names span {
    font-size: 28px;
  }
  .separator {
    font-size: 14px;
  }
  .details {
    font-size: 13px;
  }
  .date {
    padding: 12px 20px;
    font-size: 20px;
  }
  .date::before,
  .date::after {
    font-size: 12px;
  }
  .program-item {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
  .icon {
    width: 40px;
    height: 40px;
  }
  .icon svg {
    width: 20px;
    height: 20px;
  }
  .text .label {
    font-size: 14px;
  }
  .actions {
    flex-direction: column;
    width: 100%;
  }
  .icon-btn {
    /* width: 100%; */
    height: 40px;
  }
  .rings-showcase {
    width: 72px;
    height: 72px;
  }
  .names .rings {
    width: 60px;
  }
  .contact-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  .footer-credit {
    margin-top: 24px;
    padding-top: 18px;
  }
  .footer-credit p {
    font-size: 9px;
  }
  .info-bubble {
    font-size: 10px;
    padding: 6px 10px;
    margin: -4px 0 14px;
  }
  .info-bubble svg {
    width: 12px;
    height: 12px;
  }
  .quote-section {
    margin: 16px 0 28px;
    padding: 12px;
  }
  .quote-text {
    font-size: 13px;
  }
  .invocation {
    margin: 28px 0;
    padding: 12px;
  }
  .arabic-text {
    font-size: 14px;
  }
  .translation {
    font-size: 11px;
  }
  .family-name {
    font-size: 18px;
  }
  .separator-large {
    font-size: 36px;
  }
  .invitation-message {
    margin: 28px 0 32px;
    font-size: 14px;
    padding: 12px;
  }
}
@media (max-width: 360px) {
  .invitation-card {
    padding: 28px 16px 34px;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 16px;
  }
  .names span {
    font-size: 26px;
  }
  .separator {
    font-size: 12px;
  }
  .monogram {
    width: 90px;
    height: 90px;
    font-size: 32px;
  }
  .date {
    font-size: 18px;
    padding: 10px 16px;
  }
  .contact-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  .contact-btn svg {
    width: 16px;
    height: 16px;
  }
}
/* Section galerie — carrousel (ratio plus grande image : 1026×1280) */
.gallery-title {
  margin: 0 auto 0.75rem;
  text-align: center;
  font-family: 'Freestyle Script', cursive;
  font-size: 1.65rem;
  font-weight: normal;
  color: var(--teal);
  line-height: 1.2;
}
.photo-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  --carousel-height: clamp(360px, 82vh, 960px);
}
.photo-carousel .carousel-inner {
  width: 100%;
  height: var(--carousel-height);
  border: 2px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  background: #2a2a2a;
}
.photo-carousel .carousel-item {
  height: var(--carousel-height);
  background: #2a2a2a;
}
.photo-carousel .carousel-item img {
  width: 100%;
  height: var(--carousel-height);
  object-fit: contain;
  object-position: center center;
  display: block;
}
.photo-carousel-indicators {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 3;
}
.photo-carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(0, 112, 128, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.55);
  opacity: 1;
}
.photo-carousel-indicators .active {
  background-color: var(--gold);
}
.photo-carousel-control {
  width: 10%;
  opacity: 0.9;
}
.photo-carousel-control .carousel-control-prev-icon,
.photo-carousel-control .carousel-control-next-icon {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}
@media (max-width: 768px) {
  .photo-carousel {
    --carousel-height: clamp(280px, 68vh, 720px);
  }
}
@media (max-width: 480px) {
  .invitation-section {
    padding: 0.85rem 1rem;
  }
  .photo-carousel {
    --carousel-height: clamp(240px, 55vh, 560px);
  }
  .gallery-title {
    font-size: 1.45rem;
  }
}
@media (min-height: 700px) and (max-width: 576px) {
  .page-wrapper {
    align-items: flex-start;
    padding-top: 0.5rem;
  }
}
/* Optimisation des animations sur mobile */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Amélioration du touch sur mobile */
@media (hover: none) and (pointer: coarse) {
  .cta a,
  .icon-btn,
  .program-item {
    -webkit-tap-highlight-color: rgba(201,162,39,0.2);
  }
  .program-item:active {
    transform: translateX(2px);
    background: rgba(201,162,39,0.05);
  }
  .cta a:active {
    transform: translateY(0);
  }
  .icon-btn:active {
    transform: translateY(0);
  }
}
/* Styles pour l'impression PDF */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body {
    background: white !important;
    padding: 0 !important;
  }
  .loader,
  .particles {
    display: none !important;
  }
  .invitation-card {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 20px !important;
  }
  a {
    color: inherit !important;
    text-decoration: underline !important;
  }
  .icon-btn,
  .contact-btn {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  @page {
    margin: 0.5cm;
    size: A4;
  }
}

