/* styles.css */

body {
  margin: 0;
  font-family: 'Jaldi', sans-serif;
  background-color: #f9f9f9;
  color: #201d1d;
}

h1 {
  font-family: 'Frank Ruhl Libre';
  margin: 0 0 10px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

header {
  border-bottom: 1px solid #d2d2d2;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #d2d2d2;
}

.logo-link {
  height: 50px;
}

.header-top img {
  position: relative;
  z-index: 1000;
  width: 50px;
  height: 50px;
}

.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #201d1d;
  cursor: pointer;
}

.menu {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  right: 0;
  left: 0;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.menu a {
  margin: 0 15px;
  text-decoration: none;
  font-size: 18px;
  color: #201d1d;
}

.menu a:hover {
  text-decoration: underline;
}

.menu a:first-child {
  margin-left: 0;
}

.menu a:last-child {
  margin-right: 0;
}

.connexion {
  position: relative;
  z-index: 1000;
  border: none;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.logo {
  text-align: center;
  font-size: 64px;
  padding: 5px 0;
  font-weight: bold;
  font-family: 'Cyrillic Bodoni Condense';
  text-transform: uppercase;
}

.header-bottom {
  display: flex;
  justify-content: center;
  padding: 15px;
  gap: 40px;
}

.header-bottom li {
  list-style: none;
}

.header-bottom a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.header-bottom a:hover {
  text-decoration: underline;
}

/* BURGER BUTTON */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #201d1d;
  cursor: pointer;
}

/* MENU MOBILE */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 66.666%;
  background: white;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 60px 20px;
  transform: translateX(-100%);       /* ← menu caché à gauche */
  transition: transform 0.4s ease;    /* ← animation fluide */
  z-index: 1001;
  list-style: none;
}

.mobile-menu.open {
  transform: translateX(0); /* ← menu visible */
}

.mobile-menu li a {
  font-size: 18px;
  text-decoration: none;
  color: #414141;
  font-weight: bold;
}

/* BOUTON FERMER */
.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #201d1d;
}

.mobile-menu ul {
  z-index: 1002;
}
/* BACKDROP */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Quand menu est ouvert */
.mobile-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* EMPÊCHE SCROLL SUR BODY */
body.menu-open {
  overflow: hidden;
}

/* Main Content */

main {
  padding: 40px 5%;
  max-width: 1350px;
  position: relative;
  margin: 0 auto;
}

section {
  margin-bottom: 30px;
}

/* ===============
  Latest Articles Section
=============== */

.grid-news {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.main-article {
  grid-row: span 2;
}

.main-article .entry-title {
  font-size: 26px;
  font-weight: bold;
  margin-top: -40px;
  margin-bottom: 10px;
}

.main-article .entry-excerpt {
  margin-top: 5px;
  color: #444;
}

.side-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-articles .mini-article img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.side-articles .mini-article h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  margin-top: 10px;
  color: #111;
}

.bottom-articles {
  grid-column: span 2;
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.bottom-article {
  flex: 1;
}

.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9/16 = 0.5625 = 56.25% */
  overflow: hidden;
  border-radius: 6px;
}

.aspect-ratio-16-9 img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-article img {
  width: 100%;
  height: 80%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.bottom-article img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.bottom-article h4 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  margin-top: 10px;
  color: #111;
}

.newsletter-box {
  margin-top: 15px;
  background-color: #f7f7f7;
  text-align: center;
  padding-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.newsletter-box h4 {
  font-size: 16px;
}

.newsletter-button {
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  transition: background 0.3s ease;
}

/* ===============
  Aside Sidebar Section
=============== */

.sidebar {
  flex: 1;
  margin: 0;
  background-color: none;
}

.sidebar section {
  margin: 0;
}

/* Popular articles */
.popular {
  background: white;
  padding: 20px;
  padding-top: 0;
  border: 1px solid #ddd;
}

.popular h3 {
  color: white;
  font-size: 18px;
  padding: 5px 30px;
  margin: 0;
  display: inline-block;
  position: relative;
  bottom: 25px;
  right: 21px;
}

.popular ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.popular li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.popular li a {
  font-size: 16px;
  text-decoration: none;
  color: black;
}

.popular li a:hover {
  text-decoration: underline;
}

.popular li:last-child {
  border-bottom: none;
}

/* Dossiers */
.dossiers {
  background: none;
  margin-bottom: 0;
}

.dossier-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dossier-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 10px;
  padding: 10px 0;
  background-color: white;
  border: 1px solid #ddd;
}

