/* ============================================================
   POSETOUJOURS — site.css
   CSS unifié : site commercial + documents + galerie photos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

/* ════════════════════════════════════════════════════════════
   FONDATIONS
   ════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Fond */
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f0;
  --bg-warm: #f9f7f4;

  /* Texte */
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #888888;

  /* Accent */
  --accent: #3d5a50;
  --accent-hover: #2e463d;
  --accent-warm: #a08060;

  /* Bordures */
  --border: #e0e0e0;
  --border-hover: #c0c0c0;

  /* Typographie */
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  /* Dimensions */
  --max-width: 960px;
  --max-width-text: 640px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-soft: 8px;

  /* Effets */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 250ms ease;

  /* Safe area */
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Icônes statut (CSS only) */
  --icon-private: "●";
  --icon-circle: "◐";
  --icon-public: "○";

  /* Couleurs statut */
  --status-private: #3a3a3a;
  --status-circle: #6b645b;
  --status-public: var(--accent);

  /* Alias compatibilité galerie (photos-v2) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-card);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --border-color: var(--border);
  --transition-fast: var(--transition);
  --transition-smooth: var(--transition-slow);
  --shadow-soft: var(--shadow);
  --shadow-medium: var(--shadow-hover);
  --safe-area-bottom: var(--safe-bottom);
}

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

/* ── BASE ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── TYPOGRAPHIE ───────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   COMPOSANTS GLOBAUX
   ════════════════════════════════════════════════════════════ */

/* ── BOUTONS ───────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn-primary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* ── CARTES ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 
    box-shadow var(--transition-slow),
    border-color var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-hover);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.card:hover .card-img img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin-bottom: 0.25rem;
}

.card-body .label {
  display: block;
  margin-bottom: 0.5rem;
}

/* ── IMAGES ────────────────────────────────────────────────── */
.img-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-hover);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    transform var(--transition-slow),
    filter var(--transition-slow);
}

.img-wrap:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--border) 100%);
}

/* ── LISTES ────────────────────────────────────────────────── */
.list-bare {
  list-style: none;
}

.list-bare li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.list-bare li::before {
  content: '–';
  color: var(--text-light);
  flex-shrink: 0;
}

/* ── FORMULAIRES ───────────────────────────────────────────── */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── MODALS (base commune) ─────────────────────────────────── */
.modal-overlay,
.info-modal,
.welcome-modal,
.confirm-modal,
.status-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay { z-index: 1000; }
.status-menu { z-index: 2000; align-items: flex-end; }
.welcome-modal { z-index: 3000; }
.confirm-modal, .info-modal { z-index: 3500; }

.modal-box,
.info-modal-content,
.welcome-modal-content,
.confirm-modal-content {
  background: var(--bg-card);
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.modal-box {
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}

/* Bouton fermer modal */
.modal-close,
.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover,
.close-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* Checkbox dans modals */
.modal-checkbox,
.welcome-checkbox,
.confirm-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-checkbox input[type="checkbox"],
.welcome-checkbox input[type="checkbox"],
.confirm-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(1.5rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

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

/* ── ÉTATS ─────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.75rem;
}

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

.error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════ */

/* ── CONTAINERS ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ── NAVIGATION ────────────────────────────────────────────── */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── FOOTER SITE ───────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a,
.footer-links button,
.footer-link-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: color var(--transition), background var(--transition);
}

.footer-links a:hover,
.footer-links button:hover,
.footer-link-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.footer-sep {
  color: var(--border);
  font-size: 0.75rem;
}

/* ── GRILLES ───────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ════════════════════════════════════════════════════════════
   PAGES SITE COMMERCIAL
   ════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.hero-img .img-wrap {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-img .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-hover) 0%, var(--border) 100%);
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── BLOCS PRESTATIONS ─────────────────────────────────────── */
.bloc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bloc-grid.reverse .bloc-img {
  order: 2;
}

.bloc-img .img-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-hover);
}

.bloc-img .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--border) 100%);
}

.bloc-text h2 {
  margin: 0.5rem 0;
}

.bloc-content {
  margin: 1rem 0;
}

