/* Untitled-1.css */
:root {
    --primary: linear-gradient(135deg, #ff0000, #b71c1c);
    --dark: #2d2d2d;
    --light: #ffffff;
    --gray: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Base */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
  }
  
  body.dark-mode {
    background: var(--dark);
    color: var(--light);
  }
  
/* Header */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky; /* S'assure que le header reste visible */
    top: 0;
    z-index: 1000;
    
}

.dark-mode .header-top {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Actions dans le header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espacement entre les éléments */
}

/* Bouton "S'abonner" */
.subscribe-button {
    background: rgb(255, 130, 130);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.subscribe-button:hover {
    background: #d32f2f; /* Couleur légèrement plus foncée au survol */
}


/* Supprime le soulignement pour les liens dans les headers */
.logo-text a {
  text-decoration: none; /* Supprime le soulignement */
  color: inherit; /* Garde la couleur du texte */
}

.logo-text h1, .logo-text p {
  margin: 0;
  padding: 0;
  text-decoration: none; /* Supprime le soulignement sur les textes */
  color: var(--primary); /* Applique la couleur primaire */
  font-weight: 700; /* Rends le titre plus gras */
  font-size: 1.5rem; /* Ajuste la taille du titre */
  letter-spacing: -0.5px; /* Légère compression des lettres */
}

.logo-text p {
  font-size: 1rem; /* Ajuste la taille du sous-titre */
  font-weight: 500; /* Un peu moins gras que le titre */
  opacity: 0.8; /* Rends le sous-titre un peu plus léger */
  color: var(--dark); /* Couleur neutre ou secondaire */
}

/* Animation de survol pour les liens */
a {
  position: relative; /* Nécessaire pour les pseudo-éléments */
  text-decoration: none; /* Supprime le soulignement par défaut */
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Effet au survol */
a:hover {
  color: #d32f2f; /* Change légèrement la couleur */
  transform: translateY(-3px); /* Soulève le lien légèrement */
}

/* Pseudo-élément pour l'animation de survol */
a::before {
  content: '';
  position: absolute;
  bottom: 0; /* Position en bas du lien */
  left: 50%; /* Point de départ au centre */
  width: 0%; /* Départ invisible */
  height: 2px; /* Épaisseur de la ligne */
  background: var(--primary); /* Couleur principale */
  transition: width 0.3s ease, left 0.3s ease; /* Animation fluide */
}

a:hover::before {
  width: 100%; /* Étend la ligne sur toute la largeur */
  left: 0; /* Recentre l'animation */
}

/* Animation sur clic */
a:active {
  transform: scale(0.95); /* Réduit légèrement le lien pour donner un effet de "pression" */
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5); /* Ajoute une ombre temporaire */
}


.logo img {
  width: 150px; /* Ajuste cette valeur selon la taille souhaitée */
  height: auto;
}


/* Liste des commentaires */
#comments-container {
  margin-top: 20px;
}