.dossier-list img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.dossier-list strong {
  font-weight: bold;
  font-size: 15px;
  display: block;
  color: #000;
}

.dossier-list span {
  font-size: 14px;
  color: #333;
}

/* ===============
    Caroussel Section
=============== */
.caroussel {
  background: white;
  padding: 30px;
  padding-top: 0;
  border: 1px solid #eee;
}

.caroussel div:first-child {
  margin-top: 25px;
}

.caroussel h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 0;
}

.caroussel article {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.caroussel h3 {
  font-size: 22px;
}

.caroussel img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.caroussel h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  margin-top: 5px;
  color: #111;
}

.caroussel h3 a {
  text-decoration: none;
  color: inherit;
}

.caroussel h3 a:hover {
  text-decoration: underline;
}

.caroussel p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.caroussel p small {
  font-size: 13px;
}

.caroussel .entry-meta {
  font-size: 14px;
  color: #666;
}

/* Disposition horizontale des articles */
.caroussel {
  display: flex;
  flex-direction: column;
}

.caroussel > div {
  display: flex;
  gap: 20px;
}

.caroussel article {
  flex: 1 1 0%;
}

/* ===============
    Donation Call Section   
=============== */

.donation-call {
  background: white;
  text-align: center;
  padding: 30px 0;
}

.donation-call h2 {
  font-size: 24px;
  margin: 0;
}

.donation-call p {
  font-size: 18px;
  margin: 5px 0;
}

.donation-call button {
  color: white;
  padding: 10px 50px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  margin-top: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* ===============
    Biographie Section
=============== */

.section-block {
  padding: 25px 5%;
}

.content-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.content-row .biographies {
  flex: 3;
  min-width: 0;
}

.content-row > .sidebar {
  flex: 1;
  min-width: 0;
}

.biographies {
  background: white;
  padding: 30px;
  margin-bottom: 60px;
  border: 1px solid #ddd;
}

/* ===============
    Sidebar Section
=============== */

/* SECTION : Sondage */
.poll {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
}

.poll h3 {
  color: white;
  font-size: 18px;
  padding: 5px 30px;
  margin: 0;
  display: inline-block;
  position: relative;
  bottom: 25px;
  right: 21px;
}

.poll h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  margin-top: -5px;
  margin-bottom: 15px;
}

.poll form {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #111;
  margin-bottom: 15px;
}

.poll label {
  margin-bottom: -15px;
}

.poll button {
  font-size: 14px;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 20px;
  font-weight: bold;
}

.poll button::before {
  content: \"➜\";
  font-size: 16px;
  display: inline-block;
}

/* SECTION : Vous avez une plume ? */
.submit-article {
  background: #fff;
  padding: 20px;
  margin: 0;
  border: 1px solid #ddd;
}

.submit-article h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 5px;
}

.submit-article p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.submit-article button {
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  display: block;
  width: 100%;
  text-align: center;
}



/* ===============
  Dossier Finance Section
=============== */



