* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #243047;
  background: #fff7fb;
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      rgba(36, 30, 34, 0.30),
      rgba(36, 30, 34, 0.38)
    ),
    url("/images/mariage/mariage-background.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(36, 48, 71, 0.3);
}

.nav a:hover,
.nav a:focus {
  text-decoration: underline;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.2em 0;
  font-weight: normal;
  text-shadow: 0 4px 20px rgba(36, 48, 71, 0.25);
}

.date {
  font-size: 1.9rem;
  margin: 0.5rem 0 1rem;
}

.intro {
  max-width: 600px;
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.4rem;
  background: #ffffff;
  color: #4f6f9f;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 12px 25px rgba(36, 48, 71, 0.18);
}

.button:hover,
.button:focus {
  background: #eef7ff;
}

.button.secondary {
  background: #4f6f9f;
  color: #fff;
}

.button.secondary:hover,
.button.secondary:focus {
  background: #3f5f8f;
}

.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section.alt {
  max-width: none;
  background:
    radial-gradient(circle at top left, #ffe0ee, transparent 30%),
    radial-gradient(circle at bottom right, #dcefff, transparent 30%),
    #f3f8ff;
}

.section.alt > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  margin-bottom: 2rem;
  color: #4f6f9f;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(79, 111, 159, 0.12);
  border: 1px solid #f5d7e5;
}

.card h3 {
  margin-top: 0.5rem;
  color: #c05b8f;
}

.time {
  display: inline-block;
  color: #4f6f9f;
  font-weight: bold;
  font-size: 1.1rem;
}

.address,
.contact {
  font-size: 1.2rem;
  font-weight: bold;
  color: #c05b8f;
}

.form {
  display: grid;
  gap: 1rem;
  text-align: left;
  max-width: 520px;
  margin: 2rem auto 0;
}

.form label {
  font-weight: bold;
  color: #4f6f9f;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #d8e9ff;
  border-radius: 0.8rem;
  font: inherit;
  background: #fff;
}

.form button {
  padding: 1rem;
  border: none;
  border-radius: 999px;
  background: #d978a9;
  color: #fff;
  font: inherit;
  font-weight: bold;
}

.footer {
  text-align: center;
  padding: 2rem;
  background: #243047;
  color: #fff;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1rem;
  }
}

/* =========================================================
   Section Participer
   ========================================================= */

