@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "PermanentMarker";
  src: url(../fonts/PermanentMarker-Regular.ttf);
}

:root {
  --brun-nuit: #3a2c1e; /* remonté d'un niveau (était #241b13, = ancien brun-carte) */
  --brun-carte: #5c4832; /* remonté d'un niveau (était #3a2c1e, = brun de la navbar) */
  --orange: #ff7a1a;
  --orange-fonce: #d9550a;
  --creme: #ffffff; /* blanc pur (test) — était #fdf3e7 */
  --creme-mate: #cbb79c; /* légèrement éclairci pour rester lisible sur des cartes plus claires */
  --texte-page-mate: #7a6a58; /* texte secondaire posé directement sur le fond clair (pas sur une carte) */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", sans-serif;
  background-color: #fdf3e7;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 122, 26, 0.08),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 122, 26, 0.06),
      transparent 45%
    );
  color: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.page-compte {
  width: 100%;
  max-width: 420px;
}

/* ---- La carte façon "billet d'entrée" ---- */

.ticket-carte {
  background: var(--brun-carte);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ticket-entete {
  background: var(--orange);
  padding: 26px 30px 22px;
  text-align: center;
}

.ticket-entete .logo {
  font-family: "PermanentMarker", cursive;
  font-size: 28px;
  color: var(--brun-nuit);
  letter-spacing: 1px;
  margin: 0;
}

.ticket-entete .sous-titre {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(22, 17, 12, 0.65);
  font-weight: 600;
  margin: 4px 0 0;
}

/* ---- Ligne de déchirure entre le talon et le corps du billet ---- */

.ticket-perforation {
  position: relative;
  height: 0;
  border-top: 2px dashed rgba(253, 243, 231, 0.3);
  margin: 0 0;
}

.ticket-perforation::before,
.ticket-perforation::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brun-nuit);
}

.ticket-perforation::before {
  left: -10px;
}
.ticket-perforation::after {
  right: -10px;
}

.ticket-corps {
  padding: 30px;
}

.ticket-corps h1 {
  font-family: "PermanentMarker", cursive;
  font-size: 22px;
  color: var(--orange);
  margin: 0 0 22px;
  text-align: center;
}

/* ---- Formulaire ---- */

.champ {
  margin-bottom: 16px;
}

.champ label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--creme-mate);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.champ input {
  width: 100%;
  padding: 12px 14px;
  background: var(--brun-nuit);
  border: 1px solid rgba(253, 243, 231, 0.15);
  border-radius: 10px;
  color: var(--creme);
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.champ input:focus {
  outline: none;
  border-color: var(--orange);
}

.ligne-double {
  display: flex;
  gap: 12px;
}

.ligne-double .champ {
  flex: 1;
}

.btn-ticket {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: var(--orange);
  color: var(--brun-nuit);
  border: none;
  border-radius: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.btn-ticket:hover {
  background: var(--orange-fonce);
  transform: translateY(-1px);
}

.lien-secondaire {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--creme-mate);
}

.lien-secondaire a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.lien-secondaire a:hover {
  text-decoration: underline;
}

/* ---- Messages ---- */

.message-erreur {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff8a94;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.message-succes {
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.4);
  color: var(--orange);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
}

.mode-dev {
  font-size: 12px;
  color: var(--creme-mate);
  background: rgba(253, 243, 231, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
}

.mode-dev a {
  color: var(--orange);
}

@media (max-width: 480px) {
  .ligne-double {
    flex-direction: column;
    gap: 0;
  }
}

/* ---- Empêche le navigateur de forcer un fond clair sur l'autofill ---- */

.champ input:-webkit-autofill,
.champ input:-webkit-autofill:hover,
.champ input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--brun-nuit);
}

/* ============================================================
   PAGES LARGES (liste attractions, etc.) - remplace le centrage
   utilisé pour les cartes de connexion/inscription
   ============================================================ */

body.page-large {
  display: block;
  padding: 0 0 60px;
}

.conteneur-large {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.entete-page {
  text-align: center;
  padding: 50px 20px 30px;
}

.entete-page h1 {
  font-family: "PermanentMarker", cursive;
  font-size: 34px;
  color: var(--orange);
  margin: 0 0 6px;
}

.entete-page p {
  color: var(--texte-page-mate);
  margin: 0;
}

/* ---- Barre de filtres ---- */

.filtres-attractions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: var(--brun-carte);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 30px;
}

.filtres-attractions .champ {
  margin-bottom: 0;
  min-width: 180px;
  flex: 1;
}

.filtres-attractions select {
  width: 100%;
  padding: 12px 14px;
  background: var(--brun-nuit);
  border: 1px solid rgba(253, 243, 231, 0.15);
  border-radius: 10px;
  color: var(--creme);
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
}

.filtres-attractions .btn-ticket {
  width: auto;
  padding: 12px 26px;
  margin-top: 0;
  white-space: nowrap;
}

.filtres-attractions .btn-reset {
  background: transparent;
  color: var(--creme-mate);
  border: 1px solid rgba(253, 243, 231, 0.15);
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  align-self: flex-end;
}

.filtres-attractions .btn-reset:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---- Grille de cartes attractions ---- */

