@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #111111;
    color: #ffffff;
    padding-top: 90px; 
}

/* Couleur de la sélection */
::selection {
    background-color: #F97316; 
    color: #ffffff;            
}

::-moz-selection {
    background-color: #F97316;
    color: #ffffff;
}

/* ===================================
                HEADER
=================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;

    background: rgb(17, 17, 17, 0.95);
    backdrop-filter: blur(10px); 
    border-bottom: 2px solid #F97316;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #F97316;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.2s;
}

nav a:hover {
    color: #F97316;
}

/* responsive */
@media (max-width: 1024px) {

  header {
    padding: 15px 20px;
  }

  nav a {
    margin-left: 12px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
    header {
        padding: 12px;
    }
}

/* ===================================
            Whatsapp pub
=================================== */
.whatsapp-section {
  padding: 40px;
}

/* BOX PRINCIPALE */
.whatsapp-box {
  background: linear-gradient(135deg, #111111, #1F2937);
  border: 2px solid #F97316;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* IMPORTANT : permet aux éléments de rester cliquables */
.whatsapp-box,
.whatsapp-box * {
  position: relative;
  z-index: 1;
}

/* TITRE */
.whatsapp-box h2 {
  color: #F97316;
  margin-bottom: 10px;
}

/* TEXTE */
.whatsapp-box p {
  color: #D1D5DB;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* BOUTON */
.whatsapp-btn {
  display: inline-block;
  background: #F97316;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* HOVER FIX + STABLE */
.whatsapp-btn:hover {
  background: #faa215;
  color: black;
  transform: translateY(-3px) scale(1.05);
}

/* GLOW BACKGROUND */
.whatsapp-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 60%);
  animation: rotateGlow 6s linear infinite;
  pointer-events: none; /* 🔥 IMPORTANT : ne bloque rien */
  z-index: 0;
}

/* ANIMATION */
@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
                Acceuil
=================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #111111, #F97316);
}

.hero h1 {
    font-size: 50px;
}

.hero p {
    margin: 10px 0 20px;
    color: #ddd;
}

.btn {
    background: #F97316;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
}

.btn:hover {
    background: #faa215;
    color: black;
}

/* SECTIONS */
.section {
  padding: 60px 40px 40px 40px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 25px;
  padding: 0 5px;

  cursor: pointer;
}

.section-title h2 {
    margin: 0;
}

/* flèche base */
.arrow {
  width: 10px;
  height: 10px;

  border-top: 2px solid #F97316;
  border-right: 2px solid #F97316;

  transform: rotate(45deg);
  transition: all 0.25s ease;
}

/* HOVER */
.section-title:hover .arrow {
  transform: rotate(45deg) translate(5px, -5px);
  border-color: #FACC15;
}

/* CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid.small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #1F2937;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #F97316;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.card h3 {
  padding: 10px 12px 0 12px;
  color: #F97316;
}

.card p {
  padding: 5px 12px 15px 12px;
  color: #D1D5DB;
  font-size: 14px;
}


.card.big {
  background: #1F2937;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

/* IMAGE BANNER */
.card.big img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.card.big:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #F97316;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

/* TEXTE */
.card.big h3 {
  padding: 15px 15px 5px 15px;
  font-size: 22px;
}

.card.big p {
  padding: 0 15px 15px 15px;
  color: #D1D5DB;
}

.categorie-card {
  background: #1F2937;
  padding: 25px;
  border-radius: 12px;
  text-align: center;

  font-weight: 600;
  font-size: 16px;

  border: 2px solid transparent;
  cursor: pointer;

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.categorie-card:hover {
  transform: translateY(-6px);
  border-color: #F97316;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
  color: #F97316;
}

/* petit effet glow animé */
.categorie-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(249, 115, 22, 0.2),
    transparent
  );
  transition: 0.5s;
}

.categorie-card:hover::before {
  left: 100%;
}

.card, .categorie-card {
  will-change: transform;
}

/* Responsive */

/* =========================
        TABLETTE
========================= */
@media (max-width: 1024px) {

    .hero h1 {
        font-size: 40px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    /* GRIDS */
    .grid {
        grid-template-columns: 1fr;
    }

    .grid.small {
        grid-template-columns: 1fr;
    }

    /* CARDS */
    .card.big img {
        height: 200px;
    }

    .card img {
        height: 140px;
    }

    /* catégories */
    .categorie-card {
        padding: 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .section {
    padding: 20px;
  }
}

/* ===================================
                footer
=================================== */

.footer {
    background: #0f0f0f;
    border-top: 2px solid #F97316;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 40px;
}

/* BRAND */
.footer-brand .logo {
    margin-bottom: 10px;
}

.footer-brand p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    max-width: 250px;
}

/* TITRES */
.footer-links h3 {
    color: #F97316;
    margin-bottom: 15px;
    font-size: 16px;
}

/* LIENS */
.footer-links a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #F97316;
    transform: translateX(5px);
}

/* BAS DE FOOTER */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #222;
    color: #777;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* =========================
        ARTICLE PAGE
========================= */

.article-page {
    padding: 40px;
}

.article-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.article-container {
    max-width: 900px;
    margin: auto;
}

.article-title {
    font-size: 36px;
    margin-bottom: 15px;
}

/* Barre titre */

.article-title-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:15px;
}