.participation-page {
    width: min(calc(100% - 2rem), 980px);
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.participation-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.participation-breadcrumb a {
    color: inherit;
}

.participation-header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.participation-header h1,
.participation-detail h1 {
    margin: 0.25rem 0 1rem;
}

.participation-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.participation-introduction,
.participation-detail__description {
    font-size: 1.08rem;
    line-height: 1.7;
}

.participation-tree {
    display: grid;
    gap: 1.5rem;
}

.participation-branch {
    padding: 1.5rem;
    border: 1px solid rgba(90, 63, 52, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 35px rgba(70, 45, 35, 0.07);
}

.participation-branch__heading {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.participation-branch__heading h2 {
    margin: 0;
    font-size: 1.3rem;
}

.participation-branch__icon {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(166, 117, 98, 0.12);
    font-size: 1.2rem;
}

.participation-links {
    display: grid;
    gap: 0.75rem;
}

.participation-link {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(90, 63, 52, 0.12);
    border-radius: 14px;
    color: inherit;
    background: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.participation-link:hover,
.participation-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(90, 63, 52, 0.3);
    box-shadow: 0 10px 24px rgba(70, 45, 35, 0.09);
}

.participation-link strong,
.participation-link small {
    display: block;
}

.participation-link small {
    margin-top: 0.25rem;
    line-height: 1.45;
    opacity: 0.75;
}

.participation-link__icon {
    font-size: 1.9rem;
    text-align: center;
}

.participation-link__arrow {
    font-size: 1.25rem;
}

.participation-detail {
    max-width: 760px;
}

.participation-detail__card {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgba(90, 63, 52, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(70, 45, 35, 0.09);
    text-align: center;
}

.participation-detail__icon {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.participation-action {
    display: inline-flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    color: #fff;
    background: #765044;
    font-weight: 700;
    text-decoration: none;
}

.participation-action:hover,
.participation-action:focus-visible {
    background: #5f4037;
}

.participation-back {
    display: block;
    color: inherit;
}

@media (min-width: 760px) {
    .participation-tree {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participation-branch--gift {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .participation-page {
        width: min(calc(100% - 1.25rem), 980px);
        padding-top: 1.5rem;
    }

    .participation-branch {
        padding: 1rem;
    }

    .participation-link {
        grid-template-columns: 2rem minmax(0, 1fr) auto;
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .participation-link small {
        font-size: 0.82rem;
    }
}

/* =========================================================
   Bibliothèque privée de partitions
   ========================================================= */

.partition-page {
    width: min(calc(100% - 2rem), 980px);
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.partition-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.partition-header h1,
.partition-form-card h1 {
    margin: 0.25rem 0 1rem;
}

.partition-header p {
    max-width: 650px;
    line-height: 1.65;
}

.partition-upload-button {
    flex: 0 0 auto;
    margin: 0;
}

.partition-groups {
    display: grid;
    gap: 2rem;
}

.partition-group h2 {
    margin-bottom: 1rem;
}

.partition-list {
    display: grid;
    gap: 0.9rem;
}

.partition-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid rgba(90, 63, 52, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 25px rgba(70, 45, 35, 0.06);
}

.partition-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(166, 117, 98, 0.12);
    font-size: 1.9rem;
}

.partition-card__content h3 {
    margin: 0 0 0.3rem;
}

.partition-card__filename,
.partition-card__metadata {
    margin: 0;
}

.partition-card__filename {
    word-break: break-word;
}

.partition-card__metadata {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    opacity: 0.7;
}

.partition-card__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.partition-card__actions form {
    margin: 0;
}

.partition-download,
.partition-delete {
    display: inline-flex;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.partition-download {
    color: #fff;
    background: #765044;
}

.partition-delete {
    border: 1px solid rgba(130, 35, 35, 0.35);
    color: #7b2525;
    background: transparent;
}

.partition-empty,
.partition-form-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(90, 63, 52, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 15px 40px rgba(70, 45, 35, 0.08);
}

.partition-form-page {
    max-width: 760px;
}

.partition-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 2rem;
}

.partition-form > div {
    display: grid;
    gap: 0.4rem;
}

.partition-form label {
    font-weight: 700;
}

.partition-form input,
.partition-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(90, 63, 52, 0.25);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.partition-form ul {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
    color: #8b2222;
}

.partition-form__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.partition-form__actions .participation-action {
    margin: 0;
    border: 0;
    cursor: pointer;
}

.participation-partitions-link {
    display: block;
    width: fit-content;
    margin: 0 auto 1.25rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .partition-header {
        display: grid;
    }

    .partition-upload-button {
        width: fit-content;
    }

    .partition-card {
        grid-template-columns: 2.5rem minmax(0, 1fr);
    }

    .partition-card__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .partition-card__actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        padding-left: 3.5rem;
    }
}

@media (max-width: 520px) {
    .partition-page {
        width: min(calc(100% - 1.25rem), 980px);
        padding-top: 1.5rem;
    }

    .partition-card__actions {
        display: grid;
        padding-left: 0;
    }

    .partition-download,
    .partition-delete {
        width: 100%;
        box-sizing: border-box;
    }

    .partition-form__actions {
        display: grid;
    }
}

/* =========================================================
   Ordre et livret des partitions
   ========================================================= */

.partition-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.partition-secondary-button {
    display: inline-flex;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(90, 63, 52, 0.3);
    border-radius: 999px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.partition-position {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(118, 80, 68, 0.12);
    font-weight: 700;
}

.partition-order-form {
    display: grid;
    gap: 1.5rem;
}

.partition-order-list {
    display: grid;
    gap: 0.75rem;
}

.partition-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(90, 63, 52, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
}

.partition-order-row label {
    display: grid;
    gap: 0.25rem;
}

.partition-order-row__title {
    font-weight: 700;
}

.partition-order-row small {
    opacity: 0.7;
}

.partition-order-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid rgba(90, 63, 52, 0.25);
    border-radius: 10px;
    font: inherit;
    text-align: center;
}

@media (max-width: 620px) {
    .partition-header__actions {
        display: grid;
    }

    .partition-header__actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .partition-order-row {
        grid-template-columns: minmax(0, 1fr) 4.5rem;
    }
}

/* =========================================================
   Galerie photos
   ========================================================= */

.gallery-page {
    width: min(calc(100% - 2rem), 1120px);
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.gallery-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.gallery-header h1,
.gallery-form-card h1 {
    margin: 0.25rem 0 1rem;
}

.gallery-header p {
    max-width: 680px;
    line-height: 1.65;
}

.gallery-add-button {
    flex: 0 0 auto;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(250px, 1fr)
    );
    gap: 1.25rem;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(90, 63, 52, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(70, 45, 35, 0.08);
}

.gallery-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(90, 63, 52, 0.08);
}

.gallery-card__image-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-card__image-link:hover img,
.gallery-card__image-link:focus-visible img {
    transform: scale(1.035);
}

.gallery-card__body {
    padding: 1rem;
}

.gallery-card__body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
}

.gallery-card__metadata {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0.7;
}

.gallery-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1rem;
}

.gallery-card__actions form {
    margin: 0;
}

.gallery-download,
.gallery-delete {
    display: inline-flex;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.gallery-download {
    color: #fff;
    background: #765044;
}

.gallery-delete {
    border: 1px solid rgba(130, 35, 35, 0.35);
    color: #7b2525;
    background: transparent;
}

.gallery-empty,
.gallery-form-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(90, 63, 52, 0.15);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 15px 40px rgba(70, 45, 35, 0.08);
}

.gallery-form-page {
    max-width: 760px;
}

.gallery-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 2rem;
}

.gallery-form > div {
    display: grid;
    gap: 0.4rem;
}

.gallery-form label {
    font-weight: 700;
}

.gallery-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(90, 63, 52, 0.25);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.gallery-form ul {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
    color: #8b2222;
}

.gallery-form__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.gallery-form__actions .participation-action {
    margin: 0;
    border: 0;
    cursor: pointer;
}

.flash-error {
    padding: 0.85rem 1rem;
    color: #7b2525;
    background: #fceaea;
}

@media (max-width: 700px) {
    .gallery-header {
        display: grid;
    }

    .gallery-add-button {
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .gallery-page {
        width: min(calc(100% - 1.25rem), 1120px);
        padding-top: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card__actions {
        display: grid;
    }

    .gallery-download,
    .gallery-delete {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-form__actions {
        display: grid;
    }
}

/* =========================================================
   Thèmes et ajout groupé de photos
   ========================================================= */

.gallery-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.gallery-secondary-button {
    display: inline-flex;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(90, 63, 52, 0.3);
    border-radius: 999px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.gallery-theme-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.gallery-theme-navigation a {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(90, 63, 52, 0.18);
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    text-decoration: none;
}

.gallery-theme-navigation span {
    display: grid;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.3rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(118, 80, 68, 0.12);
    font-size: 0.78rem;
}

.gallery-sections {
    display: grid;
    gap: 3rem;
}

.gallery-theme-section {
    scroll-margin-top: 2rem;
}

.gallery-theme-heading {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(90, 63, 52, 0.14);
}

.gallery-theme-heading h2 {
  font-size: 1.9rem;
    margin: 0 0 0.75rem;
}

.gallery-theme-heading > span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.gallery-theme-form-card,
.gallery-theme-list-section {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(90, 63, 52, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 35px rgba(70, 45, 35, 0.07);
}

.gallery-theme-list-section {
    margin-top: 1.5rem;
}

.gallery-theme-form-card h2,
.gallery-theme-list-section h2 {
    margin-top: 0;
}

.gallery-theme-list {
    display: grid;
    gap: 0.75rem;
}

.gallery-theme-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(90, 63, 52, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.75);
}

.gallery-theme-row > div {
    display: grid;
    gap: 0.2rem;
}

.gallery-theme-row small {
    opacity: 0.7;
}

.gallery-theme-row form {
    margin: 0;
}

.gallery-card__body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
}

@media (max-width: 700px) {
    .gallery-header__actions {
        display: grid;
    }

    .gallery-header__actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-theme-row {
        align-items: stretch;
    }
}

@media (max-width: 520px) {
    .gallery-theme-row {
        display: grid;
    }

    .gallery-theme-row button {
        width: 100%;
    }
}

/* =========================================================
   Page de connexion avec illustration
   ========================================================= */

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(185, 143, 58, 0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(58, 83, 53, 0.22), transparent 38%),
    #101710;
}

.login-layout {
  width: min(1120px, 100%);
  min-height: 650px;
  max-height: 900px;

  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);

  overflow: hidden;

  border: 1px solid rgba(185, 143, 58, 0.45);
  border-radius: 28px;

  background: #f5edda;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}


/* Illustration */

.login-visual {
  margin: 0;
  min-width: 0;
  min-height: 0;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: #0d150e;
}

.login-visual img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* Formulaire */

.login-card {
  width: auto;
  max-width: none;
  margin: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(2rem, 4vw, 4rem);

  border: 0;
  border-radius: 0;

  background:
    radial-gradient(circle at top right, rgba(188, 145, 58, 0.14), transparent 32%),
    linear-gradient(160deg, #fffaf0 0%, #f0e4c8 100%);

  color: #3d382d;

  box-shadow: none;
}

.login-card .eyebrow {
  margin: 0 0 0.6rem;

  color: #8b6929;

  font-size: 0.8rem;
  font-weight: bold;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0.15rem 0 1rem;

  color: #3e5438;

  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: normal;
  line-height: 1.05;

  text-shadow: none;
}

.login-card > p:not(.eyebrow):not(.small) {
  margin-top: 0;
  margin-bottom: 2rem;

  color: #685f4d;

  font-size: 1.05rem;
}


/* Formulaire */

.login-card form {
  display: grid;
  gap: 0.65rem;
}

.login-card form > label:not(.checkbox-line) {
  margin-top: 0.5rem;

  color: #40563a;

  font-size: 0.9rem;
  font-weight: bold;
}

.login-card form > input[type="text"],
.login-card form > input[type="password"] {
  width: 100%;

  padding: 0.9rem 1rem;

  border: 1px solid #cbbd98;
  border-radius: 11px;

  outline: none;

  background: rgba(255, 255, 255, 0.82);

  color: #29251e;

  font: inherit;
}

.login-card form > input[type="text"]:focus,
.login-card form > input[type="password"]:focus {
  border-color: #8b6929;

  background: #fff;

  box-shadow: 0 0 0 3px rgba(185, 143, 58, 0.18);
}


/* Case rester connecté */

.login-card .checkbox-line {
  display: flex;
  gap: 0.65rem;
  align-items: center;

  margin: 0.8rem 0 0.4rem;

  color: #665e4e;

  font-size: 0.88rem;
}

.login-card .checkbox-line input {
  width: 1rem;
  height: 1rem;
  margin: 0;

  accent-color: #40563a;
}


/* Bouton */

.login-card button {
  width: 100%;

  margin-top: 0.5rem;
  padding: 0.95rem 1.3rem;

  border: 0;
  border-radius: 999px;

  background: #40563a;

  color: #fffdf7;

  font: inherit;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(48, 69, 43, 0.22);

  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.login-card button:hover,
.login-card button:focus {
  background: #30462d;

  transform: translateY(-1px);

  box-shadow: 0 13px 28px rgba(48, 69, 43, 0.28);
}


/* Aide et erreur */

.login-card .small {
  margin: 1.6rem 0 0;

  color: #756c59;

  font-size: 0.82rem;
  line-height: 1.55;
}

.login-card .form-error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;

  border: 1px solid #ba7167;
  border-radius: 10px;

  background: #fff1ee;

  color: #8b3930;
}


/* Tablette et téléphone */

@media (max-width: 850px) {
  .login-page {
    display: block;

    padding: 0;

    background: #f5edda;
  }

  .login-layout {
    width: 100%;
    min-height: 100vh;
    max-height: none;

    grid-template-columns: 1fr;

    overflow: visible;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .login-visual {
    width: 100%;
  }

  .login-visual img {
    width: 100%;
    height: auto;

    object-fit: contain;
  }

  .login-card {
    min-height: auto;

    padding: 2.5rem 1.5rem 3.5rem;
  }

  .login-card h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

/* Cagnotte de mariage */
.wedding-fund {
    margin-top: 1.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(122, 90, 58, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.wedding-fund__message {
    font-weight: 600;
    font-size: 1.08rem;
}

.wedding-fund__details {
    display: grid;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.wedding-fund__details > div {
    padding: 1rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
}

.wedding-fund__details dt {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.wedding-fund__details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.wedding-fund__details code {
    font-family: inherit;
    font-size: 1rem;
}

.wedding-fund__copy {
    margin-left: 0.7rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.wedding-fund__thanks {
    margin-bottom: 0;
    text-align: center;
    font-style: italic;
}


/* Ticket #88 - Réinitialisation du mot de passe */

.login-card .reset-password-form {
    display: grid;
    gap: 0.7rem;
}

.login-card .reset-password-form label {
    margin-top: 0.5rem;

    color: #40563a;

    font-size: 0.9rem;
    font-weight: bold;
}

.login-card .reset-password-form input[type="email"],
.login-card .reset-password-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;

    padding: 0.9rem 1rem;

    border: 1px solid #cbbd98;
    border-radius: 11px;

    outline: none;

    background: rgba(255, 255, 255, 0.82);

    color: #29251e;

    font: inherit;
}

.login-card .reset-password-form input[type="email"]:focus,
.login-card .reset-password-form input[type="password"]:focus {
    border-color: #8b6929;

    background: #fff;

    box-shadow: 0 0 0 3px rgba(185, 143, 58, 0.18);
}

.login-card .reset-password-form ul {
    margin: 0.2rem 0 0;
    padding: 0;

    list-style: none;

    color: #8b3930;

    font-size: 0.82rem;
}

.login-card .small a {
    color: #6f5422;

    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(111, 84, 34, 0.35);
    text-underline-offset: 0.2em;

    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.login-card .small a:hover,
.login-card .small a:focus {
    color: #40563a;
    text-decoration-color: #40563a;
}

.login-card .auth-back-link {
    margin-top: 1.4rem;
    text-align: center;
}

.party-end-time {
    display: block;
    margin: .35rem 0;
    font-weight: 700;
}


/* Paysage page mariage */
@media (max-width: 800px) {
  .hero {
    background-position: 68% center;
  }
}
