/* ============================================================
   Location YBMTL - Feuille de style
   Style inspire de "Homey" : fond clair, cartes aerees, accent bleu.
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #6b7686;
  --border: #e7ebf2;
  --primary: #1d4ed8;
  --primary-dark: #1740b0;
  --accent: #0ea5e9;
  --green: #16a34a;
  --green-bg: #e6f6ec;
  --gray-bg: #eef1f5;
  --danger: #dc2626;
  --danger-bg: #fdeaea;
  --shadow: 0 6px 24px rgba(20, 35, 70, 0.08);
  --shadow-sm: 0 2px 10px rgba(20, 35, 70, 0.06);
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em; cursor: pointer; border: 1px solid transparent;
  border-radius: 999px; padding: .6rem 1.2rem; font-size: .95rem;
  font-weight: 600; font-family: inherit; text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--surface); border-color: #f0c9c9; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-xs { padding: .3rem .6rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* ---------- En-tete ---------- */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; border-radius: 8px; display: block; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.nav-admin { color: var(--muted) !important; font-size: .9rem; }

/* ---------- Hero + recherche ---------- */
.hero {
  background: linear-gradient(135deg, #eef4ff, #f5f7fb 60%);
  padding: 56px 0 40px; text-align: center;
}
.hero-title { font-size: 2.3rem; margin-bottom: .3em; letter-spacing: -.5px; }
.hero-subtitle { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }
.search-bar {
  display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap;
  justify-content: center; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: var(--radius); padding: 1rem 1.2rem;
  max-width: 760px; margin: 0 auto;
}
.search-field { display: flex; flex-direction: column; text-align: left; flex: 1 1 200px; }
.search-field label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.search-field input {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .7rem; font-size: 1rem; font-family: inherit; color: var(--text);
}
.search-btn { flex: 0 0 auto; height: 46px; }
.search-info { margin-top: 1rem; color: var(--muted); }

/* ---------- Section vehicules ---------- */
.vehicles-section { padding: 48px 0 64px; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { font-size: 1.7rem; margin-bottom: .15em; }
.section-head p { color: var(--muted); margin: 0; }

.vehicle-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.vehicle-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s; display: flex; flex-direction: column;
}
.vehicle-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--gray-bg); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.15rem; margin-bottom: .1em; }
.card-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price { display: flex; flex-direction: column; line-height: 1.1; }
.price-amount { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.price-unit { font-size: .78rem; color: var(--muted); }
.card-deposit { font-size: .8rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ---------- Badges ---------- */
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .76rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-rented { background: rgba(107,118,134,.92); color: #fff; }

.empty-state { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--muted); }

/* ---------- Page detail ---------- */
.vehicle-detail { padding: 28px 0 60px; }
.back-link { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.2rem; align-items: start; }
.gallery-main { background: var(--gray-bg); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumb { width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--gray-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }

.detail-header { display: flex; align-items: flex-start; justify-content: space-between; margin: 1.8rem 0 1rem; }
.detail-header .badge { position: static; }
.detail-header h1 { font-size: 1.9rem; margin: 0; }
.detail-sub { color: var(--muted); margin: .2rem 0 0; }

.spec-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 2rem; border-top: 1px solid var(--border); }
.spec-list li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.spec-label { color: var(--muted); }
.spec-value { font-weight: 600; }
.detail-description { margin: 1.6rem 0; }
.detail-description h2 { font-size: 1.25rem; }

.detail-availability { margin-top: 2rem; }
.detail-availability h2 { font-size: 1.25rem; }

/* ---------- Aside prix + formulaire ---------- */
.detail-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
.price-box, .request-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.price-big { font-size: 1.8rem; font-weight: 800; }
.price-big span { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.price-box .btn { margin-top: 1rem; }
.request-box h2 { font-size: 1.2rem; }
.request-form { display: flex; flex-direction: column; gap: .8rem; }
.request-form label, .admin-form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--text); gap: .35rem; }
.request-form input, .request-form textarea,
.admin-form input, .admin-form textarea, .admin-form select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .7rem; font-size: 1rem; font-family: inherit; color: var(--text); font-weight: 400;
}
.request-form input:focus, .request-form textarea:focus,
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

