:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#737373;
  --line:#dbdbdb;
  --accent:#e1306c;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

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

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  height:60px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
}

.brand{
  font-size:32px;
  font-weight:700;
  line-height:1;
}

.brand span{
  color:var(--accent);
}

.profile-wrap{
  max-width:980px;
  margin:0 auto;
  padding:30px 20px 40px;
}

.profile-header{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:40px;
  align-items:start;
  padding-bottom:28px;
  border-bottom:1px solid var(--line);
}

.profile-avatar{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:flex-start;
  justify-content:center;
}

.profile-avatar img{
  width:150px;
  height:150px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}

.profile-main{
  min-width:0;
}

.profile-topline{
  display:grid;
  grid-template-columns:auto auto auto;
  align-items:start;
  column-gap:14px;
  margin-bottom:22px;
}

.profile-topline h1{
  grid-column:1;
  grid-row:1;
  margin:0;
}

.profile-badge{
  grid-column:2;
  grid-row:1;
  justify-self:start;
  align-self:center;
}

.profile-topline > a.profile-cta{
  grid-column:3;
  grid-row:1;
  justify-self:start;
  align-self:center;
  margin-left:0;
}

.profile-actions{
  grid-column:3;
  grid-row:1 / span 2;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  align-items:start;
  gap:10px;
  margin-left:130px;
}

.profile-actions .profile-cta{
  width:160px;
  text-align:center;
  box-sizing:border-box;
}

.profile-topline h1{
  margin:0;
  font-size:28px;
  font-weight:400;
}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;
  flex-wrap:wrap;
  margin-bottom:22px;
  font-size:17px;
}



.profile-stats strong{
  font-weight:600;
}

.profile-bio{
  font-size:16px;
  line-height:1.45;
}

.profile-name{
  font-weight:600;
  margin-bottom:4px;
}

.profile-tabs{
  height:54px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
  gap:38px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px;
}

.profile-tabs a{
  height:54px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  border-top:1px solid transparent;
}

.profile-tabs a.active{
  color:var(--text);
  border-top-color:var(--text);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-wrap:wrap;
  gap:4px;
}

.card{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f2f2f2;
}

.card img,
.card video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

#grid .card.card-video-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  background:#000 !important;
}

@media (min-width:1024px){
  .profile-wrap{
    padding-left:12px;
    padding-right:12px;
  }
}

@media (max-width:720px){
  .profile-wrap{
    padding:16px 0 30px;
  }

  .profile-header{
    grid-template-columns:96px 1fr;
    gap:18px;
    padding:0 16px 20px;
  }

  .profile-avatar img{
    width:84px;
    height:84px;
  }

  .profile-topline{
    margin-bottom:14px;
  }

  .profile-topline h1{
    font-size:24px;
  }

  .profile-stats{
    gap:18px;
    margin-bottom:14px;
    font-size:15px;
  }

  .profile-bio{
    font-size:14px;
  }

  .profile-tabs{
    gap:22px;
  }
}

.card{
  position:relative;
  cursor:pointer;
}

.card::after{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0);
  transition:.25s;
}

.card:hover::after{
  background:rgba(0,0,0,0.25);
}

.card-info{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:600;
  opacity:0;
  transition:.25s;
}

.card:hover .card-info{
  opacity:1;
}


.profile-header{
  grid-template-columns:190px 1fr;
  gap:46px;
  padding-bottom:34px;
}

.profile-avatar img{
  width:164px;
  height:164px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.profile-topline{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}

.profile-topline h1{
  margin:0;
  font-size:30px;
  font-weight:300;
  letter-spacing:-.02em;
}

.profile-badge{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#f8d3e3,#f5efe8);
  color:#9d3a63;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;
  flex-wrap:wrap;
  margin-bottom:18px;
  font-size:17px;
}



.profile-stats strong{
  font-weight:700;
}

.profile-bio{
  font-size:16px;
  line-height:1.5;
  max-width:520px;
}

.profile-name{
  font-weight:700;
  margin-bottom:2px;
}

.profile-tagline{
  color:#9d3a63;
  margin-top:6px;
  font-weight:500;
}

.profile-tabs{
  margin-bottom:18px;
}

.profile-tabs a{
  position:relative;
}

.profile-tabs a.active{
  color:#111;
}

.profile-tabs a.active::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:-1px;
  height:2px;
  background:#111;
}

