@charset "UTF-8";
:root {
  --color-main: #ba6547;
  --color-snd: #F8D8C9;
  --color-third: #FDF5F1;
}

.color-main {
  color: var(--color-main);
}

.color-snd {
  color: var(--color-snd);
}

.color-third {
  color: var(--color-third);
}

.background-main {
  background: var(--color-main);
}

.background-snd {
  background: var(--color-snd);
}

.background-third {
  background: var(--color-third);
}

/**
 * Chemin vers les fichiers de polices.
 */
/**
 * Déclare la police décorative Block Script.
 */
@font-face {
  font-family: "Block Script";
  src: url("../../src/fonts/block-script.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/**
 * Déclare la graisse normale de Caviar Dreams.
 */
@font-face {
  font-family: "Caviar Dreams";
  src: url("../../src/fonts/CaviarDreams.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/**
 * Déclare la graisse grasse de Caviar Dreams.
 */
@font-face {
  font-family: "Caviar Dreams";
  src: url("../../src/fonts/CaviarDreams_Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
/**
 * Déclare l'italique de Caviar Dreams.
 */
@font-face {
  font-family: "Caviar Dreams";
  src: url("../../src/fonts/CaviarDreams_Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
/**
 * Déclare l'italique gras de Caviar Dreams.
 */
@font-face {
  font-family: "Caviar Dreams";
  src: url("../../src/fonts/CaviarDreams_BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
:root {
  /**
   * Tailles de texte courant.
   */
  --text-xs: clamp(0.6875rem, 0.67rem + 0.08vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --text-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  /**
   * Tailles de titres décoratifs.
   *
   * Block Script possède déjà une forte présence visuelle. Les tailles
   * restent donc plus modérées afin d'éviter de surcharger l'interface.
   */
  --title-sm: clamp(2rem, 1.65rem + 1.4vw, 2.75rem);
  --title-md: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  --title-lg: clamp(3.75rem, 2.5rem + 5vw, 6.5rem);
  --title-xl: clamp(5rem, 3rem + 8vw, 9rem);
}

/**
 * ==========================================================================
 * Base typographique
 * ==========================================================================
 */
/**
 * Définit la typographie générale de la webapp.
 */
body {
  font-family: "Caviar Dreams", sans-serif;
  font-size: var(--text-base);
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

/**
 * Réinitialise les marges natives des principaux éléments textuels.
 *
 * Les espacements doivent être gérés par les composants et les layouts.
 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
  margin-block: 0;
}

/**
 * Définit la typographie des trois premiers niveaux de titre.
 *
 * Block Script est réservée aux titres principaux et décoratifs.
 */
h1,
h2,
h3 {
  font-family: "Block Script", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

/**
 * Définit la typographie des titres fonctionnels.
 *
 * Caviar Dreams est conservée pour les titres d'interface afin de maintenir
 * une bonne lisibilité.
 */
h4,
h5,
h6 {
  font-family: "Caviar Dreams", sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/**
 * Définit le titre principal d'une page.
 */
h1 {
  font-size: var(--title-lg);
  line-height: 0.95;
}

/**
 * Définit le titre secondaire principal.
 */
h2 {
  font-size: var(--title-md);
  line-height: 1;
}

/**
 * Définit le troisième niveau de titre décoratif.
 */
h3 {
  font-size: var(--title-sm);
  line-height: 1.05;
}

/**
 * Définit le quatrième niveau de titre.
 */
h4 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

/**
 * Définit le cinquième niveau de titre.
 */
h5 {
  font-size: var(--text-lg);
  line-height: 1.25;
}

/**
 * Définit le sixième niveau de titre.
 */
h6 {
  font-size: var(--text-md);
  line-height: 1.3;
}

/**
 * Définit le style du texte courant.
 */
p {
  font-size: var(--text-base);
  line-height: 1.55;
}

/**
 * Définit les styles communs des listes.
 */
ul,
ol {
  padding-inline-start: 1.25em;
}

/**
 * Définit le style des éléments de liste.
 */
li {
  font-size: var(--text-base);
  line-height: 1.55;
}

/**
 * Ajoute un espacement vertical entre deux éléments successifs d'une liste.
 */
li + li {
  margin-block-start: 0.5rem;
}

/**
 * Définit le texte renforcé.
 */
strong,
b {
  font-weight: 700;
}

/**
 * Définit les textes en emphase.
 */
em,
i {
  font-style: italic;
}

/**
 * Définit le style des petits textes.
 */
small {
  font-size: var(--text-sm);
  line-height: 1.45;
}

/**
 * Définit le style des citations.
 */
blockquote {
  padding-inline-start: 1.25rem;
  border-inline-start: 0.2rem solid currentcolor;
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
}

/**
 * Définit la typographie des libellés de formulaire.
 */
label {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
}

/**
 * Harmonise les éléments de formulaire avec la typographie de la webapp.
 */
input,
textarea,
select,
button {
  font-family: "Caviar Dreams", sans-serif;
  font-size: var(--text-base);
}

/**
 * ==========================================================================
 * Utilitaires de taille typographique
 * ==========================================================================
 */
/**
 * Applique la plus petite taille de texte.
 */
.text-xs {
  font-size: var(--text-xs);
}

/**
 * Applique une petite taille de texte.
 */
.text-sm {
  font-size: var(--text-sm);
}

/**
 * Applique la taille de texte courante.
 */
.text-base {
  font-size: var(--text-base);
}

/**
 * Applique une taille de texte intermédiaire.
 */
.text-md {
  font-size: var(--text-md);
}

/**
 * Applique une grande taille de texte.
 */
.text-lg {
  font-size: var(--text-lg);
}

/**
 * Applique une très grande taille de texte courant.
 */
.text-xl {
  font-size: var(--text-xl);
}

/**
 * Applique la petite taille de titre.
 */
.title-sm {
  font-size: var(--title-sm);
}

/**
 * Applique la taille moyenne de titre.
 */
.title-md {
  font-size: var(--title-md);
}

/**
 * Applique la grande taille de titre.
 */
.title-lg {
  font-size: var(--title-lg);
}

/**
 * Applique la plus grande taille de titre.
 */
.title-xl {
  font-size: var(--title-xl);
}

/**
 * ==========================================================================
 * Utilitaires de famille typographique
 * ==========================================================================
 */
/**
 * Applique la police de lecture Caviar Dreams.
 */
.font-body {
  font-family: "Caviar Dreams", sans-serif;
}

/**
 * Applique la police décorative Block Script.
 */
.font-script {
  font-family: "Block Script", cursive;
  font-style: normal;
  font-weight: 400;
}

/**
 * ==========================================================================
 * Utilitaires de graisse
 * ==========================================================================
 */
/**
 * Applique la graisse normale.
 */
.font-regular {
  font-weight: 400;
}

/**
 * Applique la graisse grasse.
 */
.font-bold {
  font-weight: 700;
}

/**
 * ==========================================================================
 * Utilitaires d'interlignage
 * ==========================================================================
 */
/**
 * Applique un interlignage très compact.
 */
.leading-none {
  line-height: 0.95;
}

/**
 * Applique un interlignage compact.
 */
.leading-tight {
  line-height: 1.1;
}

/**
 * Applique un interlignage adapté aux titres.
 */
.leading-heading {
  line-height: 1.25;
}

/**
 * Applique l'interlignage principal de lecture.
 */
.leading-body {
  line-height: 1.55;
}

/**
 * Applique un interlignage aéré.
 */
.leading-relaxed {
  line-height: 1.75;
}

/**
 * ==========================================================================
 * Utilitaires d'alignement
 * ==========================================================================
 */
/**
 * Aligne le texte à gauche.
 */
.text-left {
  text-align: left;
}

/**
 * Centre le texte.
 */
.text-center {
  text-align: center;
}

/**
 * Aligne le texte à droite.
 */
.text-right {
  text-align: right;
}

/**
 * ==========================================================================
 * Utilitaires typographiques spécifiques à la webapp
 * ==========================================================================
 */
/**
 * Définit un surtitre ou label visuel.
 */
.eyebrow {
  font-family: "Caviar Dreams", sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/**
 * Définit un texte d'introduction.
 */
.lead {
  font-size: var(--text-lg);
  line-height: 1.55;
}

body.identification-page {
  min-height: 100vh;
  min-height: 100dvh;
}
body.identification-page header, body.identification-page footer {
  display: none;
}
body.identification-page .event-identification-page {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}
body.identification-page .event-identification__card {
  width: min(100%, 420px);
  padding: 32px;
  box-sizing: border-box;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}
body.identification-page .event-identification__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.identification-page .event-identification h1 {
  margin: 0;
  line-height: 1;
  color: var(--color-main);
}
body.identification-page .event-identification__intro {
  margin: 18px 0 28px;
  line-height: 1.5;
  color: #666;
}
body.identification-page .event-identification__form {
  display: grid;
  gap: 18px;
}
body.identification-page .event-identification__field {
  display: grid;
  gap: 8px;
}
body.identification-page .event-identification__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
body.identification-page .event-identification__field input:focus {
  outline: 3px solid rgba(0, 0, 0, 0.12);
  border-color: #181818;
}
body.identification-page .event-identification__error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff0f0;
  color: #a40000;
  line-height: 1.4;
}
body.identification-page #event-visitor-submit {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
body.identification-page #event-visitor-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

header {
  padding: 10px;
}
header a {
  display: flex;
  color: black;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 15px;
  text-decoration: none;
}
header a p {
  margin-right: 10px;
  font-size: var(--text-lg);
}
header a .img {
  background: var(--color-third);
  border-radius: 1000px;
  height: 40px;
  width: 40px;
  display: flex;
  overflow: hidden;
}
header a .img img {
  display: block;
  margin: auto;
}
header a .img img.pp {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

:root {
  --footer-height: 75px;
}

/**
 * Positionne la navigation principale en bas de l'écran.
 */
.event-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  background: var(--color-main);
  border-top: 1px solid rgba(248, 216, 201, 0.12);
}

/**
 * Étend la navigation sur toute la largeur disponible.
 */
.event-footer__nav {
  width: 100%;
}

/**
 * Organise les trois actions principales sur des colonnes égales.
 */
.event-footer__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-height: 4.75rem;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  list-style: none;
}

/**
 * Centre chaque élément de navigation.
 */
.event-footer__item {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 100%;
}

/**
 * Prépare l'élément central pour le bouton principal.
 */
.event-footer__item--primary {
  position: relative;
}

/**
 * Présente les liens de navigation latéraux.
 */
.event-footer__link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 4.75rem;
  padding: 0.75rem;
  color: #f8d8c9;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/**
 * Uniformise la taille des icônes latérales.
 */
.event-footer__link svg {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

/**
 * Uniformise la couleur des tracés SVG.
 *
 * Les attributs fill présents directement dans les SVG peuvent continuer
 * d'être utilisés, mais cette règle permet d'avoir un état cohérent.
 */
.event-footer__link svg path,
.event-footer__link svg circle {
  fill: currentcolor;
}

/**
 * Ajoute un retour visuel au toucher.
 */
.event-footer__link:active {
  opacity: 0.65;
  transform: scale(0.94);
}

/**
 * Présente le bouton principal de prise ou d'ajout de photo.
 */
.event-footer__photo-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  padding: 0;
  background: #f8d8c9;
  border: 0;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  cursor: pointer;
  transform: translate(-50%, -72%);
  -webkit-tap-highlight-color: transparent;
}

/**
 * Dimensionne l'icône du bouton principal.
 */
.event-footer__photo-button svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}

/**
 * Inverse la couleur de l'icône de l'appareil photo.
 *
 * Le SVG utilise actuellement un fill inline. Cette règle garantit
 * toutefois une couleur cohérente si le markup du SVG évolue.
 */
.event-footer__photo-button svg path,
.event-footer__photo-button svg circle {
  fill: var(--color-main);
}

/**
 * Ajoute une animation légère lors de l'interaction.
 */
.event-footer__photo-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/**
 * Réduit légèrement le bouton pendant le toucher.
 */
.event-footer__photo-button:active {
  transform: translate(-50%, -72%) scale(0.92);
}

/**
 * Présente clairement le focus clavier.
 */
.event-footer__link:focus-visible,
.event-footer__photo-button:focus-visible {
  outline: 0.2rem solid #fff;
  outline-offset: 0.2rem;
}

/**
 * Réduit les interactions pendant un traitement.
 */
.event-footer__photo-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

/**
 * ==========================================================================
 * Adaptation aux écrans plus larges
 * ==========================================================================
 */
/**
 * Limite visuellement la largeur de la navigation sur desktop.
 */
@media (min-width: 48rem) {
  .event-footer {
    right: 50%;
    left: auto;
    width: min(100%, 32rem);
    border: 1px solid rgba(248, 216, 201, 0.12);
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateX(50%);
  }
}
/**
 * Respecte les préférences utilisateur concernant
 * la réduction des animations.
 */
@media (prefers-reduced-motion: reduce) {
  .event-footer__photo-button {
    transition: none;
  }
}
/**
 * ==========================================================================
 * Menu d'ajout de photos
 * ==========================================================================
 */
/**
 * Positionne la bottom sheet au-dessus de la webapp.
 */
.event-photo-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
}

/**
 * Masque complètement le menu lorsqu'il utilise l'attribut hidden.
 */
.event-photo-menu[hidden] {
  display: none;
}

/**
 * Affiche le fond sombre de la bottom sheet.
 */
.event-photo-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/**
 * Positionne le panneau en bas de l'écran.
 */
.event-photo-menu__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

/**
 * Anime le fond lorsque le menu est ouvert.
 */
.event-photo-menu.is-open .event-photo-menu__backdrop {
  opacity: 1;
}

/**
 * Anime le panneau lorsque le menu est ouvert.
 */
.event-photo-menu.is-open .event-photo-menu__panel {
  transform: translateY(0);
}

/**
 * Organise les actions disponibles.
 */
.event-photo-menu__actions {
  display: grid;
  gap: 0.75rem;
}

/**
 * Bloque le défilement de la page pendant l'ouverture du menu.
 */
body.has-event-photo-menu {
  overflow: hidden;
}

/**
 * ==========================================================================
 * Popup de photo de profil
 * ==========================================================================
 */
/**
 * Bloque le défilement de la page lorsque la popup est ouverte.
 */
body.has-profile-photo-popup {
  overflow: hidden;
}

/**
 * Conteneur global de la popup.
 */
.profile-photo-popup {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  align-items: end;
}

/**
 * Fond semi-transparent de la popup.
 */
.profile-photo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(0.25rem);
}

/**
 * Panneau principal de la popup.
 */
.profile-photo-popup__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-radius: 2rem 2rem 0 0;
  background: #fdf5f1;
  box-shadow: 0 -1rem 4rem rgba(0, 0, 0, 0.12);
}

/**
 * Contenu éditorial de la popup.
 */
.profile-photo-popup__content {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

/**
 * Groupe les actions principales.
 */
.profile-photo-popup__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/**
 * Message d'erreur.
 */
.profile-photo-popup__error {
  margin: 0;
  color: #b42318;
  text-align: center;
}

/**
 * Réduit visuellement la popup pendant un traitement réseau.
 */
.profile-photo-popup.is-loading {
  cursor: wait;
}

/**
 * Adapte la popup aux écrans plus larges.
 */
@media (min-width: 48rem) {
  .profile-photo-popup {
    align-items: center;
    padding: 2rem;
  }
  .profile-photo-popup__panel {
    padding: 2.5rem;
    border-radius: 2rem;
  }
}
/**
 * ==========================================================================
 * Loader de la photo de profil
 * ==========================================================================
 */
/**
 * Centre l'état de chargement dans la popup.
 */
.profile-photo-popup__loader {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: 1rem;
  text-align: center;
}

/**
 * Affiche un indicateur circulaire de chargement.
 */
.profile-photo-popup__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 0.2rem solid rgba(31, 31, 31, 0.15);
  border-top-color: currentcolor;
  border-radius: 50%;
  animation: profile-photo-spin 0.8s linear infinite;
}

/**
 * Anime l'indicateur de chargement.
 */
@keyframes profile-photo-spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * Réduit les interactions pendant le traitement.
 */
.profile-photo-popup.is-loading {
  cursor: wait;
}

/**
 * Masque systématiquement les éléments porteurs de l'attribut hidden.
 */
[hidden] {
  display: none !important;
}

.button {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

button {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

/**
 * ==========================================================================
 * Upload des photos de l'événement
 * ==========================================================================
 */
/**
 * Affiche le loader au-dessus de l'ensemble de la webapp.
 */
.event-photo-upload {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
}

/**
 * Masque complètement les éléments utilisant l'attribut hidden.
 */
.event-photo-upload[hidden] {
  display: none;
}

/**
 * Contient l'état courant de l'upload.
 */
.event-photo-upload__panel {
  width: min(100%, 24rem);
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  text-align: center;
}

/**
 * Espace le message de la barre de progression.
 */
.event-photo-upload__message {
  margin-bottom: 1.5rem;
}

/**
 * Contient la progression de l'upload.
 */
.event-photo-upload__progress {
  overflow: hidden;
  width: 100%;
  height: 0.75rem;
  background: rgba(31, 31, 31, 0.12);
  border-radius: 999px;
}

/**
 * Représente visuellement la progression de l'upload.
 */
.event-photo-upload__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: currentcolor;
  border-radius: inherit;
  transition: width 0.15s linear;
}

/**
 * Affiche le pourcentage courant.
 */
.event-photo-upload__percent {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
}

/**
 * Bloque le scroll pendant l'envoi des photos.
 */
body.has-event-photo-upload {
  overflow: hidden;
}

body {
  background: var(--color-snd);
  max-height: calc(100dvh - var(--footer-height));
  max-height: calc(98vh - var(--footer-height));
}
/*# sourceMappingURL=main.css.map */
