/* ════════════════════════════════════════════════════
   TROUVETAKAZ.COM — Design System
   Base CSS · Partagé par toutes les pages
   ════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');
/* Outfit = titres display · Syne = prix, boutons, labels courts · DM Sans = corps */

/* ══ RESET ══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ══ CSS VARIABLES ══ */
:root {
  /* Couleurs signature */
  --orange:        #E8734A;
  --orange-light:  #FDF5F2;
  --orange-dark:   #C85A2A;
  --orange-mid:    #F49070;

  /* Couleurs fonctionnelles */
  --blue:          #1D6A8A;
  --blue-light:    #EFF6FB;
  --blue-mid:      #2B8AB0;
  --gold:          #FFD060;
  --gold-light:    #FFFBEA;
  --green:         #1D9E75;
  --green-light:   #E1F5EE;
  --red:           #E24B4A;
  --red-light:     #FEF2F2;

  /* Neutres — fond clair, aéré */
  --bg:            #F6F8FA;
  --bg2:           #EEF2F6;
  --surface:       #FFFFFF;
  --surface2:      #FAFBFC;
  --text:          #1A2332;
  --text2:         #4A5A6A;
  --text3:         #8A9AAA;
  --text4:         #B8C8D8;
  --border:        #DDE6EE;
  --border2:       #EEF2F6;

  /* Rayons */
  --r:    16px;
  --r2:   12px;
  --r3:   8px;
  --r4:   24px;
  --r-full: 999px;

  /* Ombres */
  --shadow-xs:     0 1px 4px rgba(26,35,50,.06);
  --shadow-sm:     0 2px 8px rgba(26,35,50,.08);
  --shadow-md:     0 4px 16px rgba(26,35,50,.10);
  --shadow-lg:     0 8px 32px rgba(26,35,50,.12);
  --shadow-orange: 0 4px 18px rgba(232,115,74,.35);
  --shadow-blue:   0 4px 18px rgba(29,106,138,.28);

  /* Layout */
  --max-w:         1200px;
  --max-w-sm:      800px;
  --header-h:      64px;

  /* Transitions */
  --t:    .15s ease;
  --t2:   .25s ease;
}

/* ══ LAYOUT ══ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  width: 100%;
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
}

/* ══ TYPOGRAPHIE ══ */
/* Outfit = grands titres · Syne = prix, boutons, UI courts · DM Sans = corps */
.t-display {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--text);
}

.t-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text);
}

.t-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--text);
}

.t-h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.t-body { font-size: 15px; color: var(--text2); line-height: 1.6; }
.t-sm   { font-size: 13px; color: var(--text2); line-height: 1.5; }
.t-xs   { font-size: 11px; color: var(--text3); line-height: 1.4; }

.t-price {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.t-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* ══ BOUTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--r2);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); opacity: .9; }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: none;
}
.btn-ghost:hover { color: var(--orange); background: var(--orange-light); }

.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: var(--r); }
.btn-full { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ══ CARDS ══ */
.card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--t2), transform var(--t2);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body { padding: 20px; }

/* Card annonce */
.listing-card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t2), transform var(--t2);
  text-decoration: none;
  display: block;
  color: inherit;
}

.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.listing-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg2);
}

.listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.04);
}

.listing-card-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.listing-card-body { padding: 14px 16px; }

.listing-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 10px;
}