@media (max-width:720px){
  .profile-header{
    grid-template-columns:96px 1fr;
    gap:18px;
    padding:0 16px 22px;
  }

  .profile-avatar img{
    width:92px;
    height:92px;
  }

  .profile-topline h1{
    font-size:24px;
  }

  .profile-badge{
    height:24px;
    padding:0 10px;
    font-size:11px;
  }

  .profile-stats{
    gap:16px;
    font-size:15px;
  }

  .profile-bio{
    font-size:14px;
  }
}


.profile-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#f7d6e6,#f2e9e4);
  color:#9d3a63;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  margin-left:12px;
  transition:all .25s ease;
  box-shadow:0 4px 14px rgba(157,58,99,.15);
}

.profile-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(157,58,99,.25);
  background:linear-gradient(135deg,#f4c4dc,#efe3dc);
}

.profile-cta:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(157,58,99,.15);
}


body.modal-open{
  overflow:hidden;
}

.card-multi{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  color:#fff;
  font-size:18px;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}

/* extracted from dev-clean.php: inline block 1 */
body{background:radial-gradient(ellipse at 50% 50%, #e6d0da 0%, #eddbe2 20%, #f3e5ea 38%, #faf2f5 62%, #fffafb 82%, #fffefe 100%) !important;}
.grid-shell{
  width:min(860px,calc(100% - 24px));
  margin:16px auto 0;
  padding:16px;
  border-radius:32px;
  position:relative;
  z-index:2;
  background:rgba(255,255,255,.06);
  box-shadow:0 10px 24px rgba(124,72,96,.10);
}



.grid-shell::before{
  content:"";
  position:absolute;
  inset:-34px;
  border-radius:52px;
  background:radial-gradient(ellipse at center,
    rgba(186,146,167,.72) 0%,
    rgba(214,180,196,.52) 26%,
    rgba(238,223,230,.28) 48%,
    rgba(255,255,255,0) 76%);
  z-index:-1;
  pointer-events:none;
}



@media (max-width: 640px){

  /* SUPPRESSION totale des boutons noirs */
  .admin-entry{
    display:none !important;
  }

}

/* extracted from dev-clean.php: inline block 2 (lightbox) */
body.modal-open{overflow:hidden}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.86);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:24px;
}
.lightbox.active{display:flex}

.lightbox-shell.insta-post{
  position:relative;
  width:min(1280px,96vw);
  height:min(90vh,900px);
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 72px 380px;
  align-items:stretch;
}

.lightbox-stage{
  grid-column:2;
  background:#000;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
}
.lightbox-stage img{
  max-width:100%;
  max-height:78vh;
  object-fit:contain;
  display:block;
}

.lightbox-nav{
  align-self:center;
  justify-self:center;
  width:48px;
  height:48px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:34px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.lightbox-nav.prev{grid-column:1}
.lightbox-nav.next{grid-column:3}

.lightbox-close{
  position:absolute;
  top:-4px;
  right:0;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  z-index:5;
}

.lightbox-side{
  grid-column:4;
  background:#fff;
  color:#111;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  min-width:0;
  height:min(90vh,900px);
  max-height:min(90vh,900px);
  overflow:hidden;
}
.lightbox-side-header{
  padding:16px 18px;
  border-bottom:1px solid #dbdbdb;
}
.lightbox-side-user{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  gap:12px;
}
.lightbox-side-user img{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}
.lb-username{
  font-size:14px;
  font-weight:600;
  line-height:1.2;
}

.lightbox-side-body{background:#fcf8fa;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:14px 18px 18px;
}
.lightbox-caption-block{
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
  margin-bottom:14px;
}
.lightbox-caption-user{
  font-weight:600;
  margin-right:8px;
}

.lightbox-comments{
  border-top:1px solid #efefef;
  padding-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  gap:14px;
}
.comment-block{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  gap:6px;
}
.comment-line{
  font-size:14px;
  line-height:1.4;
  color:#111;
}
.comment-line .pseudo{
  font-weight:600;
}
.reply-line{
  margin-left:24px;
  color:#333;
}
.comment-actions{
  margin-left:24px;
  margin-top:-2px;
}
.comment-reply-btn{
  border:none;
  background:none;
  padding:0;
  font:inherit;
  font-size:12px;
  color:#737373;
  cursor:pointer;
}
.comment-reply-btn:hover{
  color:#111;
}

.lightbox-side-footer{
  padding:16px 18px 18px;
  border-top:1px solid #dbdbdb;
}
.lightbox-counter{
  font-size:12px;
  color:#737373;
  margin-bottom:14px;
}
.lightbox-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
}
.metric{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:baseline;
  gap:8px;
}
.metric strong{
  font-size:16px;
  font-weight:700;
  color:#111;
}
.metric span{
  font-size:13px;
  color:#737373;
}

