/* =====================================================================
   IDENTITÉ 100 % MaPêcheConnect : en-tête, pied de page, héros, fond
   (valeurs reprises de header.css / footer.css / style.css du site principal)
   Chargé en dernier : complète et remplace les styles précédents.
   ===================================================================== */
:root { --header-h: 92px; }

/* Fond : même voile léger que le site principal (la photo reste bien visible) */
body::after {
  background:
    linear-gradient(90deg, var(--mpc-shade-0_44-value-1971665ed9, rgba(3,4,10,.44)) 0%, var(--mpc-shade-0_25-value-4d666f7ffd, rgba(3,4,10,.25)) 34%, var(--mpc-shade-0_06-value-7856fd9404, rgba(5,4,13,.06)) 64%, var(--mpc-shade-0_2-value-6cb59a6989, rgba(5,4,13,.20)) 100%),
    radial-gradient(circle at 65% 18%, rgba(151,79,255,.06), transparent 35%);
}
@media (max-width: 800px) {
  body::before { background-image: url('/assets/img/bg-mobile.jpg'); background-position: center top; }
  body::after { background: linear-gradient(180deg, var(--mpc-shade-0_4-value-c3a00b3f2a, rgba(3,4,10,.40)) 0%, var(--mpc-shade-0_3-value-b8b771595c, rgba(3,4,10,.30)) 60%, var(--mpc-canvas-0_55-value-611d9e9c2f, rgba(3,4,10,.55)) 100%); }
}
html, body { height: auto; min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0; }
#app { flex: 1 0 auto; width: 100%; min-height: 0; }
a { text-decoration: none; }