.listing-card-loc svg {
  width: 12px;
  height: 12px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.listing-card-price {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.listing-card-price-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.listing-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ══ TAGS & BADGES ══ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.tag-green  { background: var(--green-light); color: var(--green);  border-color: rgba(29,158,117,.2); }
.tag-blue   { background: var(--blue-light);  color: var(--blue);   border-color: rgba(29,106,138,.2); }
.tag-orange { background: var(--orange-light);color: var(--orange); border-color: rgba(232,115,74,.2); }
.tag-gold   { background: var(--gold-light);  color: #8A6500;       border-color: rgba(255,208,96,.3); }
.tag-red    { background: var(--red-light);   color: var(--red);    border-color: rgba(226,75,74,.2); }

.badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.badge-ok     { background: var(--green); color: #fff; }
.badge-soon   { background: var(--gold);  color: #7A5500; }
.badge-urgent { background: var(--orange); color: #fff; }
.badge-new    { background: var(--blue);  color: #fff; }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}

.fav-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  transition: fill var(--t);
}

.fav-btn:hover  { transform: scale(1.1); }
.fav-btn.active svg { fill: var(--orange); }

/* ══ PILLS ══ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  user-select: none;
}

.pill:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

.pill.active {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}

/* ══ FORMULAIRES ══ */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
}

.field-opt {
  font-size: 10px;
  color: var(--text3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 5px;
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}

.input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,115,74,.12);
  background: var(--surface);
}

.input::placeholder { color: var(--text3); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 42px; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-icon-wrap .input-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 1.8;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

select.input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A9AAA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(226,75,74,.1) !important;
}

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ══ INFO BOX ══ */
.info-box {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue-light);
  border-radius: var(--r2);
  border: 1px solid rgba(29,106,138,.15);
}
.info-box svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.info-box p   { font-size: 13px; color: var(--blue); line-height: 1.5; }
.info-box.orange { background: var(--orange-light); border-color: rgba(232,115,74,.2); }
.info-box.orange svg { stroke: var(--orange); }
.info-box.orange p   { color: var(--orange-dark); }
.info-box.green { background: var(--green-light); border-color: rgba(29,158,117,.2); }
.info-box.green svg { stroke: var(--green); }
.info-box.green p   { color: var(--green); }

/* ══ DIVIDERS ══ */
.sep { height: 1px; background: var(--border); margin: 24px 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 13px; color: var(--text3); white-space: nowrap; }

/* ══ SECTION HEADERS ══ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.005em;
}

.section-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--t);
}
.section-link:hover { opacity: .7; }

/* ══ PLACEHOLDERS PHOTO ══ */
.ph-teal   { background: linear-gradient(135deg, #e1f5ee, #9FE1CB); }
.ph-blue   { background: linear-gradient(135deg, #e6f1fb, #B5D4F4); }
.ph-amber  { background: linear-gradient(135deg, #faeeda, #FAC775); }
.ph-coral  { background: linear-gradient(135deg, #faece7, #F5C4B3); }
.ph-purple { background: linear-gradient(135deg, #eeedfe, #AFA9EC); }
.ph-green  { background: linear-gradient(135deg, #eaf3de, #C0DD97); }
.ph-orange { background: linear-gradient(135deg, #FDF5F2, #F5C4A0); }

/* ══ TOGGLE ══ */
.toggle {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: var(--r-full);
  position: relative;
  cursor: pointer;
  transition: background var(--t);
  flex-shrink: 0;
  border: none;
}

.toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left var(--t);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.toggle.on { background: var(--orange); }
.toggle.on::after { left: 23px; }

/* ══ AVATAR ══ */
.avatar {
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--blue);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm  { width: 36px; height: 36px; font-size: 13px; }
.avatar-md  { width: 48px; height: 48px; font-size: 16px; }
.avatar-lg  { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl  { width: 80px; height: 80px; font-size: 26px; }

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .6;
}

.empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 20px;
}

/* ══ TOAST ══ */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══ MODAL OVERLAY ══ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,.5);
  backdrop-filter: blur(2px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t2);
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.sheet {
  background: var(--surface);
  border-radius: var(--r4) var(--r4) 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t2);
  padding: 0 0 32px;
}

.overlay.open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  margin: 12px auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sheet-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text2);
  fill: none;
  stroke-width: 2;
}

.sheet-body { padding: 20px; }

/* ══ PAGINATION ══ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r3);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--t);
}

.page-btn:hover    { border-color: var(--orange); color: var(--orange); }
.page-btn.active   { background: var(--orange); color: #fff; border-color: var(--orange); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ══ LOADING SKELETON ══ */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--border) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--r3);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .container, .container-sm { padding: 0 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .grid3 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ══ UTILITAIRES ══ */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ══ MODE SOMBRE ══ */
[data-theme="dark"] {
  --bg:      #0F1623;
  --bg2:     #151E2E;
  --surface: #1A2338;
  --surface2:#1E2840;
  --text:    #E8EDF4;
  --text2:   #8A9AAA;
  --text3:   #4A5A6A;
  --text4:   #2A3850;
  --border:  #253045;
  --border2: #1E2840;
  --orange-light: rgba(232,115,74,.12);
  --blue-light:   rgba(29,106,138,.12);
  --green-light:  rgba(29,158,117,.12);
  --red-light:    rgba(226,75,74,.12);
  --gold-light:   rgba(255,208,96,.08);
}

[data-theme="dark"] .site-header {
  background: rgba(15,22,35,.92);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .listing-card,
[data-theme="dark"] .card,
[data-theme="dark"] .agency-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] body {
  color-scheme: dark;
}

/* Transition mode sombre */
body, .site-header, .listing-card, .card, .btn, .input, .tag {
  transition-property: background-color, border-color, color;
  transition-duration: .2s;
  transition-timing-function: ease;
}

/* ══ TRANSITIONS DE PAGE ══ */
body {
  animation: pageIn .2s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══ BANNIÈRE RGPD / COOKIES ══ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  transform: translateY(0);
  transition: transform .3s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-banner-text a {
  color: var(--orange);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  padding: 8px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r2);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
}

.cookie-btn-accept:hover { background: var(--orange-dark); }

.cookie-btn-refuse {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--t);
}

.cookie-btn-refuse:hover { border-color: var(--text2); color: var(--text); }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-refuse { flex: 1; text-align: center; }
}