.reply-target{
  display:none;
  margin-bottom:10px;
  font-size:12px;
  color:#737373;
}
.reply-target.active{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.reply-target-clear{
  border:none;
  background:none;
  padding:0;
  font:inherit;
  font-size:12px;
  color:#111;
  cursor:pointer;
}

.lightbox-reply-form{
  padding-top:16px;
  border-top:1px solid #dbdbdb;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  gap:10px;
}
.lightbox-reply-form textarea{
  width:100%;
  min-height:92px;
  resize:vertical;
  border:1px solid #dbdbdb;
  border-radius:10px;
  padding:12px 14px;
  font:inherit;
  color:#111;
  background:#fff;
  outline:none;
}
.lightbox-reply-form button{
  align-self:flex-end;
  border:none;
  border-radius:999px;
  background:#0095f6;
  color:#fff;
  font:inherit;
  font-weight:600;
  padding:10px 16px;
  cursor:pointer;
}

.card-multi{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  color:#fff;
  font-size:18px;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}

.card-video{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
  z-index:3;
  pointer-events:none;
}

.card-video::before{
  content:'▶';
  width:64px;
  height:64px;
  border-radius:999px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.42);
  color:#fff;
  font-size:20px;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.card-pin{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:20;
  border:none;
  border-radius:999px;
  background:rgba(17,17,17,.72);
  color:#fff;
  font:inherit;
  font-size:14px;
  font-weight:700;
  padding:7px 10px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.card-pin:hover{
  background:rgba(17,17,17,.9);
}

.card-delete{
  position:absolute;
  left:10px;
  bottom:10px;
  z-index:20;
  border:none;
  border-radius:999px;
  background:rgba(220,38,38,.96);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:700;
  padding:8px 12px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.card-delete:hover{
  background:rgba(185,28,28,.98);
}
.card-text-inner{
  white-space:pre-wrap;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  padding:36px 28px;
  box-sizing:border-box;
  text-align:center;

  font-family:"Georgia","Times New Roman",serif;
  font-size:20px;
  line-height:1.5;
  font-weight:500;

  color:#5a2f3f;

  background:linear-gradient(180deg,#fdf6f8 0%, #f6e4ea 100%);
  border-radius:18px;

  box-shadow:
    0 10px 25px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(255,255,255,.6);

  position:relative;
}

.card-text-inner::after{
  content:"Léa";
  position:absolute;
  bottom:14px;
  right:18px;
  font-size:14px;
  font-style:italic;
  opacity:.55;
}

.card.text{
  background:transparent;
  padding:0;
  overflow:hidden;
}

.card-video-label{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  pointer-events:none;
}

@media (max-width:980px){
  body.modal-open{overflow:auto}

  .lightbox{
    padding:10px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    align-items:flex-start;
  }

  .lightbox.active{display:block}

  .lightbox-shell.insta-post{
    width:100%;
    height:auto;
    display:block;
  }

  .lightbox-stage{
    display:block;
    background:#000;
  }

  .lightbox-stage img{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
    max-height:none;
    object-fit:contain;
  }

  .lightbox-side{
    display:block;
    min-width:0;
  }

  .lightbox-side-body{
    overflow:visible;
    max-height:none;
  }

  .lightbox-close{
    position:fixed;
    top:10px;
    right:10px;
    z-index:10001;
  }

  .lightbox-nav{
    position:fixed;
    top:38vh;
    z-index:10000;
    width:40px;
    height:40px;
    font-size:20px;
  }

  .lightbox-nav.prev{left:6px}
  .lightbox-nav.next{right:6px}
}

.admin-entry{
  position:fixed;
  top:18px;
  right:18px;
  z-index:9999;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:44px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(17,17,17,.82);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
}
.admin-entry:hover{
  background:rgba(17,17,17,.94);
}


/* ===== LOGIN PAGE ===== */

body.login-page{
  min-height:100vh;
  background:#120d10 !important;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.login-hero{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 35%, rgba(214,146,82,.26) 0%, rgba(214,146,82,0) 36%),
    linear-gradient(90deg, rgba(16,10,12,.78) 0%, rgba(16,10,12,.48) 34%, rgba(16,10,12,.18) 58%, rgba(16,10,12,.30) 100%);
}

.login-hero-blur{
  position:absolute;
  inset:-40px;
  background:url('/assets/login-bg.jpg') center center / cover no-repeat;
  transform:scale(1.18);
  filter:blur(34px) saturate(1.02) brightness(.78);
  opacity:.95;
}

.login-hero-photo{
  position:absolute;
  inset:0;
  background:url('/assets/login-bg.jpg') center center / contain no-repeat;
  animation:loginHeroFloat 18s ease-in-out infinite alternate;
}

.login-hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(12,8,10,.74) 0%, rgba(12,8,10,.42) 26%, rgba(12,8,10,.10) 48%, rgba(12,8,10,.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.02) 30%, rgba(0,0,0,.16) 100%);
}

@keyframes loginHeroFloat{
  from{transform:scale(1.00)}
  to{transform:scale(1.03)}
}

.login-layout{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:flex-start;
  padding:40px 24px;
}

.login-panel{
  width:min(100%, 520px);
  margin-left:clamp(16px, 7vw, 110px);
}

.login-brand{
  margin:0 0 18px;
  font-size:34px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.02em;
  text-shadow:0 8px 28px rgba(0,0,0,.28);
}

.login-brand span{
  color:var(--accent);
}

.login-card{
  width:min(440px, 100%);
  padding:30px 28px 26px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:24px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 18px 60px rgba(0,0,0,.32);
}

.login-card h1{
  margin:0 0 10px;
  font-size:40px;
  line-height:1.02;
  letter-spacing:-.03em;
  color:#fff;
}

.login-lead{
  margin:0 0 22px;
  color:rgba(255,255,255,.78);
  font-size:16px;
  line-height:1.5;
}

.login-form .field{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.login-form label,
.login-card .field label{
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.92);
}

.login-form input[type="text"],
.login-form input[type="password"]{
  height:54px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.12);
  color:#fff;
  padding:0 15px;
  font-size:16px;
  outline:none;
  box-shadow:none;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder{
  color:rgba(255,255,255,.52);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus{
  border-color:rgba(255,255,255,.34);
  background:rgba(255,255,255,.15);
}

.login-card .remember{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  gap:10px;
  margin:10px 0 18px;
  color:rgba(255,255,255,.82);
  font-size:14px;
}

.login-card .remember input{
  accent-color:#fff;
}

.login-card button{
  width:100%;
  height:54px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.login-card button:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(0,0,0,.22);
}

.login-card button:active{
  transform:translateY(0);
}

.login-card .error{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(127,29,29,.78);
  color:#fff0f0;
  border:1px solid rgba(254,202,202,.25);
  font-size:14px;
}

.login-card .ok{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(6,78,59,.72);
  color:#ecfdf5;
  border:1px solid rgba(187,247,208,.22);
  font-size:14px;
}

.login-card .alt{
  margin-top:12px;
  font-size:14px;
  color:rgba(255,255,255,.84);
}

.login-card .alt a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media (max-width: 900px){
  .login-layout{
    justify-content:center;
    padding:24px 16px 28px;
  }

  .login-panel{
    margin-left:0;
    width:min(100%, 460px);
  }

  .login-hero-photo{
    background-position:58% center;
  }
}

@media (max-width: 640px){
  .login-layout{
    align-items:flex-end;
    padding:18px 14px 18px;
  }

  .login-card{
    padding:24px 18px 20px;
    border-radius:20px;
    background:rgba(15,15,18,.44);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .login-brand{
    font-size:28px;
    margin-bottom:12px;
  }

  .login-card h1{
    font-size:32px;
  }

  .login-lead{
    font-size:15px;
    margin-bottom:18px;
  }

  .login-hero-photo{
    background-position:60% center;
    background-size:cover;
  }

  .login-hero-blur{
    transform:scale(1.10);
    filter:blur(24px) saturate(1.02) brightness(.72);
  }
}

/* ===== SIGNUP PAGE ===== */

body.signup-page{
  min-height:100vh;
  background:#171312 !important;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.signup-hero{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(237,203,149,.18) 0%, rgba(237,203,149,0) 34%),
    linear-gradient(90deg, rgba(17,13,12,.72) 0%, rgba(17,13,12,.42) 34%, rgba(17,13,12,.16) 58%, rgba(17,13,12,.24) 100%);
}

.signup-hero-blur{
  position:absolute;
  inset:-40px;
  background:url('/assets/signup-bg.jpg') center center / cover no-repeat;
  transform:scale(1.18);
  filter:blur(32px) saturate(1.02) brightness(.82);
  opacity:.96;
}

.signup-hero-photo{
  position:absolute;
  inset:0;
  background:url('/assets/signup-bg.jpg') center center / contain no-repeat;
  animation:signupHeroFloat 18s ease-in-out infinite alternate;
}

.signup-hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(16,12,10,.66) 0%, rgba(16,12,10,.36) 28%, rgba(16,12,10,.10) 48%, rgba(16,12,10,.14) 100%),
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(0,0,0,.03) 40%, rgba(0,0,0,.10) 100%);
}

@keyframes signupHeroFloat{
  from{transform:scale(1.00)}
  to{transform:scale(1.03)}
}

.signup-layout{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  justify-content:flex-start;
  padding:40px 24px;
}

.signup-panel{
  width:min(100%, 520px);
  margin-left:clamp(16px, 7vw, 110px);
}

.signup-brand{
  margin:0 0 18px;
  font-size:34px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.02em;
  text-shadow:0 8px 28px rgba(0,0,0,.24);
}

.signup-brand span{
  color:var(--accent);
}

.signup-card{
  width:min(440px, 100%);
  padding:30px 28px 26px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:24px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 18px 60px rgba(0,0,0,.28);
}

.signup-card h1{
  margin:0 0 10px;
  font-size:40px;
  line-height:1.02;
  letter-spacing:-.03em;
  color:#fff;
}

.signup-lead{
  margin:0 0 22px;
  color:rgba(255,255,255,.82);
  font-size:16px;
  line-height:1.5;
}

.signup-form .field{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.signup-form label,
.signup-card .field label{
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.94);
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"]{
  height:54px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.13);
  color:#fff;
  padding:0 15px;
  font-size:16px;
  outline:none;
  box-shadow:none;
}

