/* =========================================
   Rage Feed — intégré au design du site
   ========================================= */
.rb-ragepage{ max-width:1200px; margin:30px auto 70px; padding:0 20px; box-sizing:border-box; }
.rb-ragepage .rb-section{ margin-top:18px; }

.rb-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  border-radius:22px;
  box-shadow:0 18px 55px rgba(0,0,0,.10);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.rb-box::before{
  content:"";
  position:absolute;
  inset:-160px -160px auto auto;
  width:360px;
  height:360px;
  background: radial-gradient(circle, rgba(255,77,77,0.16), rgba(255,77,77,0) 70%);
  pointer-events:none;
  opacity:.9;
}
.rb-box > *{ position:relative; z-index:1; }

/* Alerts */
.rb-alert{ padding:12px 14px; border-radius:14px; font-weight:800; margin: 0 0 14px; }
.rb-alert--ok{ background:#d4edda; color:#155724; }
.rb-alert--err{ background:#f8d7da; color:#721c24; }

/* Form */
.rb-form{ display:grid; gap:12px; }
.rb-form label{ font-weight:900; color:#111; font-size:.95rem; }
.rb-form input[type="text"],
.rb-form textarea,
.rb-form input[type="url"]{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  font-size:1rem;
  box-sizing:border-box;
  transition:border .2s ease, box-shadow .2s ease;
}
.rb-form textarea{ min-height:130px; resize:vertical; }
.rb-form input:focus, .rb-form textarea:focus{
  border-color: rgba(214,40,40,.5);
  box-shadow: 0 0 0 4px rgba(214,40,40,.12);
  outline:none;
}
.rb-form .rb-formRow{ display:grid; gap:6px; }

.rb-form .rb-upload{
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
}
.rb-form input[type="file"]{ max-width:100%; }

.rb-previews{
  display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start;
}
.rb-previewImg{
  width:160px; height:110px; object-fit:cover;
  border-radius:14px; border:1px solid rgba(0,0,0,.08);
  display:none;
}
.rb-previewVideo{
  width:260px; height:150px;
  border-radius:14px; border:1px solid rgba(0,0,0,.08);
  display:none;
}
.rb-previewTikTok{
  display:none;
  width:260px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
}

/* Buttons */
.rb-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.rb-actions button{ width:auto; }

/* Grid head */
.rb-rageGridHead{ margin: 0 0 12px; position: relative; margin-bottom: 22px; padding-bottom: 18px; }
.rb-rageGridHead h2{ margin:0; }
.rb-rageGridHead p{ margin:12px 0 0; max-width:640px; font-size:1.05rem; line-height:1.6; color:#444; }
.rb-rageGridHead::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:100%; height:1px;
  background: linear-gradient(90deg, rgba(0,0,0,.15), rgba(0,0,0,.05), rgba(0,0,0,0));
}

/* Titre premium */
.rb-rageGridHead .section-title{
  all: unset;
  display:inline-block;
  position:relative;
  font-family: inherit;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: #0e0e0e;
  cursor: default;
}
.rb-rageGridHead .section-title::before{
  content:"";
  position:absolute; z-index:-1;
  left:-18px; right:-18px; bottom:-10px;
  height:55%;
  background:
    radial-gradient(ellipse at left, rgba(255,77,77,.35), rgba(255,77,77,0) 70%),
    radial-gradient(ellipse at right, rgba(214,40,40,.25), rgba(214,40,40,0) 70%);
  filter: blur(22px);
  opacity:.85;
}
.rb-rageGridHead .section-title::after{
  content:"";
  position:absolute;
  left:0; bottom:-8px;
  width:46px; height:4px;
  border-radius:4px;
  background: linear-gradient(90deg, #ff4d4d, #d62828);
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
@media (hover:hover){
  .rb-rageGridHead .section-title:hover::after{ width:72%; }
}

/* Hero subtext */
.hero-lp__subtext{ margin-top:18px; max-width:680px; position:relative; }
.hero-lp__subtext p{
  margin:0;
  font-size:1.05rem;
  line-height:1.65;
  color:#333;
  font-weight:500;
  letter-spacing:-0.1px;
}
.hero-lp__subtext strong{
  font-weight:800;
  color:#111;
  position:relative;
  white-space:nowrap;
}
.hero-lp__subtext strong::after{
  content:"";
  position:absolute;
  left:-4px; right:-4px;
  bottom:0.05em;
  height:0.6em;
  background: linear-gradient(90deg, rgba(255,77,77,.35), rgba(214,40,40,.35));
  z-index:-1;
  border-radius:6px;
}
@media (max-width:600px){
  .hero-lp__subtext{ margin-top:14px; }
  .hero-lp__subtext p{ font-size:1rem; }
}

/* Liens sans trait */
.rb-ragepage a{ text-decoration:none !important; }
.rb-ragepage a:hover, .rb-ragepage a:focus{ text-decoration:none !important; }
.rb-ragepage a::before, .rb-ragepage a::after{ text-decoration:none !important; border:0 !important; }

/* Iframe clean */
.rb-ragepage iframe{ border:0 !important; outline:none !important; box-shadow:none !important; }

/* Thumbs + TRAIT ROUGE FIN (comme avant) */
.card-thumbWrap{
  border-radius:16px;
  overflow:hidden;
  position:relative;
  display:block;
}
.card-thumbWrap::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;                  /* trait fin */
  background: linear-gradient(90deg, #ff4d4d, #d62828);
  opacity:.95;
  pointer-events:none;
}
.card-thumb{
  display:block;
  width:100%;
  height:210px;
  border:0 !important;
  outline:0 !important;
}
@media(max-width:720px){ .card-thumb{ height:200px; } }

/* Badges cards */
.rb-badges{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.rb-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:.78rem;
  background: rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.08);
  color:#111;
}
.rb-badge--hot{
  background: rgba(214,40,40,.10);
  border-color: rgba(214,40,40,.18);
}

/* FAQ */
.rb-faq details{
  background:#fffafa;
  border-radius:14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
}
.rb-faq summary{ cursor:pointer; font-weight:900; color:#d62828; }
.rb-faq p{ margin-top:10px; color:#333; line-height:1.6; }
	
/* =========================================
   PAGE SUBMIT RAGE — THUMBS ANGLES DROITS + TRAIT ROUGE
   (uniquement sur la page .rb-ragepage)
   ========================================= */

/* 1) Angles droits sur le wrapper des medias */
.rb-ragepage .card-thumbWrap{
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}

/* 2) Angles droits sur les médias eux-mêmes */
.rb-ragepage .card-thumbWrap .card-thumb,
.rb-ragepage .card-thumbWrap iframe,
.rb-ragepage .card-thumbWrap img{
  border-radius: 0 !important;
}

/* 3) Trait rouge fin en bas (comme avant) */
.rb-ragepage .card-thumbWrap::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: linear-gradient(90deg, #ff4d4d, #d62828);
  opacity:.95;
  pointer-events:none;
  z-index: 5;
}

.hero-lp__topLine{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.hero-lp__miniBadge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-weight:900;
  font-size:.72rem;
  background: rgba(214,40,40,.12);
  border: 1px solid rgba(214,40,40,.22);
  color:#d62828;
  line-height:1;
}

/* =========================================
   SHARE MODAL — FIX MOBILE + TABLET ONLY
   (AUCUN impact desktop)
   ========================================= 

/* Mobile + tablette
@media (max-width: 768px){

  /* Overlay : évite les modales coupées 
  .rb-shareOverlay{
    align-items: flex-start;
    padding: 12px;
  }

  /* Modal : jamais plus grande que l’écran 
  .rb-shareModal{
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Grille : boutons respirent mieux 
  .rb-shareGrid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  /* Ligne URL : empêche le débordement 
  .rb-shareUrl{
    min-width: 0;
  }
}*/

/* Mobile uniquement 
@media (max-width: 480px){

  /* 1 colonne sur téléphone 
  .rb-shareGrid{
    grid-template-columns: 1fr;
  }

  /* URL + bouton peuvent passer à la ligne 
  .rb-shareUrlRow{
    flex-wrap: wrap;
  }

  .rb-shareCopy{
    width: 100%;
  }

  /* iOS : empêche le zoom 
  .rb-shareUrl{
    font-size: 16px;
  }
}*/

/* =========================================
   RB GUIDE — Section contenu optimisée
   ========================================= */

/* Texte intro */
.rb-guide .rb-rageGridHead p{
  max-width: 780px;
}

/* Grille principale */
.rb-guideGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 10px;
}

/* Cartes */
.rb-guideCard{
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* Titres */
.rb-guideTitle{
  margin: 0 0 10px;
  font-weight: 950;
  letter-spacing: -.3px;
  line-height: 1.2;
  color: #111;
}

/* Listes */
.rb-guideList{
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.65;
  color: #222;
}
.rb-guideList li{
  margin-bottom: 6px;
}

/* Texte simple */
.rb-guideText{
  margin: 0 0 10px;
  line-height: 1.65;
  color: #333;
}

/* Actions */
.rb-guideActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Chips / tags */
.rb-guideChips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rb-guideChip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  background: rgba(214,40,40,.10);
  border: 1px solid rgba(214,40,40,.18);
  color: #d62828;
  line-height: 1;
}

/* Note */
.rb-guideNote{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 700;
  color: #111;
}

/* Footer texte */
.rb-guideFooter{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.rb-guideFooter p{
  margin: 0;
  line-height: 1.7;
  color: #333;
}

/* =========================================
   Responsive — mobile / tablette uniquement
   ========================================= */
@media (max-width: 820px){
  .rb-guideGrid{
    grid-template-columns: 1fr;
  }
}

	
/* =========================================
   RECORD MODAL — style proche Share Modal
   ========================================= */
.rb-recOverlay[hidden]{ display:none; }
.rb-recOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.rb-recModal{
  width:min(620px, 100%);
  background:#fff;
  border-radius:22px;
  box-shadow:0 22px 70px rgba(0,0,0,.25);
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
    
}
.rb-recModalHead{
  padding:14px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.rb-recModalTitle{
  margin:0;
  font-weight:950;
  letter-spacing:-.3px;
  line-height:1.15;
}
.rb-recModalSub{
  margin:6px 0 0;
  color:#444;
  line-height:1.5;
  font-size:.95rem;
}
.rb-recClose{
  border:0;
  background: rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}
.rb-recModalBody{ padding:14px 16px 16px; }

.rb-recPreview,
.rb-recPlayback{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
}

.rb-recControls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:12px;
}

.rb-recTimer{
  margin-left:auto;
  font-weight:950;
  background: rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.08);
  padding:6px 10px;
  border-radius:999px;
}

.rb-recHint{
  display:block;
  margin-top:10px;
  color:#444;
  line-height:1.5;
}

/* Mobile + tablette only (aucun impact desktop) */
@media (max-width: 768px){
  .rb-recOverlay{
    align-items:flex-start;
    padding:12px;
  }
  .rb-recModal{
    width:100%;
    max-height: calc(100vh - 24px);
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
  }
}


.rb-recControls{
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px 0 0;
  z-index: 2;
}

	
.rb-previewRecorded{
  width:260px;
  height:150px;
  display:none;
  object-fit:cover;
}

/* =========================================
   MODAL ENREGISTREMENT — RESPONSIVE (<= 900px)
   Taille stable avant/après autorisation webcam
   Aucun impact desktop
   ========================================= */
@media (max-width: 900px){

  #rbRecOverlay{
    align-items: flex-start !important;
    padding: 10px !important;
  }

  /* ⬇️ Modal plus petit */
  .rb-recModal{
    width: 100% !important;
    max-width: 560px !important;          /* ⬅️ réduit */
    max-height: calc(100vh - 40px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px !important;
  }

  /* Header plus compact */
  .rb-recModalHead{
    padding: 10px 12px !important;
  }

  /* Zone vidéo plus compacte */
  .rb-recStage{
    gap: 8px !important;
  }

  #rbCamPreview,
  #rbCamPlayback{
    max-height: 42vh !important;           /* ⬅️ limite hauteur vidéo */
    border-radius: 12px;
  }

  .rb-recVideoWrap{
    border-radius: 12px;
  }

  /* Boutons plus serrés */
  .rb-recActions{
    gap: 8px !important;
  }

  .rb-recActions button{
    padding: 10px 12px !important;
    font-size: .9rem;
  }

  /* Footer compact */
  .rb-recFooter{
    padding: 8px 0 0;
  }

  .rb-recMeta{
    gap: 6px;
    font-size: .85rem;
  }
}

/* =========================================
   MODAL REC — FIX MOBILE (pas de dépassement)
   + supprime les blocs gris autour de la vidéo
   ========================================= */
@media (max-width: 520px){

  /* ✅ modal moins large */
  .rb-recModal{
    width: min(92vw, 360px) !important;   /* ⬅️ ajuste 360px si tu veux */
    margin: 10px auto !important;        /* centre */
  }

  /* ✅ overlay padding un peu plus grand (respiration) */
  #rbRecOverlay{
    padding: 14px !important;
  }
}

.rb-videoBadge{
  position:absolute;
  right:10px;
  bottom:10px;
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:18px;
  color:#fff;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  z-index:5;
  pointer-events:none;
}

/* Overlay play centré sur thumbnail vidéo */
.card-thumbWrap{
  position:relative;
}

.rb-videoOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:5;
}

.rb-videoOverlay::before{
  content:'▶';
  width:84px;
  height:84px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  font-weight:900;
  color:#fff;
  border-radius:50%;
  background:rgba(0,0,0,.65);
  border:2px solid rgba(255,255,255,.35);
}

.rb-pagination{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rb-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight: 900;
  text-decoration:none;
}
.rb-pagination .page-numbers.current{
  background: rgba(214,40,40,.10);
  border-color: rgba(214,40,40,.22);
  color:#d62828;
}