/* ---- En-tête ---- */
.site-header {
  flex: 0 0 auto; box-sizing: border-box;
  position: sticky; top: 0; z-index: 1000; height: var(--header-h); padding: 0 clamp(18px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(180deg, var(--mpc-canvas-0_74-value-37f20fa4cc, rgba(4,5,12,.74)), var(--mpc-shade-0_34-value-412fa2b812, rgba(4,5,12,.34)));
  border-bottom: 1px solid var(--mpc-line-0_08-value-c201d2dab2, rgba(255,255,255,.08)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,66,255,.45), rgba(216,163,77,.42), transparent); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--mpc-ink-1-value-e08de71387, #fff) !important; font-size: 30px; font-weight: 950; line-height: 1; letter-spacing: -1px; }
.brand img, .brand .logo-img { width: 52px; height: 52px; object-fit: contain; display: block; filter: drop-shadow(0 0 16px rgba(216,163,77,.28)); }
.brand > span { display: inline-flex; align-items: center; white-space: nowrap; }
.brand span span { color: var(--gold2) !important; -webkit-text-fill-color: var(--gold2) !important; text-shadow: 0 0 18px rgba(216,163,77,.24); }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.site-nav a, .site-nav button {
  height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; min-height: 0;
  color: var(--mpc-ink-0_88-value-5953d4c27a, rgba(255,255,255,.88)); font-size: 14px; font-weight: 850; line-height: 1; white-space: nowrap; background: transparent; border: 1px solid transparent; box-shadow: none;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.site-nav a:hover { color: var(--mpc-ink-1-value-e08de71387, #fff); transform: none; }
.site-nav a.active { position: relative; color: var(--mpc-ink-1-value-e08de71387, #fff); }
.site-nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--gold2)); box-shadow: 0 0 22px rgba(216,163,77,.35); }
.site-nav .btn-nav, .site-nav .btn-nav-btn { border-color: var(--mpc-line-0_13-value-e56afd83c3, rgba(255,255,255,.13)) !important; background: var(--mpc-wash-0_05-value-2ed3367aa6, rgba(255,255,255,.045)) !important; color: var(--mpc-ink-1-value-e08de71387, #fff) !important; padding-inline: 20px; }
.site-nav .btn-nav.active::after { display: none; }
.site-nav .btn-nav:hover, .site-nav .btn-nav-btn:hover { transform: translateY(-2px); background: var(--mpc-wash-0_07-value-0d923d3819, rgba(255,255,255,.07)) !important; border-color: var(--mpc-line-0_18-value-82e16a9943, rgba(255,255,255,.18)) !important; }
.pwa-header-btn { cursor: pointer; background: linear-gradient(135deg, var(--gold2), var(--gold)) !important; color: #100b05 !important; border-color: rgba(243,213,138,.65) !important; font-weight: 950; box-shadow: 0 16px 38px rgba(216,163,77,.18) !important; }
.mobile-menu-btn { display: none; width: 46px; height: 46px; min-height: 0; padding: 0; border: 1px solid var(--mpc-line-0_12-value-b34d3e7911, rgba(255,255,255,.12)); border-radius: 15px; background: var(--mpc-wash-0_05-value-2ed3367aa6, rgba(255,255,255,.045)); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-btn span { width: 21px; height: 2px; border-radius: 2px; background: var(--mpc-raised-1-value-e08de71387, #fff); transition: .25s ease; display: block; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1600px) and (min-width: 801px) { .site-nav a, .site-nav button { padding: 0 12px; } .site-nav { gap: 4px; } }
@media (max-width: 1320px) and (min-width: 801px) { .site-nav a, .site-nav button { padding: 0 9px; font-size: 13px; } .brand { font-size: 26px; } .site-nav a.active::after { left: 9px; right: 9px; } }
@media (max-width: 800px) {
  .site-header { height: 72px; padding: 0 14px; --header-h: 72px; }
  .brand { font-size: 24px; gap: 10px; }
  .brand img, .brand .logo-img { width: 42px; height: 42px; }
  .mobile-menu-btn { display: flex !important; flex: 0 0 46px; position: relative; z-index: 10002; }
  .site-nav { display: none !important; position: absolute; top: 100%; right: 14px; left: auto; width: 240px; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px;
    background: var(--mpc-canvas-0_97-value-ed32ea3fa1, rgba(5,3,10,.97)); border: 1px solid rgba(217,155,46,.38); border-radius: 20px; box-shadow: 0 24px 70px var(--mpc-shadow-0_65-value-4166c5bd76, rgba(0,0,0,.65)); backdrop-filter: blur(18px); z-index: 10001; }
  .site-nav.open { display: flex !important; }
  .site-nav a, .site-nav button { width: 100%; justify-content: flex-start; text-align: left; padding-left: 18px; }
  .site-nav a.active::after { left: 18px; right: 18px; bottom: 4px; }
}

/* ---- Pied de page ---- */
.site-footer { flex: 0 0 auto; position: relative; margin-top: 40px; padding: 20px 18px; background: var(--mpc-canvas-0_72-value-4a9560213e, rgba(3,4,10,.72)); border-top: 1px solid var(--mpc-line-0_08-value-c201d2dab2, rgba(255,255,255,.08)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.footer-inner { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.footer-meta, .footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--mpc-ink-0_72-value-8838989005, rgba(255,255,255,.72)); font-weight: 850; font-size: 13px; transition: color .2s ease; }
.footer-links a:hover { color: #f3d58a; }
.footer-copy { margin: 0; color: var(--mpc-ink-0_4-value-3cfd69311e, rgba(255,255,255,.4)); font-size: 12px; text-align: center; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mpc-line-0_06-value-5704ef9ed3, rgba(255,255,255,.06)); }
.footer-bottom .footer-copy { text-align: left; }
.footer-bottom .footer-meta { justify-content: flex-end; gap: 14px; font-size: 12px; color: var(--mpc-ink-0_4-value-3cfd69311e, rgba(255,255,255,.4)); }
.footer-bottom .footer-meta strong { color: var(--mpc-ink-0_62-value-73ebe876e0, rgba(255,255,255,.62)); font-weight: 850; }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; align-items: flex-start; } .footer-bottom .footer-meta { justify-content: flex-start; } }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); } }

/* ---- Héros de page (comme « Enduros en cours et à venir ») ---- */
.page-hero { margin: 8px 0 26px; }
.page-hero h1 { margin: 0 0 18px; color: var(--mpc-ink-1-value-e08de71387, #fff); font-size: clamp(42px, 7vw, 78px); line-height: .95; letter-spacing: -.065em; font-weight: 950; text-shadow: 0 8px 30px var(--mpc-shadow-0_55-value-e1d0b86279, rgba(0,0,0,.55)); }
.page-hero h1 strong { display: block; background: linear-gradient(90deg, var(--purple) 0%, var(--gold2) 40%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .hero-text { max-width: 720px; margin: 0; font-size: 18px; line-height: 1.7; color: var(--mpc-ink-0_78-value-4f35b2b715, rgba(247,247,251,.78)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions .btn, .hero-actions button { min-height: 54px; }
:root[data-theme="light"] .page-hero h1 { color: #1a1328; text-shadow: none; }

/* ---- Largeur de contenu : conteneur large comme le site principal ---- */
@media (min-width: 900px) {
  #app, #app.wide { max-width: 1180px; padding: 44px 28px 24px; }
  .post, .tiles, .tabsbar, .live { max-width: 700px; }
  .auth-wrap { max-width: 460px; }
  #map { height: clamp(460px, calc(100vh - 360px), 680px); }
}
@media (max-width: 899px) { #app { padding: 22px 16px 24px; } .page-hero h1 { font-size: clamp(40px, 12vw, 56px); } .page-hero .hero-text { font-size: 16px; } }

/* Boutons-étiquettes (photo : appareil ou galerie) */
label.btn { margin: 0; color: var(--mpc-ink-1-value-e08de71387, #fff); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 900; cursor: pointer; text-align: center; }
.photo-drop { min-height: 120px; }

/* ---- Éditeur de photo (recadrage et zoom) ---- */
.crop-sheet { text-align: center; }
.crop-frame { position: relative; margin: 14px auto 0; overflow: hidden; border-radius: 18px; border: 2px solid var(--gold2); background: var(--mpc-canvas-1-value-81ef715e34, #000); touch-action: none; cursor: grab; box-shadow: 0 0 40px rgba(139,66,255,.25); }
.crop-frame.round { border-radius: 50%; }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-zoom-row { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; max-width: 440px; }
.crop-zoom-row input { flex: 1; min-height: 0; padding: 0; background: transparent; border: 0; accent-color: var(--gold); }

/* Barre du bas : 5 éléments, donc 5 colonnes égales (le bouton Prise est bien au centre) */
nav.tabs { grid-template-columns: repeat(5, 1fr) !important; }
nav.tabs a.fab { display: flex; align-items: center; justify-content: center; }

/* Pseudo + icône de sortie sur la même ligne */
.nav-user { display: flex; align-items: center; gap: 6px; }
.site-nav .icon-btn { width: 46px; min-width: 46px; padding: 0 !important; }
.site-nav .nav-user .btn-nav { flex: 1; }
@media (max-width: 800px) {
  .site-nav .nav-user { width: 100%; }
  .site-nav .nav-user .btn-nav { width: auto !important; flex: 1; }
  .site-nav .nav-user .icon-btn { width: 46px !important; flex: 0 0 46px; justify-content: center !important; padding-left: 0 !important; }
}

/* Fil : la photo s'affiche en entier, sans être rognée (format paysage ou autre) */
.post-img { aspect-ratio: auto !important; height: auto; max-height: 78vh; object-fit: contain; background: var(--mpc-canvas-1-value-34724e9831, #05030a); }
.crop-ratios { justify-content: center; margin-top: 4px; }

/* Photos : fondu à l’apparition, fond sombre pendant le chargement */
.post-img, .tile img, .thumb { background: var(--mpc-surface-1-value-c6ebc9b3d9, #0b0916); }

/* Carte du fil plus compacte : pastilles sur la photo, titre et j'aime / commentaires sur une seule ligne */
.post-media { position: relative; display: block; }
.post-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); pointer-events: none; }
.post-badges .chip { background: var(--mpc-canvas-0_66-value-d8508dae20, rgba(3,4,10,.66)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--mpc-line-0_18-value-82e16a9943, rgba(255,255,255,.18)); color: var(--mpc-ink-1-value-e08de71387, #fff); text-shadow: none; }
.post-badges .chip.on { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #120b04; border-color: transparent; }
.post-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.post-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.post-title b { font-size: 1.05rem; }
.post-actions { margin-top: 0; flex: none; gap: 6px; }
.post-actions .small { min-height: 40px; padding: 0 12px; }

.post-actions { gap: 4px; }
.post-actions .small { min-height: 38px; padding: 0 9px; font-size: .9rem; }
.post-title b { font-size: 1rem; }
.post-title span { font-size: .9rem; }

/* Boutons sous les titres de page : côte à côte (deux par ligne) pour gagner de la hauteur */
.hero-actions { gap: 8px; margin-top: 16px; }
.hero-actions > .btn, .hero-actions > button { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 0 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .hero-actions > .btn, .hero-actions > button { flex: 0 0 auto; padding: 0 22px; } }

/* Pastille « Remis à l'eau » en haut à droite de la photo ; technique à droite de l'en-tête */
.post-badges { left: auto; right: 12px; justify-content: flex-end; }
.post-head .post-tech { flex: none; margin-left: auto; }
.post-head [data-follow] + .post-tech { margin-left: 0; }

/* ---- Écran de connexion : titre sous l'en-tête du site, boutons de connexion sociale ---- */
.auth-wrap { padding-top: 0; }
.auth-hero { margin: 4px 0 18px; }
.auth-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.social { margin-top: 18px; display: grid; gap: 10px; }
.social-sep { display: flex; align-items: center; gap: 12px; color: var(--mpc-ink-0_55-value-84172f7dff, rgba(247,247,251,.55)); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.social-sep::before, .social-sep::after { content: ""; flex: 1; height: 1px; background: var(--mpc-wash-0_14-value-06ff57dd04, rgba(255,255,255,.14)); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; background: var(--mpc-wash-0_06-value-5704ef9ed3, rgba(255,255,255,.06)); border: 1px solid var(--mpc-line-0_16-value-57c94231f5, rgba(255,255,255,.16)); color: var(--mpc-ink-1-value-e08de71387, #fff); font-size: 16px; font-weight: 900; text-transform: none; letter-spacing: 0; cursor: pointer; }
.social-btn:hover { background: var(--mpc-wash-0_12-value-b34d3e7911, rgba(255,255,255,.12)); border-color: var(--gold2); }
.social-btn.mpc { border-color: rgba(216,163,77,.55); }
.social-btn img { border-radius: 6px; object-fit: contain; }
:root[data-theme="light"] .social-btn { color: #1a1328; background: var(--mpc-raised-1-value-e08de71387, #fff); }

/* Connexion sociale : trois icônes côte à côte */
.social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.social-btn { min-height: 62px; padding: 0; }
.social-btn svg { width: 30px; height: 30px; }

.social-btn.mpc img { width: 52px; height: auto; max-height: 34px; object-fit: contain; border-radius: 0; }