.grille-attractions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.carte-attraction {
  background: var(--brun-carte);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.carte-attraction:hover {
  transform: translateY(-4px);
}

.carte-attraction .visuel {
  height: 160px;
  background-color: rgba(255, 122, 26, 0.12);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 15px;
  text-align: center;
  position: relative;
}

.carte-attraction .contenu {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.carte-attraction h3 {
  font-family: "PermanentMarker", cursive;
  font-size: 18px;
  color: var(--creme);
  margin: 0 0 8px;
}

.carte-attraction .description {
  color: var(--creme-mate);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 14px;
  flex: 1;
}

.badges-attraction {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-info {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--orange);
}

.badge-info.age {
  background: rgba(253, 243, 231, 0.08);
  color: var(--creme-mate);
}

.carte-attraction .pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carte-attraction .prix {
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 17px;
}

.btn-voir {
  background: var(--orange);
  color: var(--brun-nuit);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-voir:hover {
  background: var(--orange-fonce);
}

.btn-ban {
  background: transparent;
  color: #ff8a94;
  border: 1px solid rgba(255, 138, 148, 0.4);
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-ban:hover {
  background: rgba(220, 53, 69, 0.15);
}

.carte-attraction .btn-voir {
  background: var(--orange);
  color: var(--brun-nuit);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.carte-attraction .btn-voir:hover {
  background: var(--orange-fonce);
}

.aucun-resultat {
  text-align: center;
  color: var(--texte-page-mate);
  padding: 60px 20px;
  font-size: 16px;
}

/* ============================================================
   FICHE DÉTAIL D'UNE ATTRACTION
   ============================================================ */

.fil-retour {
  display: inline-block;
  color: var(--texte-page-mate);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
}

.fil-retour:hover {
  color: var(--orange);
}

.fiche-attraction {
  background: var(--brun-carte);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 40px;
}

.fiche-visuel {
  height: 260px;
  background-color: rgba(255, 122, 26, 0.12);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 20px;
}

.fiche-corps {
  padding: 30px;
}

.fiche-corps h1 {
  font-family: "PermanentMarker", cursive;
  color: var(--creme);
  font-size: 28px;
  margin: 0 0 12px;
}

.fiche-corps .description {
  color: var(--creme-mate);
  line-height: 1.6;
  margin: 16px 0 24px;
}

.fiche-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fiche-pied .prix {
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 26px;
}

/* ---- Section avis ---- */

.section-avis h2 {
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 22px;
  margin-bottom: 6px;
}

.note-moyenne {
  color: var(--texte-page-mate);
  font-size: 14px;
  margin-bottom: 24px;
}

.note-moyenne .etoiles {
  color: var(--orange);
  letter-spacing: 2px;
}

.liste-avis {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avis-carte {
  background: var(--brun-carte);
  border-radius: 12px;
  padding: 18px 22px;
}

.avis-carte .avis-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.avis-carte .auteur {
  font-weight: 600;
  color: var(--creme);
}

.avis-carte .etoiles {
  color: var(--orange);
  letter-spacing: 2px;
}

.avis-carte .date {
  color: var(--creme-mate);
  font-size: 12px;
}

.avis-carte .message {
  color: var(--creme-mate);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   NAVBAR PUBLIQUE
   ============================================================ */

.navbar-public {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 30px;
  background: var(--brun-carte);
  border-bottom: 1px solid rgba(255, 122, 26, 0.25);
}

.nav-logo {
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 22px;
  text-decoration: none;
}

.nav-liens {
  display: flex;
  gap: 26px;
}

.nav-liens a {
  color: var(--creme);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-liens a:hover {
  color: var(--orange);
}

.nav-compte {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-bonjour {
  color: var(--creme-mate);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.nav-bonjour:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.nav-lien-secondaire {
  color: var(--creme-mate);
  text-decoration: none;
  font-size: 14px;
}

.nav-lien-secondaire:hover {
  color: var(--orange);
}

.nav-btn {
  background: var(--orange);
  color: var(--brun-nuit);
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.nav-btn:hover {
  background: var(--orange-fonce);
}

@media (max-width: 700px) {
  .navbar-public {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PAGE D'ACCUEIL
   ============================================================ */

.hero {
  text-align: center;
  padding: 70px 20px 50px;
}

.hero h1 {
  font-family: "PermanentMarker", cursive;
  font-size: 42px;
  color: var(--orange);
  margin: 0 0 12px;
}

.hero p {
  color: var(--texte-page-mate);
  font-size: 16px;
  margin: 0 0 26px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta a {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}

.hero-cta .cta-principal {
  background: var(--orange);
  color: var(--brun-nuit);
}

.hero-cta .cta-principal:hover {
  background: var(--orange-fonce);
}

.hero-cta .cta-secondaire {
  background: transparent;
  color: var(--brun-nuit);
  border: 1px solid rgba(36, 27, 19, 0.3);
}

.hero-cta .cta-secondaire:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.badge-mois {
  display: inline-block;
  background: var(--orange);
  color: var(--brun-nuit);
  font-family: "PermanentMarker", cursive;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 40px 0 16px;
}

.section-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 50px 0 20px;
}

.section-titre h2 {
  font-family: "PermanentMarker", cursive;
  color: var(--orange);
  font-size: 22px;
  margin: 0;
}

.section-titre a {
  color: var(--texte-page-mate);
  text-decoration: none;
  font-size: 14px;
}

.section-titre a:hover {
  color: var(--orange);
}