/* Bouton partager */

.share-btn{

    width:44px;
    height:44px;

    border:none;
    border-radius:50%;

    background:#1F2937;
    color:#F97316;

    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    transition:.25s;
}

.share-btn:hover{

    background:#F97316;
    color:white;

    transform:scale(1.08);
}

/* Popup */

.share-popup{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.65);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:3000;
}

.share-popup.active{
    display:flex;
}

.share-box{

    width:90%;
    max-width:420px;

    background:#1F2937;

    border:2px solid #F97316;
    border-radius:12px;

    padding:25px;
}

.share-box h3{

    margin-bottom:15px;
    color:#F97316;
}

.share-box input{

    width:100%;

    padding:12px;

    border:none;
    border-radius:8px;

    background:#111;
    color:white;

    margin-bottom:15px;
}

.share-actions{

    display:flex;
    gap:10px;
}

.share-actions button{

    flex:1;

    padding:10px;

    border:none;
    border-radius:8px;

    cursor:pointer;

    background:#F97316;
    color:white;

    transition:.25s;
}

.share-actions button:hover{

    background:#faa215;
    color:black;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.article-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
}

.article-date {
    font-size: 13px;
    color: #aaa;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #ddd;
}

.article-content h2 {
    margin: 25px 0 10px;
    color: #F97316;
}

/* A LIRE AUSSI */

.related-section{
    padding:20px 40px 0;
}

.related-title{
    color:#F97316;
    margin-bottom:20px;
    font-size:28px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.related-card{
    background:#1F2937;
    border:2px solid transparent;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:white;
    transition:.25s;
}

.related-card:hover{
    transform:translateY(-6px);
    border-color:#F97316;
    box-shadow:0 10px 25px rgba(249,115,22,.25);
}

.related-card img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.related-content{
    padding:15px;
}

.related-content h3{
    font-size:18px;
    line-height:1.4;
}

@media (max-width:900px){
    .related-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){
    .related-section{
        padding:20px;
    }

    .related-grid{
        grid-template-columns:1fr;
    }

    .related-title{
        font-size:24px;
    }
}

/* responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 26px;
    }

    .article-banner img {
        height: 220px;
    }

    .article-page {
        padding: 20px;
    }
}

/* ===========================
        PAGE AUTEUR
=========================== */

.author-profile{
    padding:40px;
}

.author-header{

    display:flex;
    align-items:center;
    gap:30px;

    background:#1F2937;
    border:2px solid #F97316;
    border-radius:15px;

    padding:30px;
}

.author-header img{

    width:160px;
    height:160px;

    border-radius:50%;
    object-fit:cover;

    border:4px solid #F97316;
}

.author-info{
    flex:1;
}

.author-info h1{
    font-size:40px;
    margin-bottom:10px;
}

.author-bio{

    color:#D1D5DB;
    line-height:1.6;
    margin-bottom:20px;
}

.author-stats{

    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.author-stats span{

    background:#1F2937;
    border:1px solid #F97316;

    padding:10px 16px;
    border-radius:8px;

    font-weight:600;
}