/* Beauty for a Better - Styles globaux */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Trenda;
  src: url('../fonts/Trenda/Latinotype%20%20Trenda%20Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Trenda;
  src: url('../fonts/Trenda/Latinotype%20%20Trenda%20Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Trenda;
  src: url('../fonts/Trenda/Latinotype%20%20Trenda%20Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-brand: #AF1257;
  --color-brand-hover: #9d2f4d;
  --color-border: #e5e7eb;
  --color-text-muted: #6b7280;
  --color-text-label: #1f2937;
  --color-bg-card: #ffffff;
  --radius-card: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  /* Safe area pour encoches / barre d’accueil (iPhone, etc.) */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --touch-min: 44px; /* zone tactile minimale recommandée */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

/* Utilitaire accessibilité - visible uniquement pour lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Liens mailto : couleur du fond des boutons (marque) */
a[href^="mailto:"] {
  color: var(--color-brand);
  text-decoration: none;
}
a[href^="mailto:"]:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Masquer le logo du header quand nom + Quitter sont affichés (évite le double logo) */
.site-header--with-user .site-header__inner {
  display: none;
}

/* Conteneur (n’affecte pas le positionnement fixed des enfants) */
.site-header__logo {
  display: inline-block;
  line-height: 0;
}

.site-header__logo img {
  width: 200px;
  height: 200px;
}

/* Nom en haut à gauche de la fenêtre (viewport) — masqué au scroll */
.site-header__fixed-name {
  position: fixed;
  top: 1rem;
  left: max(1rem, env(safe-area-inset-left));
  right: auto;
  z-index: 1000;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-brand);
  border-radius: 6px;
  color: var(--color-brand);
  background: var(--color-bg-card, #fff);
  text-transform: uppercase;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.header-user-scrolled .site-header__fixed-name,
body.header-user-scrolled .site-header__fixed-quitter {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Bouton Quitter en haut à droite de la fenêtre (viewport) — masqué au scroll */
.site-header__fixed-quitter {
  position: fixed;
  top: 1rem;
  left: auto;
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1000;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-brand);
  border-radius: 6px;
  color: var(--color-brand);
  background: var(--color-bg-card, #fff);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, opacity 0.25s ease, visibility 0.25s ease;
}

.site-header__fixed-quitter:hover {
  background: var(--color-brand);
  color: #fff;
}

body {
  font-family: 'Trenda', 'Segoe UI', system-ui, sans-serif;
  background: #F1E7DD;
  min-height: 100vh;
  min-height: calc(100vh - var(--safe-area-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  padding-left: max(1rem, var(--safe-area-left));
  padding-right: max(1rem, var(--safe-area-right));
  padding-bottom: max(1rem, var(--safe-area-bottom));
}

h1 {
  font-family: 'Bodoni Moda', Bodoni, serif;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.back-link {
  align-self: flex-start;
  margin-bottom: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
  text-decoration: none;
}
.back-link:hover {
  color: #f0f0f0;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Carte */
.map-wrap {
  width: 100%;
  max-width: 900px;
  height: 580px;
  border-radius: 12px;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Régions */
#map path.region {
  cursor: pointer;
  fill: #FFFFFF;
  stroke: #F1E7DD;
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.35s ease;
}

#map path.region:hover {
  fill: #a81a60;
  stroke: rgba(168, 26, 96, 0.4);
}

#map path.region.zoomed-out {
  opacity: 0;
  pointer-events: none;
}

#map path.region.zoomed-active {
  fill: #a81a60;
  stroke: rgba(168, 26, 96, 0.5);
  stroke-width: 0.8;
}

/* Labels régions */
#map text.region-label {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  fill: var(--color-brand);
  paint-order: stroke;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: opacity 0.35s ease, fill 0.3s ease;
}

#map text.region-label.zoomed-out {
  opacity: 0;
  pointer-events: none;
}

#map text.region-label.zoomed-active {
  fill: #f9a8d4;
}

#map text.region-label.region-label-hover {
  fill: #fff;
}

#map text.region-label.hide-when-zoomed {
  opacity: 0;
  pointer-events: none;
}

/* Panneau d’info */
.info-panel {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  max-width: 900px;
  width: 100%;
  min-height: 60px;
}

.info-panel strong {
  color: #a81a60;
}

.info-panel p {
  color: #d1d5db;
  line-height: 1.5;
}

.btn-reset {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a81a60;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.btn-reset:hover {
  background: #c91d6f;
  filter: brightness(1.1);
}

.btn-reset.hidden {
  display: none;
}

/* Villes sur la carte */
#cities-layer {
  pointer-events: auto;
}

.city-dot,
.city-label {
  cursor: pointer;
  pointer-events: auto;
  transition: fill 0.2s ease, filter 0.2s ease, stroke-width 0.2s ease;
}

.city-dot {
  fill: #ffffff;
  stroke: #a81a60;
  stroke-width: 1.2;
}

.city-dot:hover {
  fill: #a81a60;
  filter: brightness(1.05);
  stroke-width: 2;
  stroke: #ffffff;
 
}

.city-dot:active {
  fill: #a81a60;
  filter: brightness(1.05);
  stroke-width: 2;
  stroke: #ffffff;
}

.city-label {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  fill: #a81a60;
  stroke: #ffffff;
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  text-anchor: middle;
  dominant-baseline: central;
  white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  pointer-events: auto;
}

.city-label:hover {
  fill: #a81a60;
  stroke: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  font-size: 16px;
  
}

.city-label:active {
  fill: #7a1248;
  stroke: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  text-decoration: underline;
}

/* Badge sur les villes avec créneaux sélectionnés (page sélection journées) */
.city-badge {
  pointer-events: none;
}

.city-badge-bg {
  fill: #a81a60;
  stroke: #fff;
  stroke-width: 1.5;
}

.city-badge-text {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: #fff;
}

/* Chef-lieu de région : label un peu plus mis en avant */
.city-label-capital {
  font-weight: 700;
  font-size: 14px;
}

/* Formulaire lieu */
.form-location {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  max-width: 900px;
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: #171717;
  border-radius: 10px;
  border: 1px solid #262626;
}

.form-location label {
  color: #9ca3af;
  font-size: 0.9rem;
}

.form-location input {
  padding: 0.5rem 0.75rem;
  background: #262626;
  border: 1px solid #404040;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 0.95rem;
}

.form-location input::placeholder {
  color: #6b7280;
}

/* ---------- Composants réutilisables (formulaires, cartes, footer) ---------- */

/* Carte blanche (formulaires, contenu centré) */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 650px;
  background: #fff;
  border-radius: 5px;
  padding: 1.75rem 2rem;
}