.comment {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.comment p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.comment .comment-meta {
  font-size: 0.8rem;
  color: gray;
  margin-top: 5px;
}

.no-comments {
  text-align: center;
  font-size: 0.9rem;
  color: gray;
}

.delete-button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.delete-button:hover {
  background-color: #b71c1c;
}

  /* Navigation */
  .nav {
    display: flex;
    justify-content: space-between; /* Espacement des éléments */
    align-items: center; /* Alignement vertical */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem; /* Espacement entre les liens */
    position: relative;
}

  .nav > li {
    position: sticky;
  }
  
  .nav a {
    color: inherit;
    text-decoration: none;
    padding: 1rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .nav a:hover {
    background: rgba(230, 57, 70, 0.1);
  }
  
/* Sous-menus (desktop et mobile) */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0; /* Espacement interne */
    display: none; /* Caché par défaut */
    flex-direction: column;
    gap: 0.5rem;
    position: absolute; /* Position absolue pour le superposer */
    top: calc(100% + 5px); /* Position juste en dessous de l'élément parent */
    left: 0;
    background: var(--light); /* Fond blanc pour contraste */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Ajoute une ombre */
    border-radius: 6px;
    z-index: 1500; /* Passe au premier plan */
    overflow: hidden; /* Empêche les débordements */
}

/* Affiche les sous-menus lorsque l'élément parent est survolé */
.nav li:hover > .submenu {
    display: flex; /* Affiche les sous-menus */
}

/* Liens dans le sous-menu */
.submenu li {
    padding: 0.5rem 1rem; /* Espacement interne des liens */
    white-space: nowrap; /* Empêche les retours à la ligne */
}

.submenu li a {
    display: block;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Survol des liens dans le sous-menu */
.submenu li a:hover {
    color: var(--primary); /* Texte en couleur principale */
    background: rgba(230, 57, 70, 0.1); /* Fond léger au survol */
}


/* Icône du mode sombre */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; /* Transition fluide pour l'animation */
}

.theme-icon {
    width: 24px; /* Taille ajustée */
    height: 24px; /* Taille ajustée */
    transition: transform 0.3s ease-in-out; /* Transition fluide */
}

/* Animation au survol */
#theme-toggle:hover .theme-icon {
    transform: rotate(15deg); /* Rotation légère au survol */
}
/* Correction z-index */
.header-top {
    z-index: 1000;
}