.signup-form input[type="text"]::placeholder,
.signup-form input[type="email"]::placeholder,
.signup-form input[type="password"]::placeholder{
  color:rgba(255,255,255,.54);
}

.signup-form input[type="text"]:focus,
.signup-form input[type="email"]:focus,
.signup-form input[type="password"]:focus{
  border-color:rgba(255,255,255,.34);
  background:rgba(255,255,255,.16);
}

.signup-card button{
  width:100%;
  height:54px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}

.signup-card button:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(0,0,0,.20);
}

.signup-card button:active{
  transform:translateY(0);
}

.signup-card .error{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(127,29,29,.78);
  color:#fff0f0;
  border:1px solid rgba(254,202,202,.25);
  font-size:14px;
}

.signup-meta{
  margin-top:14px;
  font-size:13px;
  color:rgba(255,255,255,.74);
}

.signup-card .alt{
  margin-top:12px;
  font-size:14px;
  color:rgba(255,255,255,.86);
}

.signup-card .alt a{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media (max-width: 900px){
  .signup-layout{
    justify-content:center;
    padding:24px 16px 28px;
  }

  .signup-panel{
    margin-left:0;
    width:min(100%, 460px);
  }

  .signup-hero-photo{
    background-position:56% center;
  }
}

@media (max-width: 640px){
  .signup-layout{
    align-items:flex-end;
    padding:18px 14px 18px;
  }

  .signup-card{
    padding:24px 18px 20px;
    border-radius:20px;
    background:rgba(20,17,16,.42);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .signup-brand{
    font-size:28px;
    margin-bottom:12px;
  }

  .signup-card h1{
    font-size:32px;
  }

  .signup-lead{
    font-size:15px;
    margin-bottom:18px;
  }

  .signup-hero-photo{
    background-position:58% center;
    background-size:cover;
  }

  .signup-hero-blur{
    transform:scale(1.10);
    filter:blur(24px) saturate(1.02) brightness(.76);
  }
}


/* --- cartes publications : titre sous vignette + boutons compacts --- */
.grid{
  row-gap:16px;
}

.card{
  overflow: visible !important;
}

.card-title{
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  color: #b05c82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.card-delete,
.card-edit{
  position: absolute;
  bottom: 8px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.card-delete{
  left: 8px;
}

.card-edit{
  left: 40px;
  background: #ff5a7a;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(255, 90, 122, .26);
}

.card-edit:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* --- FIX boutons S / M visibles --- */
.card-delete{
  left: 8px !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.card-edit{
  position: absolute !important;
  left: 40px !important;
  bottom: 8px !important;
  width: 26px !important;
  height: 26px !important;
  background: #ff6b7d !important;
  color: #fff !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  z-index: 50 !important;
}

/* --- titre sous carte (comme archive) --- */
.card{
  overflow: visible !important;
}

.card-title{
  width: 100%;
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.2;
  color: #b05c82;
  font-weight: 500;
}



.card-stack{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
}

.card-stack .card{
  width:100%;
}



.grid{
  row-gap:16px;
}

.tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  justify-content:center;
  gap:30px;
  margin:20px 0 10px;
  border-bottom:1px solid #eee;
}

.tab{
  padding:10px 0;
  font-weight:600;
  font-size:13px;
  color:#888;
  text-decoration:none;
  position:relative;
}

.tab.active{
  color:#111;
}

.tab.active::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#111;
}

/* FIX titre sous carte */
.card{
  overflow: visible !important;
}










/* === FIX PROPRE TITRE === */
.card-wrapper{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  flex-direction:column;
  gap:0;
}

.archive-note{
  width:100%;
  text-align:center;
  margin-top:2px;
  font-size:13px;
  line-height:1.2;
  color:#b05c82;
  font-weight:500;
}


.card-wrapper{
  width: calc(33.333% - 4px);
}

.card-wrapper{display:flex;flex-direction:column}

/* BEGIN DISABLED GRID VIDEO THUMBNAIL PATCH MESS */

.card .media {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.card img.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: white;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 10px 14px;
}


/* Fix vignettes vidéo grille : ne plus couper la tête */
#grid .card video{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center center !important;
  background:#f4ecef;
  display:block;
}

/* === FIX VIGNETTES VIDÉO PROPRE === */
#grid .card video,
#grid .card img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center center !important;
  background:#e8f5e9; /* vert doux par défaut */
}

/* variante fond beige (café) */
#grid .card:nth-child(2) img,
#grid .card:nth-child(2) video{
  background:#f5eee6;
}