/* Titre de page (serif, couleur marque) */
.page-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  color: var(--color-brand);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

/* Formulaire (bloc) */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.input-float-wrap {
  gap: 0;
}

.form-group > label:not(.form-radio-label):not(.form-checkbox-label) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-label);
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-label);
  margin-bottom: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Floating labels */
.input-float {
  position: relative;
  display: block;
}

.input-float input {
  display: block;
  width: 100%;
  padding: 1.1rem 0.75rem 0.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.input-float input::placeholder {
  color: transparent;
}

.input-float input:focus {
  outline: none;
  border-color: #d9d9d9;
}

.input-float label {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 400;
  color: #b0b0b0;
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

.input-float input:focus ~ label,
.input-float input:not(:placeholder-shown) ~ label,
.input-float.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 400;
  color: #b0b0b0;
  background: #fff;
  padding: 0 0.25rem;
  margin-left: -0.25rem;
}

/* Floating label - textarea */
.input-float textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 1.1rem 0.75rem 0.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s;
}

.input-float textarea::placeholder {
  color: transparent;
}

.input-float textarea:focus {
  outline: none;
  border-color: #d9d9d9;
}

.input-float--textarea label {
  top: 1.1rem;
  transform: translateY(0);
}

.input-float textarea:focus ~ label,
.input-float textarea:not(:placeholder-shown) ~ label,
.input-float--textarea.has-value label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 400;
  color: #b0b0b0;
  background: #fff;
  padding: 0 0.25rem;
  margin-left: -0.25rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  background: #fff;
}

.form input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(139, 41, 66, 0.12);
}

/* Radios / checkbox */
.form-radios {
  display: flex;
  gap: 1.25rem;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #374151;
}

.form-radio-label input {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--color-brand);
}

.form-group--checkbox {
  margin-top: 0.25rem;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.45;
}

.form-checkbox-label input {
  margin-top: 0.2em;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}

/* Zone fichier */
.form-file-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: #fafafa;
  padding: 0.55rem 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  max-width: 100%;
  overflow: hidden;
}

.form-file-wrap:focus-within {
  border-color: var(--color-brand);
  background: #fdf2f8;
}

.form-file-wrap input[type="file"] {
  flex: 1;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  min-width: 0;
}

