/* style.css */
:root {
  --accent: #ff6b6b;         
  --accent-dark: #e05555;
  --bg: #fff8f2;             
  --card: #ffffff;
  --text: #333;
  --shadow: rgba(0,0,0,0.08);
  --font: 'HSR';
}
@font-face {
  font-family: 'HSR';
  src: url('https://raw.githubusercontent.com/HDSachaNewLive/polices-discord/b6235ae7a94601cdc54a11b065f75cd68de13a01/HSR.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* {
  box-sizing: border-box;
}

body {
  font-family: 'HSR';
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: var(--accent); transition: 0.3s; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--card);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow);
}

h1, h2 {
  color: var(--accent);
  margin-top: 0;
  font-weight: 700;
}

h1 { font-size: 2.5rem; text-align: center; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; }

p { line-height: 1.6; margin-bottom: 12px; }

.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}

.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 5px rgba(255,107,107,0.3);
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  margin: 6px 4px 0 0;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.links { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }

.error, .success {
  padding: 10px 15px;
  border-radius: 8px;
  margin: 10px 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.error { background: #ffdede; color:#700; }
.success { background: #e6ffe6; color:#060; }

.foot { margin-top: 20px; font-size: 0.9rem; color: #999; text-align: center; }

button, input[type=submit], input[type=button] {
    font-family: 'HSR';
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* page transition (oe je sais c pas ouf visuellement mais calme toi)*/
#page {
  transition: opacity 0.45s ease, transform 0.45s ease;
  opacity: 1;
  transform: translateX(0);
  will-change: opacity, transform;
}

.page-exit {
  opacity: 0;
  transform: translateX(-30px);
}

.page-enter {
  opacity: 0;
  transform: translateX(30px);
}
.page-enter-active {
  opacity: 1;
  transform: translateX(0);
}


/*liste restos & cartes */
.resto-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 15px;
}

.resto-card {
  flex: 1 1 250px;
  background: var(--card);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.resto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px var(--shadow);
}

.resto-card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.3rem;
}

.resto-card p {
  margin: 6px 0;
  color: #555;
  font-size: 0.95rem;
}



#map { 
  height: 450px; 
  width: 100%; 
  border-radius: 15px;
  margin-bottom: 20px; 
  box-shadow: 0 6px 18px var(--shadow);
}

/* Table dans les panier */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
}

table th {
  background: var(--accent);
  color: white;
}

table tr:nth-child(even) {
  background: #f9f9f9;
}

table tr:hover {
  background: #ffe6e6;
}

/* -profil user */
.profile {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 18px var(--shadow);
}

.profile h2 {
  margin-top: 0;
  color: var(--accent);
}

.profile-info p {
  font-size: 1rem;
  margin: 10px 0;
  color: #555;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* --- modification*/
.form-section {
  background: var(--card);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 18px var(--shadow);
  margin-top: 20px;
}

/* commentaires et nots */
.comment-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 12px var(--shadow);
}

.comment-box .author {
  font-weight: bold;
  color: var(--accent);
}

.comment-box .stars {
  color: gold;
  margin: 5px 0;
}

.comment-form textarea {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  margin-top: 20px;
  margin: 10px 0;
  border: 1px solid #ddd;
}

.comment-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.comment-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/*style avis & formulaires - */
textarea, select, input[type="text"], input[type="number"] {
  font-family: 'HSR';
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 10px var(--shadow);
}

textarea:focus, select:focus, input[type="text"]:focus, input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
  outline: none;
}

.resto-card {
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px var(--shadow);
}

.comment-box {
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 20px var(--shadow);
}

/* boutons petits (répondre/supprimer) cohérents avec btn */
.btn-small, .btn-red, .btn-blue {
  font-family: 'HSR';
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-small:hover, .btn-red:hover, .btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* paiement, livraison suivi etc */
.payment-summary {
  background: var(--card);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 18px var(--shadow);
}

.payment-summary h3 {
  color: var(--accent);
}

.tracking {
  margin-top: 20px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.tracking-step {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracking-step.complete {
  color: green;
}

.tracking-step.pending {
  color: #999;
}

/* input nombre panier */
input[type=number] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 60px;
}

/* */
footer { text-align:center; color:#aaa; margin-top:30px; font-size:0.85rem; }

/* */
@media(max-width:768px) {
  .resto-list { flex-direction: column; }
  .links { flex-direction: column; }
}

/*barre latérale sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #222;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}
.sidebar a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: #f1f1f1;
  display: block;
  transition: 0.3s;
}
.sidebar a:hover { color: #ff6b6b; }
.sidebar .closebtn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #ff6b6b;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius:5px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index:10000;
}

/* Nouvelle classe bouton alternatif */
.btn-alt {
  background-color: #6b6bff;
  color: #fff;
  border-radius: 5px;
  padding: 8px 12px;
  transition: 0.3s;
}
.btn-alt:hover { background-color: #5555ff; }

/* bouton répondre commentaire et supprimer avis */
.resto-card { position: relative; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 15px; padding: 10px 15px; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,0.1);}
.btn-red { background: #e74c3c; color: #fff; padding: 5px 10px; border-radius: 5px; border: none; cursor: pointer;}
.btn-blue { background: #3498db; color: #fff; padding: 5px 10px; border-radius: 5px; border: none; cursor: pointer;}
.reply { background: #f1f1f1; padding: 5px 8px; border-left: 3px solid #3498db; margin-top: 5px;}


/* fond 3D stylé supprimer si besoin*/ 
/*visible derrière tout le contenu (logique hein)*/
body {
  background: none !important;
  overflow-x: hidden;
}

/* pour que le contenu flotte au-dessus */
* {
  position: relative;
  z-index: 2;
}

/* la zone du fond 3D */
canvas.vanta-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
}

/* fond du container transparent */
main.container {
  background: transparent !important;
}
/* transition 3D sur les pages d'acceuil*/
.page-wrapper {
  perspective: 1200px;
  overflow: hidden;
}

.page {
  transform: rotateY(-90deg);
  opacity: 0;
}

.flip-in {
  transform: rotateY(0deg);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.flip-out {
  transform: rotateY(90deg);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