/* === FIX VIGNETTES VIDÉO PROPRE === */
#grid .card video,
#grid .card img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center center !important;
  background:#e8f5e9; /* vert doux par défaut */
}

/* variante fond beige (café) */
#grid .card:nth-child(2) img,
#grid .card:nth-child(2) video{
  background:#f5eee6;
}


/* === VIGNETTES VIDEO : solution durable === */
#grid .card.card-video-thumb{
  background:#e9efe8;
}

/* Fix thumbnails grid: images + vidéos */
.post-card,
.grid-item,
.post-tile,
.feed-item {
  overflow: hidden;
}

.post-card img,
.post-card video,
.grid-item img,
.grid-item video,
.post-tile img,
.post-tile video,
.feed-item img,
.feed-item video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
/* END DISABLED GRID VIDEO THUMBNAIL PATCH MESS */


/* ===== CLEAN GRID THUMBNAIL RULES ===== */
#grid .card .media{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}

#grid .card .media > img,
#grid .card .media > video,
#grid .card img.thumb,
#grid .card video{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

#grid .card.card-video-thumb,
#grid .card.card-video-thumb .media{
  aspect-ratio: 1 / 1 !important;
}

#grid .card:nth-child(2) img,
#grid .card:nth-child(2) video{
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
/* ===== END CLEAN GRID THUMBNAIL RULES ===== */

.signup-cta{
  display:grid;
  place-items:center;
  width:100%;
  min-height:54px;
  margin:0 0 14px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:800;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform .18s ease, box-shadow .18s ease;
}

.signup-cta:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(0,0,0,.22);
}

.signup-cta:active{
  transform:translateY(0);
}

.login-divider{
  margin:0 0 18px;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.84);
}
