/* ===== Getawai — Styles ===== */

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

:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
  color: white;
  padding-bottom: 60px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo span { color: #fbbf24; }

.hero-content {
  text-align: center;
  padding: 40px 20px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== Container ===== */
.container {
  max-width: 640px;
  margin: -40px auto 60px;
  padding: 0 20px;
}

/* ===== Form ===== */
.form-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 32px;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Budget slider */
.budget-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
}

.budget-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  min-width: 90px;
  text-align: right;
}

/* Counter */
.counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.counter button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.counter span {
  font-size: 20px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--primary); }

.chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}

/* Toggle */
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle {
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.toggle.selected {
  background: #ecfeff;
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Text input */
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 15px;
  outline: none;
  transition: border 0.15s;
}

input[type="text"]:focus { border-color: var(--primary); }

/* Submit */
.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.submit-btn:hover { background: #d97706; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Classe utilitaire : elle doit l'emporter sur le display d'un composant.
   Sans !important, une règle définie plus bas dans le fichier et de même
   spécificité (ex. .choice-card { display: flex }) annulerait le masquage. */
.hidden { display: none !important; }

/* ===== Results ===== */
.results {
  margin-top: 32px;
}

.results h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.results-content {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 32px;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
}

/* Invitation à créer un compte, affichée quand le quota gratuit est atteint.
   Rendue dans le bloc de résultats, qui est en pre-wrap : on remet un
   affichage normal pour que le bouton se comporte comme un bouton. */
.quota-cta {
  display: block;
  width: fit-content;
  margin-top: 20px;
  padding: 14px 28px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== Nav auth links ===== */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.nav-auth a, .nav-auth button {
  color: white;
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  opacity: 0.9;
}

.nav-auth a:hover, .nav-auth button:hover { opacity: 1; }

.nav-auth .nav-cta {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 20px;
}

/* ===== Auth forms (login / register) ===== */
.auth-container {
  max-width: 420px;
  margin: -40px auto 60px;
  padding: 0 20px;
}

.auth-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 32px;
}

.auth-card h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.auth-card .auth-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-card label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: 18px;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 15px;
  outline: none;
  transition: border 0.15s;
}

.auth-card input:focus { border-color: var(--primary); }

.auth-card .submit-btn { margin-top: 24px; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.auth-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
}

.form-message.success {
  background: #f0fdf4;
  color: #166534;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .form-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ===== Écrans (page utilisateur en 4 vues) ===== */

/* Le catalogue et la fiche détaillée ont besoin de plus de largeur que le
   formulaire, qui reste volontairement étroit pour rester lisible. */
.container.wide { max-width: 1000px; }

.logo { text-decoration: none; color: inherit; cursor: pointer; }

/* Le conteneur remonte sur le dégradé du hero (margin-top négatif) : un bouton
   texte en bleu y serait illisible. Une pastille blanche le rend lisible sur
   le dégradé comme sur le fond clair. */
.back-btn {
  display: inline-block;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  transition: all 0.15s;
}

.back-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.screen-title {
  font-size: 22px;
  margin-bottom: 20px;
}

/* ===== Écran 1 — Les deux cartes de choix ===== */
/* auto-fit : la grille accepte 2 cartes (visiteur) ou 3 (connecté, avec
   « Mes plans ») sans règle supplémentaire. */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 28px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

/* Le parcours IA est l'offre mise en avant : bordure ambre plus marquée. */
.choice-card.featured { border: 2px solid var(--accent); }
.choice-card.featured:hover { border-color: var(--accent); }

.choice-icon { font-size: 34px; line-height: 1; }

.choice-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.choice-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.choice-cta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.choice-card.featured .choice-cta { color: #d97706; }

/* ===== Écran 3 — Grille du catalogue ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.trip-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.trip-card:hover,
.trip-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12);
  outline: none;
}

.trip-card-cover {
  height: 170px;
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trip-card-placeholder { font-size: 44px; }

.trip-card-body { padding: 18px 20px 20px; }

.trip-card-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.trip-card-meta {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.trip-card-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 12px;
}

.trip-card-budget {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

/* États de chargement / erreur / catalogue vide */
.catalog-state {
  text-align: center;
  color: var(--text-light);
  padding: 30px 20px;
}

.catalog-error { color: #b91c1c; }

.catalog-empty {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 48px 28px;
  text-align: center;
}

.catalog-empty-icon { font-size: 46px; margin-bottom: 14px; }

.catalog-empty h3 { font-size: 20px; margin-bottom: 10px; }

.catalog-empty p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto 22px;
}

.catalog-empty-cta { max-width: 340px; margin: 0 auto; }

/* ===== Écran 4 — Fiche détaillée ===== */
.trip-title { font-size: 28px; margin-bottom: 6px; }

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.trip-meta span {
  background: #ecfeff;
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
}

.trip-meta span:last-child { background: #fef3c7; color: #b45309; }

.trip-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.trip-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.trip-block {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 28px;
  margin-bottom: 24px;
}

.trip-block h3 { font-size: 18px; margin-bottom: 16px; }

/* pre-wrap : conserve les retours à la ligne saisis par l'admin. */
.trip-description {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
}

.trip-map {
  height: 380px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}

.trip-places { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.trip-places li {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}

.trip-place-name { font-weight: 700; font-size: 15px; }

.trip-place-note { font-size: 14px; color: var(--text-light); }

/* ===== Écran 5 — Mes plans ===== */
.plans-list { display: flex; flex-direction: column; gap: 16px; }

.plan-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 22px 24px;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.plan-card-head h3 { font-size: 17px; margin-bottom: 4px; }

.plan-card-meta {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

.plan-card-date {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.plan-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.plan-card-actions button {
  border: 1.5px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.plan-card-actions button:hover { border-color: var(--primary); color: var(--primary); }
.plan-card-actions button.danger:hover { border-color: #dc2626; color: #dc2626; }
.plan-card-actions button:disabled { opacity: 0.6; cursor: not-allowed; }

.plan-card-nocontent { font-size: 12px; color: var(--text-light); }

/* pre-wrap : conserve la mise en forme du texte généré par l'IA. */
.plan-card-content {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .choice-grid { grid-template-columns: 1fr; }
  .trip-map { height: 300px; }
  .trip-title { font-size: 23px; }
  .plan-card-head { flex-direction: column; }
  .plan-card-actions { width: 100%; }
}

/* ===== Hero compact (pages d'information) ===== */
.hero-compact { padding-bottom: 40px; }
.hero-compact .hero-content { padding: 24px 20px 10px; }
.hero-compact .hero-content h1 { font-size: clamp(24px, 4vw, 34px); }

/* ===== Pages de contenu (FAQ, conditions, contact) ===== */
.page-container {
  max-width: 860px;
  margin: -30px auto 60px;
  padding: 0 20px;
}

.page-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 32px;
  margin-bottom: 24px;
}

.page-card > h2 { font-size: 20px; margin-bottom: 16px; }

/* --- Conditions d'utilisation --- */
.legal h2 {
  font-size: 18px;
  margin: 28px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
}

.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal p { margin-bottom: 12px; font-size: 15px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 7px; font-size: 15px; }
.legal a { color: var(--primary); font-weight: 600; }

/* --- FAQ : <details> natif, aucun JavaScript nécessaire --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq-item:last-of-type { border-bottom: none; }

.faq-item summary {
  cursor: pointer;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Chevron qui pivote à l'ouverture */
.faq-item summary::after {
  content: '⌄';
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(180deg); top: 16px; }
.faq-item summary:hover { color: var(--primary); }

.faq-answer { padding: 0 10px 18px 0; }
.faq-answer p { font-size: 15px; color: var(--text-light); margin-bottom: 10px; }
.faq-answer a { color: var(--primary); font-weight: 600; }

/* --- Bloc d'appel à l'action en bas de page --- */
.page-cta {
  text-align: center;
  padding: 36px 24px;
  background: #ecfeff;
  border-radius: 16px;
}

.page-cta h2 { font-size: 20px; margin-bottom: 8px; }
.page-cta p { color: var(--text-light); margin-bottom: 20px; }
.page-cta-btn { display: inline-block; text-decoration: none; padding: 14px 32px; width: auto; }

/* ===== Page contact ===== */
.contact-grid { display: grid; gap: 24px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.contact-card:not(.contact-card-static):hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-ico { font-size: 26px; }
.contact-label { font-size: 13px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-value { font-size: 16px; font-weight: 700; color: var(--primary-dark); word-break: break-word; }
.contact-value a { color: inherit; }
.contact-note { font-size: 13px; color: var(--text-light); }

.contact-intro { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: white;
}

.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form textarea:focus, .contact-form select:focus { border-color: var(--primary); }

/* ===== Pied de page ===== */
.footer {
  background: #0f2b3d;
  color: #cbd5e1;
  padding: 48px 5% 0;
  border-top: none;
  text-align: left;
  font-size: 14px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-logo { font-size: 20px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-logo span { color: #fbbf24; }

.footer-brand p { line-height: 1.7; max-width: 320px; }

.footer-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a { color: #cbd5e1; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: #fbbf24; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-ico { flex-shrink: 0; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-legal { display: flex; gap: 10px; align-items: center; }
.footer-legal a { color: #94a3b8; text-decoration: none; }
.footer-legal a:hover { color: #fbbf24; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-card { padding: 22px; }
}

/* ===== Atouts (page d'accueil) ===== */
.atouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.atout {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.atout-ico { font-size: 26px; display: block; margin-bottom: 10px; }
.atout h3 { font-size: 15px; margin-bottom: 6px; }
.atout p { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }

/* ===== Étoiles ===== */
.stars { color: var(--accent); font-size: 16px; letter-spacing: 1px; }
.stars-empty { color: var(--border); }

/* ===== Aperçu des avis (accueil) ===== */
.avis-apercu { margin-top: 44px; }

.avis-apercu-entete { text-align: center; margin-bottom: 24px; }

.avis-apercu-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 30px;
  padding: 8px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.avis-note-chiffre { font-size: 22px; font-weight: 800; color: var(--text); }
.avis-apercu-total { font-size: 13px; color: var(--text-light); font-weight: 600; }
.avis-apercu-entete h2 { font-size: 21px; }

.avis-apercu-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.avis-voir-tout {
  display: block;
  margin: 22px auto 0;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s;
}

.avis-voir-tout:hover { border-color: var(--primary); background: white; }

/* ===== Cartes d'avis ===== */
.avis-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.avis-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  padding: 22px;
}

.avis-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.avis-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

.avis-nom { font-weight: 700; font-size: 15px; }
.avis-date { font-size: 12.5px; color: var(--text-light); }
.avis-texte { font-size: 14.5px; line-height: 1.7; margin-top: 10px; color: var(--text); }
.avis-dest { font-size: 13px; color: var(--text-light); margin-top: 10px; font-weight: 600; }

/* ===== Écran des avis ===== */
.avis-resume { text-align: center; margin-bottom: 26px; }
.avis-resume-note { font-size: 42px; font-weight: 800; line-height: 1; }
.avis-resume-total { font-size: 14px; color: var(--text-light); margin-top: 6px; }

.avis-invite, .avis-form {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  padding: 26px;
  margin-bottom: 28px;
}

.avis-invite { text-align: center; }
.avis-invite h3 { font-size: 18px; margin-bottom: 8px; }
.avis-invite p { color: var(--text-light); font-size: 14.5px; }
.avis-invite-btn { display: inline-block; width: auto; margin-top: 16px; padding: 12px 28px; text-decoration: none; }

.avis-form h3 { font-size: 18px; margin-bottom: 20px; }

.avis-form input[type="text"], .avis-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.avis-form textarea { resize: vertical; line-height: 1.6; }
.avis-form input:focus, .avis-form textarea:focus { border-color: var(--primary); }

.champ-optionnel { font-weight: 400; color: var(--text-light); font-size: 13px; }
.compteur { text-align: right; font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* Choix de la note : les étoiles s'allument jusqu'à celle survolée/cliquée */
.note-choix { display: flex; gap: 4px; }

.note-btn {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.12s, transform 0.12s;
}

.note-btn:hover { transform: scale(1.12); }
.note-btn.active { color: var(--accent); }

@media (max-width: 520px) {
  .avis-apercu-liste, .avis-liste { grid-template-columns: 1fr; }
}

/* Précision libre rappelée sur la carte d'un plan enregistré */
.plan-card-notes {
  margin-top: 12px;
  padding: 10px 14px;
  background: #ecfeff;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}

.plan-card-notes span { font-weight: 700; }

/* ===== Champ « précisions » : volontairement mis en avant =====
   C'est le champ qui personnalise le plus le résultat, mais c'est aussi le
   seul facultatif : sans traitement visuel distinct, il se fondait dans les
   autres et passait inaperçu. L'ambre est déjà la couleur d'accent du site
   (carte « sur mesure », bouton de génération) : la cohérence est conservée. */
.field-notes {
  background: #fffbeb;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}

.field-notes label {
  font-size: 17px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* La mention « optionnel » devient une pastille discrète plutôt qu'un simple
   texte entre parenthèses, pour ne pas concurrencer le libellé. */
.field-notes .champ-optionnel {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notes-aide {
  font-size: 14px;
  line-height: 1.6;
  color: #92400e;
  margin-bottom: 14px;
}

.field-notes textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid #fcd34d;
  background: white;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}

.field-notes textarea::placeholder { color: #b8a27a; }

.field-notes textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.field-notes .compteur { color: #a16207; }

@media (max-width: 480px) {
  .field-notes { padding: 16px; }
  .field-notes label { font-size: 15.5px; }
}