.bloc-content p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.closing {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── VALEURS ───────────────────────────────────────────────── */
.valeur-bloc {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.valeur-bloc:last-child {
  border-bottom: none;
}

.valeur-bloc h2 {
  margin-bottom: 1rem;
}

.valeur-texte p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── INCLUS ────────────────────────────────────────────────── */
.inclus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.inclus-grid h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header .label {
  display: block;
  margin-bottom: 0.5rem;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-link {
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--accent-hover);
}

/* ════════════════════════════════════════════════════════════
   GALERIE PHOTOS
   ════════════════════════════════════════════════════════════ */

/* ── LAYOUT GALERIE ────────────────────────────────────────── */
.gallery {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.75rem;
  padding: 1.25rem;
  height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}
.gallery::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 3px;
}

/* ── PHOTO CARDS ───────────────────────────────────────────── */
.photo-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: clamp(90px, 22vw, 130px);
  height: calc(100% - 1rem);
  max-height: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.35rem;
  position: relative;
  opacity: 0.65;
  cursor: pointer;
  border: 1px solid transparent;
  -webkit-touch-callout: default;
  transition:
    transform var(--transition),
    opacity var(--transition),
    border-color var(--transition);
}

.photo-card:hover {
  opacity: 1;
  transform: scale(1.01);
}

.photo-card.selected {
  opacity: 1;
  border-color: var(--accent);
  outline: 2px solid rgba(61, 90, 80, 0.25);
  outline-offset: 2px;
}

.photo-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  margin-top: 0.35rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
  box-shadow: var(--shadow);
  -webkit-touch-callout: default;
  transition: transform var(--transition);
}

/* Indicateur sélection */
.select-indicator {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background var(--transition), border-color var(--transition);
}

.photo-card.selected .select-indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.photo-card.selected .select-indicator::after {
  content: '✓';
  color: #ffffff;
  font-weight: 700;
}

/* Bouton menu photo */
.photo-menu-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 5;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.photo-menu-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── STATUS BADGES ─────────────────────────────────────────── */
.status-badge {
  flex-shrink: 0;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-hover);
}

.status-badge.status-private { border-color: #bfb7ad; }
.status-badge.status-circle  { border-color: #c0c0c0; }
.status-badge.status-public  { border-color: var(--accent); }

/* Icônes injectées via CSS */
.status-badge::before { margin-right: 0.3rem; }
.status-badge.status-private::before { content: var(--icon-private); }
.status-badge.status-circle::before  { content: var(--icon-circle); }
.status-badge.status-public::before  { content: var(--icon-public); }

.status-badge-small {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.status-badge-small.status-private::before { content: var(--icon-private); margin-right: 0.25rem; }
.status-badge-small.status-circle::before  { content: var(--icon-circle); margin-right: 0.25rem; }
.status-badge-small.status-public::before  { content: var(--icon-public); margin-right: 0.25rem; }

/* ── HEADER GALERIE ────────────────────────────────────────── */
.gallery-header {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

.session-id {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ── FOOTER ACTIONS GALERIE ────────────────────────────────── */
.gallery-actions {
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.actions-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BARRE SÉLECTION ───────────────────────────────────────── */
.selection-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.selection-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  font-weight: 700;
}

/* ── MENU STATUT (bottom sheet) ────────────────────────────── */
.status-menu-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 340px;
  padding: 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  border-bottom: none;
}

.status-menu-content h3 {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text);
}

.picker-container { position: relative; }

.status-picker {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
}

.status-picker:focus {
  outline: none;
  border-color: var(--accent);
}

.picker-container::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-actions .btn-primary,
.status-actions .btn-secondary { width: 100%; }

/* ── MODALS GALERIE ────────────────────────────────────────── */

/* Welcome modal */
.welcome-modal-content {
  max-width: 400px;
  text-align: center;
}

.welcome-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.welcome-text {
  text-align: left;
  margin-bottom: 1.25rem;
}

.status-explanation {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status-explanation li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.status-explanation .status-icon { flex-shrink: 0; }

.welcome-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.welcome-modal-content .btn-primary {
  width: 100%;
  margin-bottom: 0.75rem;
}

.welcome-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.welcome-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Confirm modal */
.confirm-modal-content {
  max-width: 360px;
  text-align: center;
}

.confirm-modal-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.confirm-actions .btn-primary,
.confirm-actions .btn-secondary { flex: 1; }

/* Info modal */
.info-modal-content {
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

/* ════════════════════════════════════════════════════════════
   UTILITAIRES
   ════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* ── ACCESSIBILITÉ ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── MOBILE (≤600px) ───────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0.5rem;
  }
}

/* ── TABLET (≤768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-img {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bloc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .bloc-grid.reverse .bloc-img {
    order: 0;
  }

  .inclus-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── DESKTOP (≥768px) ──────────────────────────────────────── */
@media (min-width: 768px) {
  .gallery {
    gap: 1rem;
    padding: 1.5rem;
  }

  .photo-card { width: 150px; }

  .status-menu { align-items: center; }

  .status-menu-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }

  .welcome-modal-content { max-width: 450px; }
  .confirm-modal-content { max-width: 400px; }
}