.form-file-wrap input[type="file"]::file-selector-button {
  margin-right: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  color: #4b5563;
}

.form-file-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-file-icon svg {
  width: 18px;
  height: 18px;
}

.form-file-icon--square {
  width: 36px;
  height: 36px;
  background: rgba(139, 41, 66, 0.08);
  border: 1px solid rgba(139, 41, 66, 0.2);
  border-radius: 8px;
  color: var(--color-brand);
}

.form-file-icon--square svg {
  width: 20px;
  height: 20px;
}

/* Actions formulaire */
.form-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Bouton principal */
.btn-primary {
  display: block;
  /*width: 100%;*/
  padding: 0.7rem 1.5rem;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.08);
  background: var(--color-brand-hover);
}

/* Boutons CTA (liens / actions principales) */
.btn-cta {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-cta--pink {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 41, 66, 0.4);
}

.btn-cta--pink:hover {
  filter: brightness(1.08);
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Bouton Valider (page connexion) - même style marque que .btn-cta--pink */
.btn-connexion {
  padding: 0.85rem 1.5rem;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(139, 41, 66, 0.4);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-connexion:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(139, 41, 66, 0.5);
  transform: translateY(-1px);
}

.btn-connexion:active {
  transform: translateY(0);
}

/* Bouton secondaire « En savoir plus » */
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  margin: 0 auto 1.5rem;
  background: #F1E7DD;
  color: #2d282a;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-more:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Bouton « Se connecter » (style global, positionnement selon contexte) */
.btn-login {
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2d282a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-login svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Footer global - toujours en bas de la fenêtre (sticky footer) */
.page-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
}

.page-footer .footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-footer .footer-links a:hover {
  color: var(--color-brand);
}

/* ---------- Pages avec hero (pré-inscription, confirmation) - layout commun ---------- */

body.page-with-hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-with-hero .main-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
}

.page-with-hero .hero-slideshow {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page-with-hero .hero-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.page-with-hero .hero-slide.active {
  opacity: 0.2;
  z-index: 1;
}

.page-with-hero .site-header {
  padding-top: clamp(1.5rem, 4vw, 2rem);
  padding-bottom: 0.5rem;
}

.page-with-hero .page-footer {
  flex-shrink: 0;
}

.page-with-hero .page-footer .footer-links a {
  color: var(--color-brand);
}

.page-with-hero .page-footer .footer-links a:hover {
  color: var(--color-brand-hover);
}

/* ---------- Pages sans header (logo dans le contenu) ---------- */
body.page-with-hero .site-header,
body.page-home .site-header,
body.page-connexion .site-header {
  display: none;
}

/* Afficher le header sur les espaces connectés (nom + Quitter) */
body.page-show-header .site-header {
  display: block;
}

/* ---------- Layout de page centré (confirmation, sélection, etc.) ---------- */
.page-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: auto;
}

.page-content-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-content-inner--narrow {
  max-width: 560px;
}

.page-content-inner--wide {
  max-width: 1100px;
}

/* ---------- Ergonomie mobile (touch, safe-area, lisibilité) ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem max(1rem, var(--safe-area-left)) 0.75rem max(1rem, var(--safe-area-right));
  }

  .site-header__logo img {
    width: 140px;
    height: 140px;
  }

  body {
    padding: 0.75rem;
    padding-left: max(0.75rem, var(--safe-area-left));
    padding-right: max(0.75rem, var(--safe-area-right));
  }

  .map-wrap {
    height: min(380px, 60vh);
  }

  .card {
    padding: 1.25rem 1.25rem;
    padding-left: max(1.25rem, var(--safe-area-left));
    padding-right: max(1.25rem, var(--safe-area-right));
  }

  .page-content {
    padding: 1rem;
    padding-left: max(1rem, var(--safe-area-left));
    padding-right: max(1rem, var(--safe-area-right));
    padding-bottom: max(1rem, var(--safe-area-bottom));
  }

  .btn-reset,
  .btn-primary,
  .btn-secondary {
    min-height: var(--touch-min);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .content-logo {
    width: 100px;
    height: 100px;
  }

  .content-title {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .content-intro,
  .content-intro--sub {
    font-size: 0.95rem;
  }

  /* Éviter le zoom automatique sur iOS (focus sur input) */
  .input-float input,
  .input-float textarea {
    font-size: 1rem;
  }

  .form-file-wrap {
    flex-wrap: wrap;
  }

  .form-file-wrap input[type="file"] {
    width: 100%;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .site-header__logo img {
    width: 120px;
    height: 120px;
  }

  .map-wrap {
    height: min(320px, 55vh);
  }

  .card {
    padding: 1rem;
  }
}