.finance-banner {
  background-image: url("./components/finance.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  max-width: 1333px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.finance-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.finance-overlay {
  background-color: rgba(32, 29, 29, 0.6);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finance-overlay h2 {
  position: relative;
  font-size: 32px;
  font-weight: bold;
  max-width: 50%;
}

.finance-label {
  padding: 10px 20px;
  display: inline-block;
  width: fit-content;
  font-size: 18px;
  border-radius: 4px;
}

.finance-button-container {
  display: flex;
  justify-content: flex-end;
}

.btn-discover {
  padding: 10px 30px;
  font-size: 18px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
  align-self: flex-end;
}

.btn-discover:hover {
  background-color: #2b6f9d;
}

/* ===============
  Partners Section
=============== */

/* Section Partenaires - Slider animé */
.partners {
    padding: 60px 0;
    background: #f8f9fa;
}

.partners h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 960px;
    border-radius: 10px;
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 12); /* Ajusté pour 6 partenaires x 2 */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.slide img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slide a:hover img {
    transform: scale(1.1);
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-250px * 6)); /* 6 partenaires */
    }
}

/* ===============
  Newsletter Section
=============== */

.newsletter {
  display: flex;
  width: 650px;
  margin: 0 auto;
  margin-top: -100px;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 4%;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  top: 125px;
}

.newsletter div {
  flex: 1;
  min-width: 250px;
  margin-right: 25px;
}

