/* ===== Le Duplex de Ciboure — habillage Pays basque sur base PicoCSS ===== */

:root {
  --rouge: #b02e24;          /* rouge basque (volets, piment) */
  --rouge-fonce: #8c231b;
  --vert: #2f6b4f;           /* vert basque */
  --mer: #1d5d80;            /* bleu de la baie (calendrier, rappels de mer) */
  --mer-fonce: #14425c;
  --mer-claire: #d9e9f2;
  --chaux: #fbf7ee;          /* blanc cassé des façades */
  --ecru: #f3ecdd;           /* linge basque */
  --ecru-fonce: #e2d5ba;
  --encre: #2b3138;
  --ok: #2e7d32;
  --orange: #e08a00;
  --pico-font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--encre);
  background: var(--chaux);
}

html { scroll-padding-top: 78px; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #e08a00;
  outline-offset: 3px;
}

h1, h2, h3, .brand {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--encre);
}

h2 { font-size: 1.9rem; margin-bottom: .4rem; }
/* soulignement en petites raies de linge basque */
h2::after {
  content: '';
  display: block;
  width: 84px;
  height: 5px;
  margin-top: .55rem;
  background: repeating-linear-gradient(90deg,
    var(--rouge) 0 22px, transparent 22px 28px,
    var(--vert) 28px 34px, transparent 34px 40px,
    var(--rouge) 40px 62px, transparent 62px 84px);
  border-radius: 2px;
}

/* Liseré « linge basque » : bande écrue à groupes de raies rouges/vertes */
.liseret-basque {
  height: 8px;
  background: var(--ecru)
    repeating-linear-gradient(90deg,
      transparent 0 38px,
      var(--rouge) 38px 42px,
      transparent 42px 46px,
      var(--rouge) 46px 56px,
      transparent 56px 60px,
      var(--vert) 60px 64px,
      transparent 64px 102px);
}

.lauburu { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }

.section { padding: 2.6rem 0 1.4rem; }
#reservation { scroll-margin-top: 78px; }
.section-etroite { max-width: 560px; }
.section-intro { max-width: 46rem; color: #4a5560; }
.text-muted { color: #6a7480; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ===== En-tête ===== */
.site-header {
  background: #fbf7eeee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ecru-fonce);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.site-header nav { display: flex; justify-content: space-between; align-items: center; padding: .55rem 1rem; flex-wrap: wrap; gap: .3rem; }
.brand { font-size: 1.25rem; font-weight: 600; color: var(--rouge-fonce); text-decoration: none; }
.brand .lauburu { color: var(--rouge); margin-right: .15em; }
.brand span { color: var(--vert); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav-links a { color: var(--encre); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--rouge); }
.nav-admin { color: var(--mer) !important; font-weight: 600 !important; }
.nav-compte { color: var(--rouge) !important; }
.nav-mobile { display: none; }
.logout-form { margin: 0; }
.linklike {
  background: none; border: none; color: #6a7480; cursor: pointer;
  font-size: .95rem; padding: 0; margin: 0; width: auto; font-family: inherit;
}
.linklike:hover { color: var(--rouge); }

/* ===== Messages ===== */
.flash { padding: .7rem 1.1rem; border-radius: 10px; margin: .8rem auto; font-weight: 500; transition: opacity .6s; }
.flash-success { background: #e6f2e6; color: var(--ok); border: 1px solid #bcd9bc; }
.flash-error { background: #f9e7e5; color: var(--rouge); border: 1px solid #e5bcb8; }

/* ===== Pages d'authentification ===== */
.auth-wrap {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 84% 10%, rgba(224, 138, 0, .13), transparent 38%),
    linear-gradient(180deg, #e9f1f5 0%, var(--ecru) 100%);
}
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--chaux);
  border: 1px solid var(--ecru-fonce);
  border-radius: 18px;
  padding: 0 2rem 2.1rem;
  box-shadow: 0 18px 50px rgba(90, 40, 30, .14);
  text-align: center;
  overflow: hidden;
}
.auth-raies {
  height: 9px;
  margin: 0 -2rem 1.9rem;
  background: repeating-linear-gradient(90deg,
    var(--rouge) 0 30px, var(--chaux) 30px 38px,
    var(--vert) 38px 46px, var(--chaux) 46px 54px,
    var(--rouge) 54px 84px, var(--chaux) 84px 116px);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.auth-card form { text-align: left; margin-top: 1.4rem; }
.auth-card hr { margin: 1.3rem 0 .9rem; border-color: var(--ecru-fonce); }
.auth-alt { font-size: .95rem; margin: 0; }
.auth-emblem { color: var(--rouge); margin-bottom: .5rem; }
.auth-emblem .lauburu { width: 44px; height: 44px; }

/* ===== Héro ===== */
.hero {
  min-height: 66vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex; align-items: stretch;
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-voile {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(18, 38, 52, .10) 30%, rgba(18, 38, 52, .66) 100%);
}
.hero-contenu { padding: 3.5rem 1rem 2.6rem; color: #fff; text-shadow: 0 1px 10px rgba(16, 34, 46, .45); }
.hero-lieu { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; margin-bottom: .4rem; color: #ffe9c7; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.hero-phrase { max-width: 40rem; font-size: 1.12rem; color: #eef4f8; margin-bottom: 1.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.hero-badges span {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
  padding: .3rem .8rem; border-radius: 999px; font-size: .92rem;
}
.hero-cta { display: inline-block; width: auto; }
/* bande rayée en pied de héro */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 2;
  background: repeating-linear-gradient(90deg,
    var(--rouge) 0 34px, var(--chaux) 34px 42px,
    var(--vert) 42px 50px, var(--chaux) 50px 58px,
    var(--rouge) 58px 92px, var(--chaux) 92px 128px);
}

/* ===== Boutons ===== */
.btn-mer, button.btn-mer, a[role="button"].btn-mer {
  background: var(--rouge); border-color: var(--rouge); color: #fff;
  border-radius: 10px; font-weight: 600;
}
.btn-mer:hover, .btn-mer:focus { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
button.petit, .petit {
  width: auto; min-height: 44px; padding: .45rem .85rem; font-size: .88rem; margin: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Sections appartement ===== */
.etages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.etage-card {
  background: #fff; border: 1px solid var(--ecru-fonce); border-top: 5px solid var(--rouge);
  border-radius: 14px;
  padding: 1.3rem 1.4rem; margin: 0;
  box-shadow: 0 8px 24px rgba(90, 40, 30, .06);
}
.etage-card h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.etage-card ul { margin: 0; padding-left: 1.1rem; }
.etage-card li { margin-bottom: .45rem; }

.bande-sable { background: var(--ecru); border-top: 1px solid var(--ecru-fonce); border-bottom: 1px solid var(--ecru-fonce); }
.bande-mer { background: linear-gradient(180deg, var(--mer) 0%, var(--mer-fonce) 100%); }
.bande-mer h2, .bande-mer h3, .bande-mer p { color: #fff; }
.bande-mer h2::after {
  background: repeating-linear-gradient(90deg,
    #ffd27a 0 22px, transparent 22px 28px,
    var(--chaux) 28px 34px, transparent 34px 40px,
    #ffd27a 40px 62px, transparent 62px 84px);
}

.equipements { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin-top: 1rem; }
.equipements span {
  background: var(--chaux); border: 1px solid var(--ecru-fonce); border-left: 4px solid var(--vert);
  border-radius: 10px;
  padding: .55rem .8rem; font-size: .95rem;
}
.note-parking { margin-top: 1.1rem; font-size: .97rem; color: #4a5560; }

.autour { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.autour article {
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px; padding: 1rem 1.1rem; margin: 0; box-shadow: none;
}
.autour h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.autour p { font-size: .93rem; margin: 0; color: #e3edf3; }

/* ===== Galerie ===== */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.galerie-item {
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: block;
  background: var(--ecru);
}
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie-item:hover img { transform: scale(1.04); }
.galerie-attente {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  border: 2px dashed var(--ecru-fonce); color: #8a94a0;
}
.galerie-attente span { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--rouge-fonce); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 14, .9);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox-open { overflow: hidden; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.lightbox-fermer {
  position: absolute; top: 14px; right: 20px; width: 48px; height: 48px; min-height: 48px;
  margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 1.35rem; line-height: 1;
}

/* ===== Réservation ===== */
.resa-grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; margin-top: 1.2rem; }
.cal-bloc { background: #fff; border: 1px solid var(--ecru-fonce); border-radius: 14px; padding: 1rem 1.1rem; }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: .3rem; }
.cal-fleche {
  width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 50%;
  background: var(--ecru); border: 1px solid var(--ecru-fonce); color: var(--encre);
  font-size: 1.2rem; line-height: 1;
}
.cal-fleche:disabled { opacity: .35; }
.calendrier { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.cal-titre { text-align: center; font-family: 'Playfair Display', serif; font-size: 1.08rem; margin-bottom: .5rem; text-transform: capitalize; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-entete { text-align: center; font-size: .72rem; text-transform: uppercase; color: #8a94a0; padding-bottom: .2rem; }
.cal-jour {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 8px; font-size: .92rem;
  background: #f2f6f9; color: var(--encre); text-align: center; padding: 2px;
}
.cal-jour:hover { outline: 2px solid var(--mer-claire); }
.cal-jour:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.cal-num { font-weight: 500; line-height: 1.1; }
.cal-prix { font-size: .66rem; color: #7c8794; line-height: 1; }
.etat-passe { background: transparent; color: #c3c9cf; cursor: default; }
.etat-passe:hover { outline: none; }
.etat-occupe { background: #eee4d2; color: #ab9f88; cursor: not-allowed; text-decoration: line-through; }
.etat-occupe:hover { outline: none; }
.etat-inconnu { background: #eceff2; color: #7c8794; cursor: not-allowed; }
.etat-inconnu:hover { outline: none; }
.etat-option {
  background: repeating-linear-gradient(45deg, #fdf1dc, #fdf1dc 5px, #f8e3bd 5px, #f8e3bd 10px);
  color: #92600a;
}
.cal-jour.sel-debut, .cal-jour.sel-fin, .cal-jour.sel-seule { background: var(--mer); color: #fff; }
.cal-jour.sel-debut .cal-prix, .cal-jour.sel-fin .cal-prix, .cal-jour.sel-seule .cal-prix { color: #cfe2ee; }
.cal-jour.sel-in { background: var(--mer-claire); }
.cal-legende { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .8rem; font-size: .82rem; color: #6a7480; }
.leg { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: .25rem; }
.leg-libre { background: #f2f6f9; border: 1px solid #dde5ea; }
.leg-option { background: repeating-linear-gradient(45deg, #fdf1dc, #fdf1dc 4px, #f8e3bd 4px, #f8e3bd 8px); }
.leg-occupe { background: #eee4d2; }
.leg-sel { background: var(--mer); }
.cal-etat {
  grid-column: 1 / -1;
  min-height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .65rem; padding: 1.2rem; text-align: center; color: #5c6874;
}
.cal-etat p { margin: 0; }
.cal-chargement::before {
  content: ''; width: 28px; height: 28px; border: 3px solid var(--mer-claire);
  border-top-color: var(--mer); border-radius: 50%; animation: cal-tourne .8s linear infinite;
}
.cal-erreur {
  min-height: 180px; color: var(--rouge-fonce); background: #f9e7e5;
  border: 1px solid #e5bcb8; border-radius: 10px;
}
.cal-erreur button { width: auto; min-height: 44px; margin: 0; }
@keyframes cal-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cal-chargement::before { animation: none; } }

.resa-panneau {
  background: var(--ecru); border: 1px solid var(--ecru-fonce); border-top: 5px solid var(--rouge);
  border-radius: 14px;
  padding: 1.2rem 1.3rem; position: sticky; top: 80px;
}
.resa-panneau h3 { margin-bottom: .5rem; }
.resa-dates { font-weight: 500; min-height: 1.4rem; }
.resa-detail { background: #fff; border-radius: 10px; padding: .7rem .9rem; margin-bottom: .9rem; }
.resa-ligne { display: flex; justify-content: space-between; gap: .6rem; padding: .18rem 0; font-size: .95rem; }
.resa-ligne small { color: #8a94a0; display: block; }
.resa-avantage { color: var(--ok); font-size: .88rem; }
.resa-total { border-top: 1px solid var(--ecru-fonce); margin-top: .3rem; padding-top: .45rem; font-weight: 700; font-size: 1.05rem; }
.resa-erreur { color: var(--rouge); font-weight: 500; }
.resa-note { font-size: .85rem; color: #6a7480; margin: .6rem 0 0; }

/* ===== Cartes réservation (mes résas + admin) ===== */
.resa-carte {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--ecru-fonce); border-left: 5px solid #c9d2d9;
  border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; box-shadow: none;
}
.resa-carte.statut-pending { border-left-color: var(--orange); }
.resa-carte.statut-confirmed { border-left-color: var(--ok); }
.resa-carte.statut-rejected, .resa-carte.statut-cancelled { border-left-color: #c9d2d9; opacity: .75; }
.resa-carte-prix { font-weight: 700; margin-top: .2rem; }
.resa-carte-contenu { min-width: 0; flex: 1 1 340px; }
.resa-carte-titre { font-size: 1.12rem; margin: 0 0 .25rem; }
.resa-carte-titre a { color: var(--encre); }
.resa-carte-droite { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.resa-carte form { margin: 0; }

.badge {
  display: inline-block; padding: .14rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.badge-pending { background: #fdf1dc; color: #92600a; }
.badge-confirmed { background: #e6f2e6; color: var(--ok); }
.badge-rejected, .badge-cancelled { background: #eceff2; color: #6a7480; }
.badge-approved { background: #e6f2e6; color: var(--ok); }
.badge-admin { background: var(--mer-claire); color: var(--mer-fonce); }

/* ===== Admin ===== */
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1.5rem; }
.admin-nav a {
  background: #fff; border: 1px solid var(--ecru-fonce); border-radius: 999px;
  padding: .3rem .95rem; text-decoration: none; color: var(--encre); font-size: .92rem; font-weight: 500;
}
.admin-nav a:hover { border-color: var(--rouge); color: var(--rouge); }
.admin-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.tuile {
  background: #fff; border: 1px solid var(--ecru-fonce); border-radius: 14px;
  padding: 1.1rem 1.3rem; text-decoration: none; color: var(--encre);
  display: flex; flex-direction: column;
}
.tuile strong { font-size: 2rem; font-family: 'Playfair Display', serif; }
.tuile-alerte { border-color: var(--orange); background: #fdf6e8; }
.ligne-attente { background: #fdf6e8; }
.cell-message { font-size: .9rem; color: #6a7480; max-width: 260px; }
.cell-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.cell-actions form { margin: 0; }
.table-scroll { overflow-x: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0; }
.contact-actions a {
  min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .65rem;
  border: 1px solid var(--ecru-fonce); border-radius: 8px; background: var(--chaux);
  font-size: .9rem; text-decoration: none;
}
.contact-actions-large a { flex: 1 1 160px; justify-content: center; margin: 0; }
.form-periode { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem 1rem; align-items: end; }
.form-periode .label-large { grid-column: 1 / -1; }
.form-periode button { grid-column: 1 / -1; justify-self: start; width: auto; padding: .5rem 1.4rem; }

/* ===== Fiche réservation administrateur ===== */
.retour-liste { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .5rem; }
.fiche-entete { align-items: flex-end; margin-bottom: 1rem; }
.fiche-entete h2 { margin: 0; }
.fiche-surtitre { margin: 0 0 .15rem; color: #6a7480; font-size: .9rem; }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr); gap: 1rem; }
.fiche-bloc, .fiche-actions { background: #fff; border: 1px solid var(--ecru-fonce); border-radius: 14px; padding: 1.1rem 1.25rem; }
.fiche-bloc h3, .fiche-actions h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.fiche-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; margin: 0; }
.fiche-details div { border-bottom: 1px solid var(--ecru-fonce); padding-bottom: .45rem; }
.fiche-details dt { color: #6a7480; font-size: .82rem; }
.fiche-details dd { margin: .1rem 0 0; }
.fiche-note { margin-top: 1rem; padding: .75rem; border-radius: 10px; background: var(--ecru); }
.fiche-note p { margin: .3rem 0 0; }
.fiche-actions { margin-top: 1rem; }
.fiche-actions .cell-actions { align-items: stretch; }
.fiche-actions button { min-height: 44px; margin: 0; }

/* ===== Pied de page ===== */
.site-footer {
  margin-top: 2.5rem; padding: 0 0 1.4rem; text-align: center;
  background: var(--ecru);
  color: #6a7480; font-size: .9rem;
}
.site-footer .lauburu { color: var(--rouge); }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .resa-grille { grid-template-columns: 1fr; }
  .resa-panneau { position: static; }
  .calendrier { grid-template-columns: 1fr; }
  .cal-mois-second { display: none; }
  .etages { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .form-periode { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; }
  .section { padding: 1.9rem 0 1rem; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  #reservation { scroll-margin-top: 66px; }
  .site-header nav { flex-wrap: nowrap; min-height: 54px; padding: .3rem .75rem; }
  .brand { white-space: nowrap; font-size: 1.08rem; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; margin: 0 0 0 auto; }
  .nav-mobile summary {
    min-height: 44px; display: flex; align-items: center; padding: .35rem .7rem;
    border: 1px solid var(--ecru-fonce); border-radius: 9px; background: #fff;
    color: var(--encre); cursor: pointer; font-weight: 600; list-style: none;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary::after { content: '☰'; margin-left: .45rem; color: var(--rouge); }
  .nav-mobile[open] summary::after { content: '✕'; }
  .nav-mobile-panneau {
    position: absolute; right: 0; top: calc(100% + .35rem); width: min(310px, calc(100vw - 1.5rem));
    padding: .45rem; border: 1px solid var(--ecru-fonce); border-radius: 12px;
    background: var(--chaux); box-shadow: 0 16px 36px rgba(43, 49, 56, .18);
  }
  .nav-mobile-panneau > a, .nav-mobile-panneau .linklike {
    min-height: 48px; width: 100%; display: flex; align-items: center; padding: .55rem .75rem;
    border-radius: 8px; color: var(--encre); text-decoration: none; font-weight: 500;
  }
  .nav-mobile-panneau > a:hover, .nav-mobile-panneau .linklike:hover { background: var(--ecru); }
  .nav-mobile-panneau .logout-form { border-top: 1px solid var(--ecru-fonce); margin-top: .25rem; padding-top: .25rem; }
  .admin-nav {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin: .6rem 0 1rem;
    padding: 0 0 .3rem; scrollbar-width: thin;
  }
  .admin-nav a { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: .4rem .85rem; }
  .table-admin-wrap { overflow: visible; }
  table.admin-responsive, table.admin-responsive tbody { display: block; width: 100%; }
  table.admin-responsive thead { display: none; }
  table.admin-responsive tbody { display: grid; gap: .8rem; }
  table.admin-responsive tr {
    display: block; width: 100%; border: 1px solid var(--ecru-fonce);
    border-left: 5px solid #c9d2d9; border-radius: 12px; background: #fff;
    padding: .45rem .7rem; overflow: hidden;
  }
  table.admin-responsive tr.ligne-attente { border-left-color: var(--orange); background: #fdf6e8; }
  table.admin-responsive td {
    display: grid; grid-template-columns: minmax(7rem, 36%) minmax(0, 1fr); align-items: start;
    gap: .55rem; width: 100%; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--ecru-fonce);
    white-space: normal;
  }
  table.admin-responsive td:last-child { border-bottom: 0; }
  table.admin-responsive td::before { content: attr(data-label); color: #6a7480; font-size: .82rem; font-weight: 600; }
  table.admin-responsive td.cell-actions { display: grid; }
  table.admin-responsive .cell-actions form, table.admin-responsive .cell-actions button { width: 100%; }
  table.admin-responsive .cell-message { max-width: none; }
  .fiche-grille { grid-template-columns: 1fr; }
  .fiche-actions .cell-actions { display: grid; grid-template-columns: 1fr; }
  .fiche-actions .cell-actions form, .fiche-actions .cell-actions button { width: 100%; }
}
@media (max-width: 520px) {
  .galerie { grid-template-columns: 1fr; }
  .calendrier { gap: .7rem; }
  .cal-grille { gap: 2px; }
  .cal-jour { min-height: 46px; }
  .resa-carte { align-items: flex-start; padding: .85rem; }
  .resa-carte-droite { width: 100%; align-items: stretch; }
  .resa-carte-droite > a[role="button"], .resa-carte-droite > form { flex: 1 1 calc(50% - .35rem); }
  .resa-carte-droite form button { width: 100%; }
  .fiche-details { grid-template-columns: 1fr; }
}