.nav {
    z-index: 999;
}

  
  /* Mobile Navigation */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--transition);
  }
  
  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: currentColor;
    transition: var(--transition);
  }
  
  .hamburger::before { transform: translateY(-8px); }
  .hamburger::after { transform: translateY(8px); }
  
  .menu-toggle.open .hamburger {
    background: transparent;
  }
  
  .menu-toggle.open .hamburger::before {
    transform: rotate(45deg);
  }
  
  .menu-toggle.open .hamburger::after {
    transform: rotate(-45deg);
  }
  
  /* Main Content */
  main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  /* Featured Article */
  .featured {
    margin-bottom: 3rem;
  }
  
  .main-article {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .main-article img {
    width: 100%;
    height: 500px;
    object-fit: cover;
  }
  
  .main-article .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
  }
  
  .main-article h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  /* Opinion Section */
  .opinions {
    margin: 4rem 0;
  }
  
  .opinions h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
  }
  
  .opinion-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .opinion-articles article {
    background: var(--gray);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .dark-mode .opinion-articles article {
    background: #2a2a2a;
  }
  
  .opinion-articles article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  
/* Articles Grid */
.articles {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
  }
  
  /* Style de l'article dans la colonne gauche */
  .left-column article {
    margin-bottom: 2rem;
    background: var(--gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .left-column article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Mode sombre pour l'article */
  .dark-mode .left-column article {
    background: #2a2a2a;
  }
  
  /* Image de l'article */
  .left-column img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .left-column img:hover {
    transform: scale(1.05);
  }
  
  /* Contenu de l'article */
  .left-column .content {
    padding: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  /* Animation d'apparition */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
  aside {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .dark-mode aside {
    background: #2a2a2a;
  }
  
  aside img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  
  footer {
    background: linear-gradient(135deg, #ff0000, #b71c1c);
    color: #ffffff;
    padding: 3rem 1rem;
    margin-top: 4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Ombre principale du footer */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));

}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

/* Logo et description */
.footer-logo {
    flex: 1 1 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section logo */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi pour plus de modernité */
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

.footer-logo p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Navigation rapide */
.footer-nav {
    flex: 1 1 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section navigation */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi */
}

.footer-nav h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ffcccb;
}

/* Réseaux sociaux */
.footer-socials {
    flex: 1 1 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section réseaux sociaux */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi */
    text-align: left;
}

.footer-socials h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Ombre subtile pour les icônes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a img {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre plus forte au survol */
    background: #ffcccb;
}

/* Bas de page */
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffcccb;
}

  /* Responsive : adaptation sur petits écrans */
  @media screen and (max-width: 768px) {
    /* Navigation */
    .nav {
        display: flex;
        flex-direction: column; /* Change en colonne pour mobile */
        gap: 1rem; /* Espacement uniforme */
        list-style: none;
        padding: 0;
        margin: 0;
        position: fixed;
        top: 0;
        right: -100%; /* Par défaut, hors de l'écran */
        bottom: 0;
        width: 70%; /* Largeur du menu sur mobile */
        background: var(--light); /* Fond blanc pour contraste */
        padding: 6rem 1rem; /* Ajout d'espace pour les liens */
        transition: right 0.3s ease-in-out; /* Transition fluide */
        z-index: 1000;
        overflow-y: auto; /* Permet le défilement si le contenu est long */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Ombre latérale */
    }

    /* Lorsque le menu est actif */
    .nav.active {
        right: 0; /* Fait apparaître le menu */
    }

    /* Liens de la navigation */
    .nav a {
        display: block;
        color: var(--dark);
        text-decoration: none;
        padding: 1rem;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: bold;
        transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    /* Au survol */
    .nav a:hover {
        background: var(--primary);
        color: var(--light);
    }

    /* Masquer les autres options du menu principal */
    .nav li:hover ~ li {
    visibility: hidden; /* Rend les autres éléments invisibles */
    opacity: 0; /* Transition pour disparition */
    pointer-events: none; /* Désactive les interactions */
    }

    /* Sous-menus (desktop et mobile) */
    .submenu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none; /* Caché par défaut */
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Affiche les sous-menus lorsque l'élément parent est survolé */
    .nav li:hover .submenu {
        display: flex;
    }

    /* Ajustement pour mobile */
    .nav li:hover > .submenu {
        display: block;
        background: rgba(0, 0, 0, 0.05);
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }

    /* Hamburger */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 2000;
    }

    .hamburger {
        width: 28px;
        height: 2px;
        background: var(--dark);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--dark);
        transition: transform 0.3s ease-in-out;
    }

    .hamburger::before {
        transform: translateY(-8px);
    }

    .hamburger::after {
        transform: translateY(8px);
    }

    /* Animation du hamburger en croix */
    .menu-toggle.open .hamburger {
        background: transparent;
    }

    .menu-toggle.open .hamburger::before {
        transform: rotate(45deg);
    }

    .menu-toggle.open .hamburger::after {
        transform: rotate(-45deg);
    }


    .nav li:hover .submenu {
      max-height: 500px;
    }
  
    .articles {
      grid-template-columns: 1fr;
    }
  
    .main-article .content {
      padding: 1.5rem;
    }
  
    .main-article h2 {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 480px) {
    .header-top {
      padding: 1rem;
    }
  
    .logo-text h1 {
      text-decoration: none;
      font-size: 1.4rem;
    }
  
    .main-article img {
      height: 300px;
    }
    .nav {
        z-index: 2000;
    }
    
    .menu-toggle {
        z-index: 2001;
        position: relative;
    }
}

/* Correction animation hamburger */
.menu-toggle.open .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Utils */
  .read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: red;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.read-more::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transition: transform 0.4s ease-out;
    transform: translate(-50%, -50%) scale(0);
}

.read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.read-more:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

  
/* Global styles */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #d32f2f;
}

/* Collapsible Menu */
.collapsible-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collapsible {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.collapsible:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Checkbox hidden */
.collapsible input[type="checkbox"] {
  display: none;
}

/* Collapsible Header */
.collapsible-header {
  display: block;
  padding: 1rem;
  cursor: pointer;
  background: #d32f2f;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.collapsible-header:hover {
  background: #b71c1c;
}

/* Collapsible Content */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.collapsible-content p {
  padding: 1rem 0;
  margin: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Open State */
.collapsible input[type="checkbox"]:checked ~ .collapsible-content {
  max-height: 200px; /* Adjust this value based on content */
  padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  .collapsible-header {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .collapsible-content p {
    font-size: 0.9rem;
  }
}
