html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

body.base-body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Playfair Display', serif;
	background-color: #f9f0e1; /* beige clair */
	color: #5b1f1a; /* rouge brun */
	text-align: center;
}
body.rsvp {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body.base-body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("../pictures/logo.png") no-repeat center;
	background-size: 160%;
	opacity: 0.05;
	z-index: -1;
}

body.index-body{
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  background-color: #f9f0e1; /* beige */
  color: #5b1f1a; /* rouge-brun */
  text-align: center;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

header {
	margin-bottom: 20px;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
}

.top-title {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 8vw;
  font-size: 0.9rem;
  text-transform: uppercase;
}

header a, nav a {
	text-decoration: none;
	color: #5b1f1a;
	font-weight: 500;
	z-index:10;
}

.site-footer {
	text-align: center;
	padding: 20px 0;
    margin-top: -60px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer-logo {
  max-width: 150px;     /* taille max du logo */
  height: auto;         /* garde les proportions */
  display: inline-block; /* évite que l'image prenne toute la largeur */
}

.top-crown {
	max-width: 350px;
	margin-bottom: -50px;
}

.wrapper {
	margin-top: -20px;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
}

/* décorations en position absolue */
.decor {
	position: absolute;
	opacity: 1;
}

.bottom-left {
	bottom: 1%;
	left: 1%;
	width: 25%;
	}

.top-right {
	position: absolute;
	top: -2%;
	right: 10%;
	width: 35%;
	transform: scaleX(-1) rotate(310deg);
	transform-origin: center bottom;
	z-index: -1;
	animation: sway-right 4s ease-in-out infinite;
	animation-delay: 1s;
}

.top-right-sec {
	position: absolute;
	top: -18%;
	right: 11%;
	width: 40%;
	transform: scaleX(-1) rotate(220deg);
	transform-origin: center bottom;
	z-index: -2;
	animation: sway-sec 5s ease-in-out infinite;
	animation-delay: 0.5s;
}

.top-right-third {
	position: absolute;
	top: 5%;
	right: 5%;
	width: 25%;
	transform: scaleX(-1) rotate(-20deg);
	transform-origin: center bottom;
	z-index: -3;
	animation: sway-third 4.5s ease-in-out infinite;
	animation-delay: 0s;
}

/* Animations personnalisées qui gardent le transform de base */
@keyframes sway-right {
  0%   { transform: scaleX(-1) rotate(310deg) translateY(0); }
  25%  { transform: scaleX(-1) rotate(312deg) translateY(-2px); }
  50%  { transform: scaleX(-1) rotate(310deg) translateY(0); }
  75%  { transform: scaleX(-1) rotate(308deg) translateY(-1px); }
  100% { transform: scaleX(-1) rotate(310deg) translateY(0); }
}

@keyframes sway-sec {
  0%   { transform: scaleX(-1) rotate(220deg) translateY(0); }
  25%  { transform: scaleX(-1) rotate(222deg) translateY(-2px); }
  50%  { transform: scaleX(-1) rotate(220deg) translateY(0); }
  75%  { transform: scaleX(-1) rotate(218deg) translateY(-1px); }
  100% { transform: scaleX(-1) rotate(220deg) translateY(0); }
}

@keyframes sway-third {
  0%   { transform: scaleX(-1) rotate(-20deg) translateY(0); }
  25%  { transform: scaleX(-1) rotate(-22deg) translateY(-2px); }
  50%  { transform: scaleX(-1) rotate(-20deg) translateY(0); }
  75%  { transform: scaleX(-1) rotate(-18deg) translateY(-1px); }
  100% { transform: scaleX(-1) rotate(-20deg) translateY(0); }
}

/* texte */
.countdown {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.location {
  margin: 3rem 0;
  font-size: 3rem;
  letter-spacing: 4px;
}

/* bouton */
.btn {
  background: #a2563b;
  color: #fff;
  padding: 1.7rem 2.5rem;
  text-decoration: none;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

section.page-section {
	height: 31rem;
}

section.page-header-right {
	font-size: 40px;
	margin-top: -50px;
	margin-bottom: -20px;
	padding: 0px -20px;
	min-height: max(10vh, 80px);
	display: flex;
	flex-direction: row;
	align-items: right;
	justify-content: flex-end;
}

section.page-header-left {
	font-size: 40px;
	margin-top: -50px;
	margin-bottom: -20px;
	padding: 0px 20px;
	min-height: max(10vh, 80px);
	display: flex;
	flex-direction: row;
	align-items: left;
}

@font-face {
	font-family: 'TitleFont';
	src: url('../fonts/HelloParisSerifBold.ttf') format('truetype');
	font-weight: normal; /* Ajoutez cette ligne */
	font-style: normal;  /* Et celle-ci */
	font-display: swap;  /* Améliore le chargement */
}

h2.h2-left {
	font-size: auto;
	text-align: left;
	margin-bottom: 20px;
	margin-left: 5vw;
	position: relative;
	font-family: 'TitleFont';
	font-weight:400;
	z-index: 5;
	padding-left: 20px;
}

.pool-party{
letter-spacing: -3px;
}

h2.h2-right {
	font-size: auto;
	text-align: right;
	margin-bottom: 20px;
	margin-right: 8vw;
	position: relative;
	font-family: 'TitleFont';
	font-weight:400;
	z-index: 5;
	padding-right: 20px;
	padding-left: 12px;
}

.page-header-rings{
	max-width: 100px;
	padding-top: 35px;
	margin-left: 20px;
}

.page-header-cocktail {
	max-width: 80px;
	padding-top: 30px;
	margin-right: 20px;
}

.page-header-palms {
	max-width: 60px;
	margin-top: 15px;
	margin-left: 20px;
}

.page-header-hotel {
	max-width: 80px;
	padding-top: 30px;
	margin-right: 20px;
}

@keyframes fade-in {
  0% {
    opacity: 0.0;
    transform: scale(0.95) translateY(5px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(var(--offset-y, 0px)) rotate(var(--angle));
  }
}


.photos-stack {
	position: relative;
	margin: 25px 0;
}

.married{
margin-left: 45px;
}

.photo-retros {
	width: 180px;
	border: 10px solid #fff;
	border-bottom : 40px solid #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: scale(0.95);
	border-radius: 4px;
	animation: fade-in 1.5s ease forwards;
}

.photo-left {
  --angle: -5deg;
  --offset-y: 0px;
	margin-right: -40px;
	animation-delay: 0.3s;
	z-index: 1;
}

.photo-right {
  --angle: 6deg;
  --offset-y: 15px;
	transform:translateY(50px);
	animation-delay: 0.4s;
	z-index: 2;
}

.photo:hover {
	transform: scale(1.03);
	z-index: 3;
}

@font-face {
  font-family: 'TextFont';
  src: url('../fonts/SwankyandMooMoo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.page-section p {
	font-family: 'TextFont', cursive;
	font-size: 1.2rem;
	line-height: 0.2;
}

p.pmain {
	font-size: 1.5rem;
}

p a {
  color: inherit;
  text-decoration: none;
}

form {
	font-family: 'TextFont', cursive;
	font-size: 1.6rem;
	line-height: 0.2;
	max-width: 400px;
    margin: 0px auto;
    padding: 24px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1px; /* espace vertical entre les champs */
}

label {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
}

.error, .notif-success{
  color: #a2563b;
  font-size: 1.2rem;
  margin-bottom: 20px;
  margin-top: -5px;
  line-height: 1.2;
  list-style: none;
  padding-left: 0;
}

button, input[type="submit"] {
    border: 1.5px solid #d3bfa6;
    border-radius: 15px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1em;
    color: #d3bfa6;
    background: #fdf6e3;
    transition: background 0.2s;
}

input[type="checkbox"] {
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 30px;
    width: auto;
    display: inline-block;
    accent-color: #a2563b;
}

button:hover, input[type="submit"]:hover {
    background: #5b1f1a;
    border: 1.5px solid #5b1f1a;
    color: #fdf6e3;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1.5px solid #d3bfa6;
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'TextFont';
    background: #fdf6e3;
    color: #5b1f1a;
    resize: vertical;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border 0.2s;
}

textarea:focus {
    border-color: #a2563b;
    outline: none;
}

div input, textarea {
	width: 100%;            /* prend toute la largeur du parent */
	max-width: 100%;        /* empêche de dépasser */
	box-sizing: border-box;
	max-height: 50px;
}

.link-icon i {
	size:10px;
}

h1 {
	font-family: 'TitleFont';
}

h1 span {
	display: block;
	font-weight: 400;
	margin: 0.5rem 0;
	font-family: 'TitleFont';
}
.fall-title {
	display: flex;
	flex-direction: column; /* empile les mots verticalement */
	align-items: center;
	color: #5b1f1a;
	gap: 8px;
	text-align: center;
	overflow: visible;
}

/* Animation d’apparition */
.fall-title .word {
	opacity: 0;
	transform: translateY(-40px);
	animation: fallIn 0.8s ease-out forwards;
	transform-origin: center top;
	padding-inline: 0.1em; /* ajoute une petite marge des deux côtés */
}

/* Délai d’apparition progressif */
.fall-title .word:nth-child(1) {
  animation-delay: 0.2s;
}
.fall-title .word:nth-child(2) {
  animation-delay: 0.5s;
}
.fall-title .word:nth-child(3) {
  animation-delay: 0.8s;
}

/* Styles spécifiques */
.fall-title .big {
  font-size: 14rem; /* plus grand pour Leanna et Hugo */
}

.fall-title .big::first-letter {
  margin-right: 0.15em; /* espace après le L */
}


.fall-title .amp {
  font-size: 5rem;
}

/* Animation de chute */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  80% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
