/* Feuille de style commune aux pages statiques (HTML/CSS classique). */

:root {
  --primary: #8c2322;
  --secondary: #165060;
  --background: #e3d9cf;
  --text: #3f474f;
}

@font-face {
  font-family: "Lust Slim Display";
  src: url("/assets/fonts/lust-slim-display.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Lust Slim Italic";
  src: url("/assets/fonts/lust-slim-display-italic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Caslon";
  src: url("/assets/fonts/caslon-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Caslon";
  src: url("/assets/fonts/caslon-italic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Caslon";
  src: url("/assets/fonts/caslon-bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

/* ---------- Transitions entre pages (View Transitions API) ---------- */

/* Fondu entre deux pages du site. Les navigateurs qui ne gèrent pas
   encore la navigation entre documents ignorent simplement ces règles. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root) {
  animation: vt-fade-out 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.5s cubic-bezier(0, 0, 0.2, 1) 0.1s both;
}

/* L'en-tête est identique d'une page à l'autre : il reste en place
   pendant que le contenu se fond. */
.site-header {
  view-transition-name: site-header;
}

::view-transition-group(site-header) {
  animation-duration: 0.4s;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Base ---------- */

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  font-family: "Caslon", serif;
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  color: var(--text);
  background-color: #fff;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Caslon", serif;
  font-weight: 400;
}

main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

p {
  line-height: 1.6;
  margin: 15px 0;
  font-size: 18px;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  appearance: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  border: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

.body {
  width: 90%;
  margin: 0 auto;
}

.font-caslon-bold {
  font-weight: 700;
}

/* ---------- Titres / bannière ---------- */

.bg {
  position: absolute;
  height: 70dvh;
  background-color: var(--primary);
  width: 100%;
  z-index: -1;
}

.hero-banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--primary);
  padding: 96px 24px 0;
}

.hero-banner__text {
  margin: 0 0 4rem;
}

.title {
  font-family: "Lust Slim Italic", cursive;
  color: var(--background);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2pt;
  display: flex;
  align-items: flex-start;
}

.subtitle {
  color: var(--background);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

/* ---------- Bouton ---------- */

.button {
  margin: auto;
  font-size: 18px;
  text-align: center;
  display: flex;
  width: fit-content;
  align-self: center;
  flex: 0;
  padding: 20px 18px;
  text-decoration: none;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--background);
  border: 2px solid var(--secondary);
  cursor: pointer;
}

.button:hover {
  background: transparent;
  color: var(--secondary);
}

.button:disabled {
  border-color: rgb(178, 178, 178);
  background-color: rgb(178, 178, 178);
  color: var(--background);
  cursor: not-allowed;
}

/* ---------- En-tête ---------- */

.site-header {
  --header-pad: 18px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--background);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  --header-pad: 12px;
  background-color: rgba(140, 35, 34, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* backdrop-filter et transform confineraient le menu plein écran (fixed)
   à l'en-tête : on les neutralise quand le menu est ouvert. */
.nav-open .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: transparent;
  box-shadow: none;
  transform: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--header-pad) 24px;
  transition: padding 0.4s ease;
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.nav a:focus-visible,
.nav button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Marque */

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(227, 217, 207, 0.55);
  border-radius: 50%;
  font-family: "Lust Slim Italic", cursive;
  font-size: 17px;
  letter-spacing: 1px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  background-color: var(--background);
  color: var(--primary);
  transform: rotate(-12deg);
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: "Lust Slim Display", cursive;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

.brand__name small {
  font-family: "Caslon", serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 4px;
}

/* Bouton burger */

.nav__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(227, 217, 207, 0.4);
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--background);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.2s ease;
}

.nav__toggle-bars {
  position: relative;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bars::before {
  transform: translateY(-6px);
}

.nav__toggle-bars::after {
  transform: translateY(6px);
}

.nav-open .nav__toggle-bars {
  background-color: transparent;
}

.nav-open .nav__toggle-bars::before {
  transform: rotate(45deg);
}

.nav-open .nav__toggle-bars::after {
  transform: rotate(-45deg);
}

/* Menu (mobile : plein écran) */

.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 110px 32px 48px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(227, 217, 207, 0.12),
      transparent 45%
    ),
    var(--primary);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  clip-path: circle(0 at calc(100% - 46px) 40px);
  transition:
    clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.7s;
}

.nav-open .nav__menu {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at calc(100% - 46px) 40px);
  transition:
    clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.2s ease;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav__links > li {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-open .nav__links > li {
  opacity: 1;
  transform: none;
}

.nav-open .nav__links > li:nth-child(1) {
  transition-delay: 0.25s;
}
.nav-open .nav__links > li:nth-child(2) {
  transition-delay: 0.32s;
}
.nav-open .nav__links > li:nth-child(3) {
  transition-delay: 0.39s;
}

.nav__link {
  display: inline-block;
  font-family: "Lust Slim Italic", cursive;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.nav__link[aria-current="page"] {
  opacity: 0.6;
}

.nav__sub {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid rgba(227, 217, 207, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav__sub a {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  line-height: 1.2;
}

.nav__sub small {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 3px;
}

.nav__sub a[aria-current="page"] span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.nav-open .nav__actions {
  opacity: 1;
  transition-delay: 0.45s;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 24px;
  border-radius: 999px;
  background-color: var(--background);
  color: var(--primary) !important;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.nav__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible,
.nav__cta[aria-current="page"] {
  background-color: #fff;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}

.nav__cta:hover svg,
.nav__cta:focus-visible svg {
  transform: translateX(4px);
}

.nav__insta {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(227, 217, 207, 0.4);
  fill: var(--background);
  transition:
    background-color 0.3s ease,
    fill 0.3s ease;
}

.nav__insta svg {
  width: 18px;
  height: 18px;
}

.nav__insta:hover,
.nav__insta:focus-visible {
  background-color: var(--background);
  fill: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav,
  .nav__menu,
  .nav__links > li,
  .nav__actions {
    transition: none !important;
  }
}

/* Menu (bureau : horizontal) */

@media (min-width: 1024px) {
  .site-header {
    --header-pad: 26px;
  }

  .site-header.is-scrolled {
    --header-pad: 14px;
  }

  .nav {
    padding-left: 48px;
    padding-right: 48px;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu,
  .nav-open .nav__menu {
    position: static;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    clip-path: none;
    transition: none;
  }

  .nav__links {
    flex-direction: row;
    gap: 2.5rem;
    margin: 0 auto;
  }

  .nav__links > li,
  .nav-open .nav__links > li {
    position: relative;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__link {
    position: relative;
    font-family: "Caslon", serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 0;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nav__link:hover::after,
  .nav__link:focus-visible::after,
  .nav__link[aria-current="page"]::after,
  .nav__dropdown:focus-within > .nav__link::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav__link[aria-current="page"] {
    opacity: 1;
  }

  .nav__dropdown > .nav__link {
    padding-right: 16px;
  }

  .nav__dropdown > .nav__link::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
  }

  .nav__dropdown:hover > .nav__link::before,
  .nav__dropdown:focus-within > .nav__link::before {
    transform: translateY(-30%) rotate(-135deg);
  }

  .nav__sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    border: none;
    border-radius: 14px;
    background-color: var(--background);
    color: var(--primary);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition:
      opacity 0.25s ease,
      transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0s linear 0.3s;
  }

  /* Zone tampon pour ne pas perdre le survol entre le lien et le menu. */
  .nav__sub::before {
    content: "";
    position: absolute;
    inset: -14px 0 auto;
    height: 14px;
  }

  .nav__dropdown:hover .nav__sub,
  .nav__dropdown:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 14px);
    transition:
      opacity 0.25s ease,
      transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nav__sub a {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 18px;
    transition: background-color 0.2s ease;
  }

  .nav__sub a:hover,
  .nav__sub a:focus-visible,
  .nav__sub a[aria-current="page"] {
    background-color: rgba(140, 35, 34, 0.08);
  }

  .nav__sub a[aria-current="page"] span {
    text-decoration: none;
  }

  .nav__sub small {
    color: var(--text);
    white-space: nowrap;
  }

  .nav__actions,
  .nav-open .nav__actions {
    opacity: 1;
    transition: none;
  }

  .nav__insta {
    order: -1;
    border-color: transparent;
  }
}

/* ---------- Pied de page ---------- */

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  align-items: center;
  background-color: var(--background);
}

.footer-text {
  font-size: 14px;
  color: var(--secondary);
  text-align: center;
  padding-bottom: 24px;
}

.footer-text-siret {
  font-size: 12px;
}

.footer-icons {
  display: flex;
  fill: var(--secondary);
  gap: 20px;
}

.footer-icons:hover {
  fill: var(--primary);
}

/* ---------- Bandeau cookies ---------- */

.cookie-banner {
  position: fixed;
  bottom: 5px;
  right: 5px;
  left: 5px;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--secondary);
  color: var(--background);
  font-size: 14px;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
}

.cookie-banner button {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Galerie (masonry) ---------- */

.gallery {
  width: 94%;
  margin: 0 auto;
  column-count: 2;
  column-gap: 1rem;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  break-inside: avoid;
}

@supports (animation-timeline: view()) {
  .gallery img {
    animation: fadeInOut linear 1s both;
    animation-timeline: view();
    animation-range: entry exit;
    animation-direction: alternate;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    scale: 0.6;
    transform: translateY(50%);
  }
  25% {
    opacity: 1;
    scale: 1;
    transform: translateY(0);
  }
}

/* ---------- Cartes (packs / prestations) ---------- */

.cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0.25rem;
  outline: 1px solid var(--primary);
}

.card img {
  /* width: auto pour que la largeur découle de la hauteur (et de
     l'aspect-ratio éventuel) plutôt que de l'attribut width. */
  width: auto;
  height: 300px;
  object-fit: cover;
}

.card p,
.card ul {
  color: inherit;
  margin: 0;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1rem 1rem;
}

.card-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.card-link {
  margin: 0 0 0 auto;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5rem;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--primary);
}

.card--rubis {
  background-color: #ecdfdf;
  outline: none;
}

.card--saphir {
  background-color: #dfe0ec;
  outline: none;
}

.section-title {
  text-align: center;
  margin: 42px 0;
  font-size: 2.5rem;
  font-weight: 600;
}

/* ---------- Accueil ---------- */

.home-hero {
  display: flex;
  flex-direction: column;
  padding-top: 96px;
}

.home-hero__left {
  position: relative;
  padding: 0 24px;
}

.home-hero .title {
  max-width: 600px;
}

.carousel-buttons {
  display: none;
}

.carousel-buttons svg {
  padding-right: 20px;
  width: 96px;
  height: 96px;
  opacity: 0.5;
  stroke: var(--background);
}

.carousel-buttons button:hover svg,
.carousel-buttons button:focus-visible svg {
  opacity: 1;
  stroke: white;
}

.scroll-hint {
  display: none;
}

.carousel {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel__element {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  align-items: center;
  scroll-snap-align: start;
}

.carousel__element img {
  max-height: 60vh;
  max-width: 100svw;
  height: auto;
  width: auto;
  object-fit: contain;
}

.carousel__element .text {
  display: flex;
  gap: 2rem;
  justify-content: space-evenly;
  font-size: 14px;
  line-height: 20px;
  color: var(--primary);
  padding-top: 3svh;
}

.presentation {
  width: 90%;
  margin: 0 auto;
  padding: 101px 5% 0;
  max-width: 1150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.presentation .button {
  margin-top: 20px;
  margin-bottom: 120px;
}

.home-services {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.home-service {
  display: flex;
  flex-direction: column-reverse;
  margin: 30px 0;
}

.home-service .text {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: justify;
}

.home-service h2 {
  margin: 12px 0;
  text-align: center;
  font-family: "Lust Slim Display", cursive;
  font-weight: 400;
  font-size: 36px;
  line-height: 105%;
  letter-spacing: 1.4px;
}

.home-service p {
  font-size: 22px;
  line-height: 130%;
  letter-spacing: 1.4px;
}

.home-service a {
  color: var(--secondary);
  width: fit-content;
  margin: 20px auto 0;
}

.home-service img {
  margin: auto;
  max-width: 90%;
  max-height: 400px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* ---------- Mariage ---------- */

.rings {
  display: block;
  margin: 42px auto 0;
  max-width: 90%;
  height: auto;
}

.wedding-intro {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 1rem;
}

.wedding-intro .content {
  width: 100%;
  padding: 36px 36px 0;
}

.wedding-intro .content li {
  margin-left: 35px;
  list-style-type: disc;
}

.wedding-intro .content .button {
  display: block;
  margin: 42px 0;
}

.wedding-intro .images {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 94%;
  margin: auto;
  gap: 1rem;
}

.wedding-intro .images:last-child {
  margin-bottom: 1rem;
}

.wedding-intro .images img {
  width: 50%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.packs {
  max-width: 90%;
  margin: 0 auto;
}

.packs .card img {
  aspect-ratio: 3 / 4;
}

/* ---------- Portrait ---------- */

.portrait-cards {
  margin-top: 2rem;
}

.portrait-cards .card img {
  aspect-ratio: 2 / 3;
}

.portrait-cards .card-text {
  flex: 1;
  white-space: pre-line;
}

/* ---------- Prestations ---------- */

.prestations-page .cards {
  margin-top: 1rem;
}

.prestations-page .card img {
  aspect-ratio: 3 / 4;
}

/* ---------- Contact ---------- */

.contact-form {
  width: 80%;
  margin: 0 auto 4rem;
  color: var(--text);
}

.contact-form .row {
  display: flex;
  flex-direction: column;
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group label {
  color: var(--primary);
  line-height: 28px;
  font-size: 24px;
  position: absolute;
  top: 95%;
  left: 24px;
  transform-origin: 0;
  pointer-events: none;
  transform: translate(0, -24px) scale(0.75);
  transition: 0.2s ease all;
}

.form-group input,
.form-group textarea {
  display: block;
  border: 0;
  background-color: transparent;
  border-bottom: 2px solid var(--primary);
  appearance: none;
  padding: 10px 0;
  width: 100%;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group input[type="date"] + label {
  top: 8px;
  left: 20px;
  font-size: 11px;
}

.form-status {
  text-align: center;
  min-height: 1.6em;
}

.form-status.is-error {
  color: var(--primary);
}

.form-status.is-success {
  color: var(--secondary);
}

/* ---------- Bureau ---------- */

@media (min-width: 768px) {
  .gallery {
    column-count: 5;
  }

  .rings {
    max-width: 400px;
  }

  .wedding-intro {
    flex-direction: row;
    justify-content: center;
  }

  .wedding-intro .content {
    width: 40%;
    padding: 36px;
  }

  .wedding-intro .images {
    flex-direction: column;
    transform: translateY(-100px);
    max-width: 350px;
    margin: 0;
  }

  .wedding-intro .images img {
    width: 100%;
    border-radius: 0;
  }

  .wedding-intro .images-l {
    order: -1;
  }

  .wedding-intro .images-l img {
    padding-top: 50px;
  }

  .wedding-intro .images-r img {
    padding-bottom: 50px;
  }

  .wedding-intro .images:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    flex-direction: row;
    padding: 144px 224px 0;
  }

  .hero-banner__text {
    margin-right: 14rem;
  }

  /* Pied de page */
  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 80px;
  }

  .footer-text {
    padding-bottom: 0;
    text-align: left;
  }

  /* Cartes */
  .cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    flex-direction: row;
  }

  .card-content {
    padding-left: 0;
  }

  .card img {
    align-self: center;
  }

  /* Accueil */
  .home-hero {
    padding-top: 144px;
    flex-direction: row;
    height: 100svh;
  }

  .home-hero__left {
    width: 50%;
    flex-shrink: 0;
    padding: 0 0 0 224px;
    margin-right: 224px;
  }

  .carousel-buttons {
    display: flex;
    flex-direction: row;
  }

  .scroll-hint {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    bottom: 5%;
    left: 0;
    transform: rotate(90deg);
    transform-origin: right;
    opacity: 0.8;
    text-decoration: none;
  }

  .scroll-hint:hover {
    opacity: 1;
  }

  .scroll-hint span {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0.15px;
    margin-right: 19px;
  }

  .carousel__element {
    width: auto;
  }

  .carousel__element img {
    height: 75vh;
    max-height: 75vh;
  }

  .presentation {
    width: auto;
    padding: 101px 5% 0;
  }

  .home-service {
    flex-direction: row;
    margin: 0 0 80px;
  }

  .home-service:nth-child(even) {
    flex-direction: row-reverse;
  }

  .home-service .text {
    width: 50%;
    align-self: center;
  }

  .home-service h2 {
    margin: 0 80px;
  }

  .home-service:nth-child(odd) .text > * {
    text-align: right;
  }

  .home-service:nth-child(odd) p {
    margin-right: 32px;
  }

  .home-service:nth-child(even) .text > * {
    text-align: left;
  }

  .home-service:nth-child(even) p {
    margin-left: 32px;
  }

  .home-service img {
    max-width: 400px;
  }

  /* Portrait */
  .portrait-cards {
    max-width: 1150px;
  }

  .portrait-cards .card {
    height: 100%;
  }

  /* Contact */
  .contact-form {
    width: 50%;
  }

  .contact-form .row {
    gap: 1.5rem;
    flex-direction: row;
  }
}

/* ---------- 404 ---------- */

.not-found {
  padding: 2rem 0 4rem;
}

.not-found ul {
  margin: 0 0 2rem;
  font-size: 18px;
  line-height: 2;
}

.not-found ul a {
  color: var(--secondary);
}

.not-found .button {
  margin: 0;
}

/* ---------- Liens dans le texte ---------- */

.text-link {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary);
}

.page-links {
  width: 90%;
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-links p {
  margin: 0;
}

.about-cta {
  margin: 2rem 0 4rem;
}