/* ---------- Formulaire de réservation ---------- */
.price-header { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .2rem; }
.price-box { background: linear-gradient(135deg, #f0f4fa 0%, #fafbfc 100%); }
.btn-large { padding: .8rem 1.4rem; font-size: 1rem; }
.form-section { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.price-summary { background: var(--gray-bg); padding: 1rem; border-radius: var(--radius-sm); margin: 1.2rem 0; }
.price-line { display: flex; justify-content: space-between; align-items: center; }
.price-line > span:first-child { color: var(--muted); font-weight: 500; }
.price-total { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.price-detail { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.deposit-info { background: #f0f4fa; padding: 0.7rem; border-radius: var(--radius-sm); margin-top: 0.8rem; font-size: .9rem; color: var(--text); border-left: 3px solid var(--primary); }
.request-form input[type="date"] { font-family: inherit; }
.request-form input:valid { border-color: var(--border); }

/* ---------- Alertes ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: var(--green-bg); color: #11833c; }
.alert-error { background: var(--danger-bg); color: var(--danger); }

/* ---------- Calendrier ---------- */
.calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; max-width: 380px; }
.calendar-admin { max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-title { font-weight: 700; }
.cal-nav { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.cal-nav:hover { border-color: var(--primary); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { font-size: .72rem; color: var(--muted); font-weight: 700; padding: .3rem 0; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .85rem; border: none; background: transparent; color: var(--text); }
.cal-cell.empty { background: transparent; }
.cal-cell.past { color: #c4ccd6; }
.cal-cell.blocked { background: #e7ebf2; color: #8b94a3; text-decoration: none; font-weight: 500; }
.cal-cell.clickable { cursor: pointer; font-family: inherit; background: #e6f0ff; color: var(--primary); font-weight: 600; }
.cal-cell.clickable:hover { background: #cde3ff; box-shadow: 0 0 0 2px rgba(29,78,216,.2); }
.cal-cell.clickable.blocked:hover { background: #dde2ea; }
.cal-cell.saving { opacity: .5; }
.calendar-legend { display: flex; gap: 1.2rem; margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.dot-free { background: #1d4ed8; }
.dot-blocked { background: #cbd5e1; }

/* ---------- Calendrier de réservation ---------- */
.booking-calendar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.booking-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: .5rem; }
.booking-cal-title { font-weight: 700; text-align: center; flex: 1; font-size: .95rem; text-transform: capitalize; }
.booking-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: .5rem; }
.booking-cal-dow > div { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 700; padding: .3rem 0; }
.booking-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.booking-cal-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s ease;
  padding: 0;
}
.booking-cal-cell.available:hover { background: #cde3ff; transform: scale(1.05); }
.booking-cal-cell.available { background: #e6f0ff; color: var(--primary); cursor: pointer; }
.booking-cal-cell.selected { background: var(--primary); color: white; font-weight: 700; box-shadow: 0 0 0 2px rgba(29,78,216,.3); }
.booking-cal-cell.between { background: #d9e8ff; color: var(--primary); }
.booking-cal-cell.blocked { background: #e7ebf2; color: #8b94a3; cursor: not-allowed; display: flex; align-items: center; justify-content: center; }
.blocked-mark { font-size: 1.2rem; font-weight: bold; color: #d32f2f; }
.booking-cal-cell.other-month { color: #cbd5e1; cursor: default; }
.booking-cal-cell.past { color: #cbd5e1; cursor: default; }
.booking-cal-cell:disabled { cursor: not-allowed; }

/* ---------- Pied de page ---------- */
.site-footer { background: #121826; color: #cdd4e0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding: 40px 20px; flex-wrap: wrap; }
.footer-logo { height: 58px; width: auto; border-radius: 8px; margin-bottom: .8rem; }
.footer-brand p { color: #9aa4b6; max-width: 280px; }
.footer-contact h4 { color: #fff; }
.footer-contact a { color: #fff; }
.footer-note { color: #8c97a9; font-size: .85rem; max-width: 320px; margin-top: .6rem; }
.footer-bottom { border-top: 1px solid #232b3b; padding: 16px 0; font-size: .85rem; color: #8c97a9; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-link { color: #8c97a9; text-decoration: none; }
.footer-link:hover { color: #cdd4e0; text-decoration: underline; }

/* ---------- Page erreur ---------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 2rem; }

/* ============================================================
   PANNEAU ADMIN
   ============================================================ */
.admin-body { background: #f0f2f6; }
.admin-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.admin-header-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 2rem; }
.admin-brand img { height: 38px; width: auto; border-radius: 7px; display: block; }
.admin-nav { display: flex; gap: .4rem; flex: 1; }
.admin-nav a { padding: .5rem .9rem; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.admin-nav a:hover { background: var(--gray-bg); text-decoration: none; color: var(--text); }
.admin-nav a.active { background: #e8f0ff; color: var(--primary); }
.admin-user { display: flex; align-items: center; gap: 1rem; }
.admin-viewsite { font-size: .85rem; color: var(--muted); }
.admin-main { padding: 28px 0 60px; }
.admin-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 1.6rem; margin: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.stat-card.stat-highlight { border-color: var(--primary); background: #f3f7ff; }
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .9rem; }

.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-section-head h2 { font-size: 1.2rem; margin: 0; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--border); }
.admin-table td { padding: .8rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .92rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; }

.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; }
.pill-new { background: #e8f0ff; color: var(--primary); }
.pill-done { background: var(--green-bg); color: var(--green); }
.pill-muted { background: var(--gray-bg); color: var(--muted); }

/* Formulaire vehicule */
.form-columns { display: grid; grid-template-columns: 1fr 340px; gap: 1.8rem; align-items: start; }
.admin-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
.admin-form label.checkbox { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.admin-form label.checkbox input { width: auto; }

.photo-manager { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.photo-manager h2 { font-size: 1.15rem; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.photo-item { position: relative; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
.photo-item.is-primary { border-color: var(--primary); }
.photo-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-tag { position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; }
.photo-actions { display: flex; flex-direction: column; gap: .3rem; padding: .5rem; }
.photo-actions form { display: block; }
.photo-actions .btn { width: 100%; }

/* Disponibilite */
.availability-intro { margin-bottom: 1.4rem; }
.availability-intro p { max-width: 600px; }

/* Demandes */
.request-list { display: flex; flex-direction: column; gap: 1rem; }
.request-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.request-item.is-new { border-left: 4px solid var(--primary); }
.request-top { display: flex; align-items: center; gap: .7rem; }
.request-top h3 { margin: 0; font-size: 1.1rem; }
.request-meta { color: var(--muted); font-size: .88rem; margin: .3rem 0; }
.request-contact { margin: .2rem 0; }
.request-dates { margin: .2rem 0; font-size: .92rem; }
.request-message { background: var(--gray-bg); border-radius: 8px; padding: .6rem .8rem; font-style: italic; color: #3a4452; margin: .6rem 0 0; }
.request-actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; min-width: 150px; }

/* ---------- Connexion ---------- */
.login-body { background: linear-gradient(135deg, #eef4ff, #f0f2f6); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; width: 100%; max-width: 380px; text-align: center; }
.login-logo { height: 86px; width: auto; border-radius: 10px; margin: 0 auto 1rem; }
.login-card h1 { font-size: 1.3rem; }
.login-form { display: flex; flex-direction: column; gap: .9rem; text-align: left; margin: 1.4rem 0 1rem; }
.login-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; }
.login-form input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .7rem; font-size: 1rem; font-family: inherit; }
.login-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.login-back { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .9rem; }

/* ---------- Page Conditions ---------- */
.conditions-page { padding: 40px 20px; }
.conditions-content { max-width: 800px; }
.conditions-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.conditions-content h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
.conditions-content p { margin-bottom: 1rem; line-height: 1.65; }
.conditions-content ul { list-style-position: inside; margin-bottom: 1.5rem; }
.conditions-content li { margin-bottom: .6rem; }
.contract-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.contract-section .btn { margin: 1rem 0; }
.conditions-summary { margin: 2rem 0; }
.conditions-contact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .form-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 1.7rem; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-field { flex: 0 0 auto; }
  .search-btn { width: 100%; }
  .header-inner { height: 60px; }
  .brand-logo { height: 36px; }
  .main-nav { gap: .8rem; }
  .main-nav a { font-size: .88rem; }
  .main-nav a:nth-child(2) { display: none; } /* masque "Contact" sur mobile (dispo dans le pied de page) */
  .form-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .admin-header-inner { gap: 1rem; }
  .admin-nav { gap: .1rem; }
  .admin-nav a { padding: .45rem .6rem; font-size: .85rem; }
  .admin-viewsite { display: none; }
  .request-item { flex-direction: column; }
  .request-actions { flex-direction: row; }
  .photo-grid { grid-template-columns: 1fr; }
}