/* Logo dans le contenu (page confirmation / sélection) */
.content-logo-link {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.content-logo {
  width: 120px;
  height: 120px;
}

/* Titre de page (type confirmation / sélection) */
.content-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-brand);
  text-align: center;
  margin: 0 0 0.75rem;
}

/* Intro / instruction sous le titre */
.content-intro {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #374151;
  text-align: center;
  margin: 0 0 0.35rem;
  line-height: 1.5;
}

.content-intro--sub {
  margin-bottom: 1.5rem;
}

/* Carte blanche (agenda, formulaire, etc.) */
.content-card {
  width: 100%;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.content-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1.25rem;
}

/* Labels de section (région / ville) */
.label-region {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.label-city {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  text-transform: none;
}

/* Champ en lecture seule */
.field-readonly {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111827;
  border-radius: 8px;
  box-sizing: border-box;
  appearance: none;
  pointer-events: none;
}

/* Badges / tags (horaires, créneaux) */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  color: var(--color-brand);
  font-weight: 500;
  background: rgba(168, 26, 96, 0.08);
  border: 1px solid rgba(168, 26, 96, 0.25);
  border-radius: 50px;
}

.tag--brand {
  color: var(--color-brand);
  background: rgba(168, 26, 96, 0.08);
  border-color: rgba(168, 26, 96, 0.25);
}

/* Bouton secondaire (annuler, retour) */
.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid #d1d5db;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

/* Utilitaire masquer */
.hidden {
  display: none !important;
}

/* ---------- Pages type landing (accueil, connexion) - Mise en page commune ---------- */

body.page-home,
body.page-connexion {
  font-family: 'Trenda', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: #1a1a1a;
}

.landing-layout {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.layout-left {
  position: relative;
  z-index: 1;
  flex: 0 0 55%;
  min-width: 320px;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.layout-left-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(0 0 0 / 30%);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  pointer-events: none;
}

.layout-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-left: max(clamp(1.5rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 4vw, 2.5rem), env(safe-area-inset-right));
  padding-bottom: max(clamp(1.5rem, 4vw, 2.5rem), env(safe-area-inset-bottom));
  min-height: 0;
}

.page-home .logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .logo {
  width: 200px;
  height: 200px;
}

.page-home .welcome {
  color: rgba(241, 231, 221, 0.92);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 500;
  margin: 0;
}

.page-home .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.content-sep {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 0 1rem;
}

/* Bouton Connexion en haut à droite, position fixe (page accueil) */
.home-connexion-fixed {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 100;
}

.home-connexion-fixed--mobile {
  display: none;
}

.home-connexion-fixed .btn-more--connexion {
  margin: 0;
}

/* Bloc « En savoir plus » centré sous le texte du Salon */
.info-block-more {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.info-block-more .btn-more {
  margin: 0;
}

.page-home .info-block {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #fff;
  line-height: 1.7;
}

.page-home .info-block h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #F1E7DD;
  line-height: 1.35;
  text-align: left;
}

.page-home .info-block p {
  margin-bottom: 0.9rem;
  color: rgba(241, 231, 221, 0.9);
}

.page-home .info-block p:last-child {
  margin-bottom: 0;
}

.page-home .page-footer,
.page-connexion .page-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.page-home .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  justify-content: center;
}

.page-home .footer-links a,
.page-connexion .footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.page-home .footer-links a:hover,
.page-connexion .footer-links a:hover {
  color: #fff;
}

/* Hero slideshow - landing (opacité pleine) */
body.page-home .hero-slideshow,
body.page-connexion .hero-slideshow {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

body.page-home .hero-slide,
body.page-connexion .hero-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

body.page-home .hero-slide.active,
body.page-connexion .hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.page-home .cta-buttons .btn-login--in-cta {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.5rem);
  right: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 2;
}