.newsletter h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.newsletter input {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.newsletter button {
  color: white;
  border: none;
  width: 100%;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}

.newsletter img {
  max-width: 100%;
  height: auto;
  flex: 1;
  min-width: 250px;
}

/* ===============
  Footer Section
=============== */

footer {
  color: white;
  font-size: 14px;
  padding: 40px 5%;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 30px;
  padding-top: 150px;
}

.footer-logo {
  flex: 1 1 250px;
  max-width: 250px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-logo h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  font-weight: 500;
  margin: none;
}

.footer-logo p {
  margin-bottom: 15px;
  font-size: 14px;
}

/* Réseaux sociaux */
.social-media-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: left;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

/* Couleurs spécifiques par réseau (optionnel) */
.social-link:hover {
  background: var(--social-color, rgba(255, 255, 255, 0.2));
}

.social-link[href*="facebook"]:hover {
  --social-color: #1877f2;
}

.social-link[href*="twitter"]:hover,
.social-link[href*="x.com"]:hover {
  --social-color: #000000;
}

.social-link[href*="instagram"]:hover {
  --social-color: #e4405f;
}

.social-link[href*="linkedin"]:hover {
  --social-color: #0077b5;
}

.social-link[href*="youtube"]:hover {
  --social-color: #ff0000;
}

.social-link[href*="tiktok"]:hover {
  --social-color: #000000;
}

.footer-column {
  flex: 1 1 150px;
  max-width: 180px;
}

.footer-column h4 {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Footer bottom */

.footer-bottom {
  background-color: #111;
  padding: 20px 5%;
  margin: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.footer-bottom a {
  width: 30px;
  height: 30px;
}
.footer-bottom a img {
  width: 30px;
  height: auto;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-bottom ul li a {
  color: #bebebe;
  text-decoration: none;
}

.footer-bottom ul li a:hover {
  text-decoration: underline;
}





/* Responsive Styles */
@media (max-width: 768px) {

  /* Mobile Menu */
  .menu {
    display: none;
  }

  .burger {
    display: block;
  }

  .header-bottom li a {
    font-size: 18px;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 66.666%; /* 2/3 de l'écran */
    background: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 60px 20px;
    z-index: 1001;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu ul {
    z-index: 1002;
  }

  .mobile-menu a {
    font-size: 18px;
    text-decoration: none;
    color: #201d1d;
    font-weight: bold;
  }

  .logo {
    margin-top: 5px;
    display: block;
    font-size: 40px;
  }

  /* Sidebar */
  .sidebar {
    padding: 0;
    flex: 0;
    width: 100%;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .caroussel > div {
    flex-direction: column;
  }

  .content-row {
    flex-direction: column;
  }

  .biographies {
    margin-bottom: 0;
  }

  .finance-overlay {
    padding: 20px;
    text-align: center;
    align-items: center;
  }

  .finance-overlay h2 {
    font-size: 22px;
  }

  .slider {
        width: 95%;
        height: 80px;
    }
    
    .slider::before,
    .slider::after {
        height: 80px;
        width: 100px;
    }
    
    .slide {
        height: 80px;
        width: 200px;
        padding: 10px;
    }
    
    .slide img {
        max-height: 50px;
    }
    
    .slide-track {
        width: calc(200px * 12);
    }
    
    @keyframes scroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-200px * 6));
        }
    }

  .newsletter {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 20px 0;
  }

  .newsletter div {
    max-width: 100%;
    margin-bottom: 15px;
  }

  .newsletter img {
    display: none;
  }

  .footer-top {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: auto auto;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    padding-top: 125px;
    width: 100%;
  }

  .footer-logo p {
    margin-bottom: 10px;
  }
  .footer-logo h4 {
    margin: 0;
  }

  .social-media-links {
    gap: 12px;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom ul {
    justify-content: center;
  }
}

@media (max-width: 662px) {
  .header-bottom {
      display: none;
    }
}

@media (max-width: 640px) {
  /* Derniers articles Section */
  .grid-news {
    display: flex;
    flex-direction: column;
  }

  .main-article,
  .side-articles,
  .bottom-articles {
    width: 100%;
  }

  .side-articles {
    flex-direction: column;
    gap: 20px;
  }

  .bottom-articles {
    flex-direction: column;
    gap: 20px;
  }

  .bottom-article {
    flex: 1 1 100%;
  }

  .main-article .entry-title {
    font-size: 20px;
  }

  .side-articles .mini-article h3 {
    font-size: 20px;
  }

  .newsletter-box {
    display: none;
  }

  .posts .post:not(:first-child) {
    flex: 1 1 100%;
  }

  /* Biographie Section */ 
  .bio-grid {
    flex-direction: column;
  }
}

@media (max-width: 582px) {
  .header-bottom {
    display: none;
  }
}

@media (max-width: 425px) {
  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-logo {
    flex: none;
  }

  .footer-column,
  .footer-logo {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .footer-column ul {
    padding-left: 0;
  }

  .footer-column ul li {
    margin-bottom: 8px;
  }

  .footer-column ul li a {
    display: inline-block;
  }
}

@media (max-width: 375px) {
    .mobile-menu {
      width: 89%;
    }

    .logo {
      margin-top: 5px;
      display: block;
      font-size: 35px;
  }
}

@media (max-width: 320px) {
  .newsletter div {
    margin: 0;
  }

  .logo {
    margin-top: 5px;
    display: block;
    font-size: 30px;
  }
}








/* === PAGE ARTICLE === */

.article-layout {
  padding: 40px 5%;
  background-color: #f9f9f9;
}

.article-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.article-content {
  flex: 3;
  background: white;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.article-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.article-intro {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.article-image-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 20px 0;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-meta {
  font-size: 15px;
  color: #777;
  margin-bottom: 20px;
}

.article-body p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
}

.article-meta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.view-count {
    font-size: 14px;
}

.article-author {
    font-weight: bold;
    font-size: 14px;
    margin: 0; /* Supprime les marges par défaut du paragraphe */
}

/* === SIDEBAR === */
.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar .ad-block {
  background: #d9d9d9;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #676363;
}

.sidebar .poll,
.sidebar .submit-article {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
}

.poll h3,
.submit-article h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.poll p,
.submit-article p {
  font-size: 14px;
  margin-bottom: 10px;
}

.poll button,
.submit-article button {
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

/* === BANNIÈRE PUB === */
.ad-banner {
  background: #d9d9d9;
  height: 150px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #676363;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .article-container {
    flex-direction: column;
  }

  .article-content {
    padding: 20px;
  }
}


/* 

Style de la page dossier

*/


.dossier-image-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  overflow: hidden;
}
.dossier-image-full img {
  width: 100vw;
  max-width: 100vw;
  height: 50vh;      /* ou 60vh pour une image plus haute */
  object-fit: cover;
  display: block;
}
.dossier-layout {
  padding: 0pc 5% 40px 5%;
  background: #f9f9f9;
}
.dossier-container {
  max-width: 800px;
  margin: 0 auto;
}
.dossier-content {
  background: white;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dossier-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 18px;
}
.dossier-meta {
  color: #777;
  font-size: 15px;
  margin-bottom: 28px;
}
.dossier-body {
  font-size: 1.1em;
  line-height: 1.7;
}
.dossier-author {
  font-weight: 600;
}
@media (max-width: 900px) {
  .dossier-image-full img {
    height: 30vh;
  }
}


/* 

Page Archives dossiers

*/

.dossier-archive-layout {
    padding: 40px 5%;
    background: #f9f9f9;
}
.dossier-archive-header {
    margin-bottom: 25px;
    text-align: center;
}

.dossier-archive-title {
    font-size: 2em;
    font-weight: bold;
}

.post-archive-list,
.dossier-archive-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dossier-archive-item {
  background: white;
  border: 1px solid #e2e2e2;
  width: 27%;
  max-width: 100vw;
  margin-top: 25px;
  padding: 20px 20px 10px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  margin-bottom: 10px; /* Pour l’ancien flow éventuel */
}

.dossier-archive-item:hover {
  box-shadow: 0 4px 14px rgba(52,128,175,0.15);
}

.dossier-archive-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 15px;
}

.dossier-archive-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.dossier-archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dossier-archive-image:hover img {
  transform: scale(1.05);
}

.dossier-archive-item-title {
  font-size: 1.1em;
  margin: 13px 0 7px 0;
}
.dossier-archive-meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}
.dossier-archive-excerpt {
  font-size: 1em;
  color: #333;
}

.dossier-filter-form {
  margin-bottom: 30px;
  text-align: center;
}

.dossier-filter-form label {
  font-weight: bold;
  margin-right: 8px;
  color: #222;
}

.dossier-filter-form select {
  font-size: 17px;
  padding: 9px 24px 9px 14px;
  border-radius: 7px;
  border: 1px solid #bbb;
  background: #f9f9f9 url('data:image/svg+xml;utf8,<svg fill=\"%233480af\" height=\"20\" viewBox=\"0 0 24 24\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>') no-repeat right 10px center/18px 18px;
  color: #232323;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 5px rgba(52,128,175,0.04);
  cursor: pointer;
  min-width: 180px;
}

.dossier-filter-form select:focus {
  outline: none;
  border-color: #3480af;
  background-color: #eef7fb;
  box-shadow: 0 2px 7px rgba(52,128,175,0.12);
}

.pagination {
    width: 100%;
    margin-top: 30px;
    text-align: center;
    clear: both;
}

.pagination .current {
  font-weight: bold;
}

@media (max-width: 768px) {
  .post-archive-list,
  .dossier-archive-list {
    display: block;
    overflow: hidden;
  }
  .dossier-archive-item {
    width: fit-content;
  }
}


/* Style du formulaire d'inscription rédacteur */
.onoris-register-form {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.onoris-register-form p {
  margin-bottom: 1.5rem;
}

.onoris-register-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: #333;
}

.onoris-register-form input[type="text"],
.onoris-register-form input[type="email"],
.onoris-register-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.onoris-register-form input[type="text"]:focus,
.onoris-register-form input[type="email"]:focus,
.onoris-register-form input[type="password"]:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}

.onoris-register-form input[type="submit"] {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.onoris-register-form input[type="submit"]:hover {
  background-color: var(main-color);
}

.onoris-register-form .message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.onoris-register-form .message.success {
  background-color: #e6f9ec;
  color: #247a41;
  border: 1px solid #bde5cb;
}

.onoris-register-form .message.error {
  background-color: #fce4e4;
  color: #a94442;
  border: 1px solid #ebccd1;
}

/* 👇 Pour désactiver les icônes du navigateur / thème */
.onoris-register-form input::-webkit-contacts-auto-fill-button,
.onoris-register-form input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
}