@media (max-width: 900px) {
  .landing-layout {
    flex-direction: column;
  }

  .layout-left {
    max-width: none;
    flex: 1 1 auto;
    min-height: 60vh;
  }

  .page-home .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .page-home .cta-buttons a,
  .page-home .cta-buttons button {
    width: 100%;
    box-sizing: border-box;
  }

  .page-home .cta-buttons .btn-login--in-cta {
    position: static;
  }

  .home-connexion-fixed--desktop {
    display: none;
  }

  .home-connexion-fixed--mobile {
    display: block;
    position: static;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .page-home .logo {
    width: 160px;
    height: 160px;
  }

  .page-home .cta-buttons a,
  .page-home .cta-buttons button {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-home .cta-buttons .btn-login--in-cta {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }

  .page-home .page-footer,
  .page-connexion .page-footer {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .page-home .info-block {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .page-home .logo {
    width: 130px;
    height: 130px;
  }

  .page-home .welcome {
    font-size: 0.95rem;
  }

  .page-home .info-block h2 {
    font-size: 1.2rem;
  }

  .page-home .info-block p {
    font-size: 0.95rem;
  }
}

/* ---------- Page connexion - formulaire ---------- */

.connexion-form-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
  padding: 2rem 0;
  max-width: 420px;
  margin: 0 auto;
}

.connexion-form-block .logo-link {
  display: block;
  line-height: 0;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.connexion-form-block .logo {
  width: 180px;
  height: 180px;
}

.connexion-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.connexion-instruction {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.connexion-error {
  color: #fff;
  background: rgba(220, 53, 69, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.connexion-back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.connexion-back a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.connexion-back a:hover {
  text-decoration: underline;
}

.connexion-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.connexion-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-label);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#email-connexion.connexion-input,
#code-connexion.connexion-input {
  text-align: center;
}

.connexion-input::placeholder {
  color: var(--color-text-muted);
}

.connexion-input:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.connexion-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(139, 41, 66, 0.2);
}

.connexion-label-type {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.25rem;
  text-align: left;
}

.connexion-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text-label);
  cursor: pointer;
}

@media (max-width: 768px) {
  .connexion-form-block {
    padding: 1.5rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .connexion-form-block .logo {
    width: 140px;
    height: 140px;
  }

  .connexion-input,
  .connexion-select {
    min-height: 44px;
    font-size: 1rem;
  }

  .connexion-form .btn-primary {
    min-height: 44px;
    padding: 0.85rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .connexion-form-block .logo {
    width: 120px;
    height: 120px;
  }
}

/* Modale de chargement (upload certificat) */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.loading-overlay--visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.loading-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.loading-overlay__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.loading-overlay__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #c41e77;
  border-radius: 50%;
  animation: loading-overlay-spin 0.8s linear infinite;
}
@keyframes loading-overlay-spin {
  to { transform: rotate(360deg); }
}
.loading-overlay__text {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.confirmation-summary {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.confirmation-summary__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #333;
}
.confirmation-summary__list {
  margin: 0;
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: auto 1fr;
  font-size: 0.95rem;
}
.confirmation-summary__list dt {
  margin: 0;
  font-weight: 500;
  color: #555;
}
.confirmation-summary__list dd {
  margin: 0;
  color: #333;
}

@media (max-width: 600px) {
  .confirmation-summary__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .confirmation-summary__list dt {
    padding-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
  }
  .confirmation-summary__list dd {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .confirmation-summary__list dd:last-of-type {
    border-bottom: none;
  }
}

.form-label-optional {
  font-weight: normal;
  color: #666;
  font-size: 0.9em;
}
.card--confirmation .confirmation-actions {
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.card--confirmation .confirmation-actions .btn-primary,
.card--confirmation .confirmation-actions .btn-secondary {
  display: inline-block;
  width: auto;
  text-decoration: none;
}
.card--confirmation .confirmation-actions .btn-primary:hover,
.card--confirmation .confirmation-actions .btn-secondary:hover {
  text-decoration: none;
}

/* Modale Cookies (footer) */
.cookies-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 1rem;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.cookies-modal-overlay:not(.cookies-modal--hidden) {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.cookies-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
/* Centrage horizontal relatif au footer (left fixé par JS), vertical au viewport */
.cookies-modal-box {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  background: var(--color-bg-card, #fff);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.cookies-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.cookies-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text, #333);
}
.cookies-modal-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cookies-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
.cookies-modal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text, #333);
}
.cookies-modal-body p {
  margin: 0 0 0.75rem;
}
.cookies-modal-body p:last-child {
  margin-bottom: 0;
}

/* Modale erreur préinscription (email déjà utilisé) */
.preinscription-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.preinscription-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.preinscription-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.preinscription-modal-box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.preinscription-modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}
.preinscription-modal-text {
  margin: 0 0 1.25rem;
  color: var(--color-text, #333);
}
.preinscription-modal-actions {
  margin: 0;
}
