:root {
  color-scheme: light;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Garamond, serif; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    border-bottom: 1px solid #ccc;
    justify-content: flex-start;
}

body {
    margin-top: 280px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 15px;
    margin-bottom: 0;
}

.logo img {
    width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
    position: static;
    top: 0;
}


.language-switcher {
    position: absolute;
    top: 20px;
    right:5px;
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.language-switcher .lang-btn,
a.lang-btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid #007bff;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 5px 6px;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.language-switcher .lang-btn:hover,
a.lang-btn:hover {
    background: #eaf3ff;
}

.language-switcher .lang-btn.active,
a.lang-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.language-switcher .lang-btn:visited,
a.lang-btn:visited {
    color: #007bff;
}

.language-switcher .lang-btn.active,
.language-switcher .lang-btn.active:link,
.language-switcher .lang-btn.active:visited,
a.lang-btn.active,
a.lang-btn.active:link,
a.lang-btn.active:visited {
  color: #fff !important;   
  background-color: #007bff; 
  border-color: #007bff;
}

.language-switcher .lang-btn.active:hover,
a.lang-btn.active:hover {
  filter: brightness(0.95);
}

/*Bouton rejoins nous*/
.join-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 1001;
}

.join-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

nav {
    margin-top: -7px;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    overflow-x: auto;
}

nav ul li {
    list-style: none;
    white-space: nowrap;
}

nav ul li a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid var(--rubrique-color);
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a.active {
    background-color: var(--rubrique-color) !important;
    color: white !important;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid #ccc;
}

.sidebar ul li a {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 50px;
    border: 2px solid var(--rubrique-color);
    color: var(--rubrique-color);          
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, border 0.3s, color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: var(--rubrique-color);
    color: #fff;
}

@media (min-width: 768px) {
    .burger-container {
        display: none;
    }
    .sidebar {
        display: none;
    }
    nav.main-nav {
        display: block;
    }
    .burger { display: none; }     
    .burger-container { display: none; } 
    .sidebar { display: none; }
    nav.main-nav { display: block; }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    nav.main-nav {
        display: none;
    }
    .main-nav { 
        display: none; 
    }
    .sidebar {
        display: block;
    }

    html, body { padding-top: var(--header-h-mobile) !important; }

    body {
    margin-top: 40px;
    }

    .search-container {
    display: none !important;
    }

    header{
    padding-top: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }

   .bienvenue-message{
    font-size: 5px;
    margin-top: 0;
  }

  .top-header{
    height: 52px;
    padding: 8px 12px;
    margin: 0;
  }

  .top-header .date-heure { display: none !important; }

  .join-btn{
    position: fixed !important;
    top: 8px;
    left: 10px;
    z-index: 1500;
    display: inline-flex !important;
    width: auto !important;
    max-width: fit-content !important;
    padding: 6px 10px;
    font-size: 14px;
  }

  .logo{ margin: 0 auto !important; }
  header .logo img{
    max-width: 84px !important;
    height: auto;
    display: block;
    margin: 2px auto 2px !important;
    position: static !important;
  }

  .language-switcher {
    display: flex;
    transform: none !important;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1500;
    position: fixed !important;
    top: 5px;
    left: 210px;
    right: auto !important;
  }

  .language-switcher .lang-btn,
  .language-switcher button a.lang-btn {
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2;
    margin: 0 !important;
  }

  /*Les titres dans l'entête*/
  h1 {
    font-size: 2px;
    line-height: 1.2;
    margin: 12px 16px 8px 16px;
    text-align: center;
    word-break: break-word;
  }

  .burger {
    position: fixed;   
    top: 65px;
    left: 10px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    z-index: 1200;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }
  .burger > span, .burger .line {
    width: 22px; height: 2px; background: #222; display: block;
    border-radius: 1px; margin: 3px 0;
  }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    width: min(85vw, 360px);
    transform: translateX(-100%);
    transition: transform .28s ease;
    background: #fff;
    z-index: 1090;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 20px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar nav, .sidebar .menu {
    display: grid; gap: 10px;
    margin-top: 12px;
  }
  .sidebar a, .sidebar button {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.25;
  }
  .sidebar a:active { transform: scale(.985); }

  .backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1085;
  }
  .backdrop.show { opacity: 1; pointer-events: auto; }

  .search-container .search-bar .search-date { display: none;}

  .date-une {
  position: static;
  top: auto; left: auto;
  margin: 8px 12px;
  }

  :root { --header-h-mobile: 100px; }
   html, body { padding-top: var(--header-h-mobile) !important; }
   body.nav-open.burger {display: none !important;}

  footer {
    padding: 16px 12px 24px 12px;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,.06);
  }

  .footer-links, .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  
    gap: 10px 14px;
    align-items: start;
  }

  /*coeur rempli quand liké*/
  .heart-btn.liked .heart-icon path,
  .heart-btn.active .heart-icon path {
    fill: #3b82f6 !important;
    stroke: #3b82f6 !important;
  }
} 


@media (max-width: 480px) {
  html, body { padding-top: 220px; }   
  .donations { font-size: 13px; padding: 6px 10px; position: relative; left: 4px; top: 5px;}
  .language-switcher .lang-btn, .language-switcher button { font-size: 13px; }
  .logo, .site-logo, header .logo img { max-width: 72px; }
}

@media (max-width: 420px) {
    .footer-links, .footer-grid { grid-template-columns: 1fr; }
  }

  .footer-links a, .footer-grid a {
    display: inline-block;
    padding: 6px 2px;
    font-size: 15px;
    line-height: 1.3;
  }

  .footer-meta { 
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #666;
}

/*La couleur des rubriques*/
.jaune { --rubrique-color: #FFD700; }
.orange { --rubrique-color: #FFA500; }
.bleu_fonce { --rubrique-color: #00008B; }
.bleu_clair { --rubrique-color: #ADD8E6; }
.vert_fonce { --rubrique-color: #006400; }
.jaune_fonce { --rubrique-color: #DAA520; }
.violet_fonce { --rubrique-color: #800080; }
.vert_clair { --rubrique-color: #90EE90; }
.violet_clair { --rubrique-color: #DDA0DD; }
.rouge_clair { --rubrique-color: #FF6347; }
.argent { --rubrique-color: #C0C0C0; }

.article {
    border-width: 2px;
    border-style: solid;
    border-radius: 25px;
    padding: 15px;
    margin: 10px 0;
    width: 95%;
    max-width: 1100px;
    text-align: left;
    transition: border-color 0.7s ease, width 0.7s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.article.vie_etudiante { border-color: #00008B; }
.article.vie_associative { border-color: #1E90FF; }
.article.vie_culturelle { border-color: #006400; }
.article.vie_sportive { border-color: #FFD700; }
.article.festivites { border-color: #800080; }
.article.evenements { border-color: #32CD32; }
.article.politique { border-color: #8A2BE2; }
.article.articles_universitaires { border-color: #FF4500; }
.article.bon_plan { border-color: #C0C0C0; }
.article.a_la_une { border-color: #FFD700; }
.article.info_hebdo { border-color: #FFA500; }

.article h3 {
    cursor: pointer;
    color: #00008B;
    font-size: 20px;
    margin-bottom: 5px;
}

.article p {
    margin: 10px 0;
    font-size: 16px;
}

.article-detail {
    display: block;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #ccc;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .article {
        width: 90%;
        max-width: 100%;
    }
}

.articles-container {
    margin-top: 0;
    padding-top: 0;
}

.date-une {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: absolute;
    top: 280px;
    left: 5px;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: -30px;
}

.bienvenue-message {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    padding-top: 0;
}

.date-heure {
    font-weight: bold;
    margin-left: 35px;
    font-size: 18px;
}

.info-hebdo-container {
    width: 100%;
    max-width: 90vw;
    margin: auto;
}

.info-hebdo-container details,
.articles-by-month-container details {
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
}

.info-hebdo-container summary,
.articles-by-month-container summary {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    border: 2px solid #ccc;
}

.info-hebdo-container summary:hover,
.articles-by-month-container summary:hover {
    background-color: #e0e0e0;
}

.articles-by-month-container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
}

.form-container {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.form-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    text-align: left;
    width: 100%;
    font-size: 16px;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    background-color: white;
    margin: auto;
}

.ck-editor__editable {
    min-height: 300px;
    border-radius: 10px;
    border: 2px solid #ccc;
}

.form-container button {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: -2px;
}

.form-container button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.form-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.form-buttons button {
    width: 250px;
    padding: 10px;
    font-size: 16px;
}

.login-container {
    width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #0056b3;
}

.login-links {
    margin-top: 15px;
}

.login-links a {
    display: block;
    margin: 5px 0;
    color: #007BFF;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.back-to-dashboard {
    text-align: left;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-table,
.table-articles {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dashboard-table th, .dashboard-table td,
.table-articles th, .table-articles td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.dashboard-table th,
.table-articles th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.btn-publish {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-publish:hover {
    background-color: #0056b3;
}

.btn-edit {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-login-small {
    display: inline-block;
    padding: 5px 10px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    position: absolute;
    left: 250px;
    top: 320px;
    z-index: 1000;
}

.btn-login-small:hover {
    background-color: #003a80;
}

.search-container {
    position: absolute;
    top: 35px;
    right: 1px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 30px;
    z-index: 1000;
    width: auto;
}

.search-bar, .search-date {
    padding: 8px;
    border: 1px solid #82a55e;
    border-radius: 30px;
    font-size: 16px;
}

.search-bar { width: 200px; max-width: 80vw; }
.search-date { width: 120px; max-width: 60vw; }

.search-button {
    padding: 8px 12px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.search-button:hover { background-color: #002244; }

.search-results-container {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-results-container h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-result {
    padding: 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.article-result h3 {
    font-size: 20px;
    color: #005d9f;
}

.article-result p {
    font-size: 16px;
    color: #0b0c0e;
    margin-bottom: 10px;
}

.article-result a {
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

.article-result a:hover {
    text-decoration: underline;
}

.article-result.vie-etudiante { border-color: #00008B; }
.article-result.vie-associative { border-color: #1E90FF; }
.article-result.vie-culturelle { border-color: #006400; }
.article-result.vie-sportive { border-color: #FFD700; }
.article-result.festivites { border-color: #800080; }
.article-result.evenements { border-color: #32CD32; }
.article-result.politique { border-color: #8A2BE2; }
.article-result.articles-universitaires { border-color: #FF4500; }
.article-result.bon-plan { border-color: #C0C0C0; }

.article-result:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 96, 241, 0.1);
}

.delete-source-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.edit-source-btn {
    background-color: blue;
    color: white;
    border: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

.commentaire {
    font-size: 12px;
    color: grey;
}

.footer {
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    margin-top: 80px;
    border-top: 2px solid #ccc;
    position: static;
    width: 100%;
    bottom: 0;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links .first-row{
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.footer-links .second-row {
    display: none;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a03970;
}

.footer-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.article .article-detail img,
.article .article-body   img,
.article img {
  display: block !important;
  margin: 20px auto !important;
  height: auto !important;
  max-width: 70% !important; 
}

.articles-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}
.article{
  margin: 12px auto;
}

.date-une{
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline-block;
  margin: 8px auto 16px !important;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}

.article,
.article .article-body,
.article .article-detail {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wide-field,
.vTextField,
.vLargeTextField,
.selector-chosen {
  width: 96% !important;
  max-width: 1200px;
}

.change-form .form-row,
.change-form .aligned .form-row {
  max-width: none;
}

.media-comment {
  font-size: 12px;
  color: grey;
  text-align: center;
}

.table-articles td.actions a { 
  display: inline-block; 
  margin: .15rem .1rem; 
}

.btn-submit {
  background-color: #ff9800;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color .2s ease;
}
.btn-submit:hover { background-color: #e18700; }

.btn-validate {
  background-color: #20b283;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color .2s ease;
}
.btn-validate:hover { background-color: #19946c; }

.btn-reject {
  background-color: #e74c3c;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color .2s ease;
}
.btn-reject:hover { background-color: #c0392b; }

/*Badges statut*/
.status-draft { color:#6b7280; }
.status-pending { color:#b45309; }
.status-published { color:#059669; }
.status-unknown { color:#9ca3af; }

/*Lecture seule*/
.badge-readonly {
  display:inline-block;
  padding:.2rem .45rem;
  font-size:.8rem;
  background:#f5f5f5;
  border:1px dashed #ddd;
  border-radius:.4rem;
  color:#6b7280;
}

/*Conteneur principal de la page article complet*/
.full-article-page {
    background: #fff;
    padding: 1.5rem;
    border-radius: 18px;
    border-left: 10px solid #ccc;
    margin: 2rem auto;
    max-width: 1100px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/*Titre de l'article en page individuelle*/
.full-article-page h2 {
    margin: 0 0 .8rem;
    font-size: 2rem;
    line-height: 1.25;
    color: #001a8c;
    font-weight: 600;
}

.full-article-page .article-meta,
.full-article-page .article-meta strong {
    color: #001a8c;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0 0 1.2rem;
}

/*Pastille de rubrique en haut de l'article*/
.full-article-page .article-category {
    display: inline-block;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1rem;
    line-height: 1.2;
    border: 2px solid currentColor;
    background-color: rgba(255, 255, 255, 0.6);
}

/*Couleur par rubrique*/
.full-article-page .cat-a_la_une        { color: #f5b200; border-color: #f5b200; }
.full-article-page .cat-info_hebdo      { color: #0aa5ff; border-color: #0aa5ff; }
.full-article-page .cat-vie_etudiante   { color: #1e2da1; border-color: #1e2da1; }
.full-article-page .cat-vie_associative { color: #2aa46b; border-color: #2aa46b; }
.full-article-page .cat-vie_culturelle  { color: #6a5acd; border-color: #6a5acd; }
.full-article-page .cat-vie_sportive    { color: #d79400; border-color: #d79400; }
.full-article-page .cat-festivites      { color: #7a2c83; border-color: #7a2c83; }
.full-article-page .cat-evenements      { color: #3aa36f; border-color: #3aa36f; }
.full-article-page .cat-politique       { color: #c46aa0; border-color: #c46aa0; }
.full-article-page .cat-articles_universitaires { color: #ff5b3a; border-color: #ff5b3a; }
.full-article-page .cat-bon_plan        { color: #1f8d3b; border-color: #1f8d3b; }

/*La pastille se remplit avec la couleur de la rubrique*/
.full-article-page .cat-a_la_une:hover {
    background-color: #f5b200;
    color: #fff;
}
.full-article-page .cat-info_hebdo:hover {
    background-color: #0aa5ff;
    color: #fff;
}
.full-article-page .cat-vie_etudiante:hover {
    background-color: #1e2da1;
    color: #fff;
}
.full-article-page .cat-vie_associative:hover {
    background-color: #2aa46b;
    color: #fff;
}
.full-article-page .cat-vie_culturelle:hover {
    background-color: #6a5acd;
    color: #fff;
}
.full-article-page .cat-vie_sportive:hover {
    background-color: #d79400;
    color: #fff;
}
.full-article-page .cat-festivites:hover {
    background-color: #7a2c83;
    color: #fff;
}
.full-article-page .cat-evenements:hover {
    background-color: #3aa36f;
    color: #fff;
}
.full-article-page .cat-politique:hover {
    background-color: #c46aa0;
    color: #fff;
}
.full-article-page .cat-articles_universitaires:hover {
    background-color: #ff5b3a;
    color: #fff;
}
.full-article-page .cat-bon_plan:hover {
    background-color: #1f8d3b;
    color: #fff;
}

/*Bouton retour en bas*/
.full-article-page .article-return {
    margin-top: 2.5rem;
    text-align: center;
}

.full-article-page .return-btn {
    display: inline-block;
    background-color: #0aa5ff;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 2px solid #0aa5ff;
}

.full-article-page .return-btn:hover {
    background-color: #007acc;
    border-color: #007acc;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/*Bordure gauche colorée selon la rubrique*/
.full-article-page.cat-a_la_une        { border-left-color: #f5b200; }
.full-article-page.cat-info_hebdo      { border-left-color: #0aa5ff; }
.full-article-page.cat-vie_etudiante   { border-left-color: #1e2da1; }
.full-article-page.cat-vie_associative { border-left-color: #2aa46b; }
.full-article-page.cat-vie_culturelle  { border-left-color: #6a5acd; }
.full-article-page.cat-vie_sportive    { border-left-color: #d79400; }
.full-article-page.cat-festivites      { border-left-color: #7a2c83; }
.full-article-page.cat-evenements      { border-left-color: #3aa36f; }
.full-article-page.cat-politique       { border-left-color: #c46aa0; }
.full-article-page.cat-articles_universitaires { border-left-color: #ff5b3a; }
.full-article-page.cat-bon_plan        { border-left-color: #1f8d3b; }

/*Coeur*/
.article-reactions {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

body.dark .heart-btn {
    color: #fff;
}
/*bouton cœur neutre*/
.heart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .4rem .6rem;
    border-radius: .5rem;
    line-height: 1;
    font-size: 1rem;
    user-select: none;
    transition: transform .15s ease;
}

.heart-btn:disabled {
    cursor: default;
    opacity: .8;
}

/*l'icône du coeur para défaut*/
.heart-icon path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: fill .2s ease, stroke .2s ease;
}

.heart-btn.liked .heart-icon path 
.heart-btn.active .heart-icon path {
    fill: #3b82f6 !important;
    stroke: #3b82f6 !important;
}

.heart-btn.bump {
    animation: heart-bump .3s ease;
}

/*curseur interdit si déjà liké*/
.heart-btn[data-locked="1"] {
    cursor: default;
    pointer-events: none;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.article-actions .heart-btn,
.article-actions .calendar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.article-actions .heart-btn:hover,
.article-actions .calendar-btn:hover {
    background-color: rgba(0,0,0,0.08);
}

.article-actions .heart-icon,
.article-actions .calendar-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@keyframes heart-bump {
    0%   { transform: scale(1);   }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1);   }
}

.heart-btn.liked .heart-icon path {
    fill: #3b82f6 !important;
    stroke: #3b82f6 !important;
}

.articles-wrapper-mobile {
    display: none;
}

/*Style spécifique smartphone*/
@media (max-width: 768px) {

    .articles-container {
        display: none;
    }

    .articles-wrapper-mobile {
        display: block;
        position: relative;
        padding-top: 0.5rem;
    }

    /*Le trait qui scroll horizontalement*/
    .articles-scroll {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1rem 2rem;
    }

    .articles-scroll::-webkit-scrollbar {
        display: none;
    }
    .articles-scroll {
        scrollbar-width: none;
    }

    .article-card-snap {
        flex: 0 0 90%;
        max-width: 90%;
        background: #ffffff;
        color: #000;
        border-radius: 25px;
        padding: 15px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        scroll-snap-align: start;
        border-width: 2px;
        border-style: solid;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        line-height: 1.4;
    }
    .article-card-snap p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0 0 0.75rem;
        color: #000;
    }

    .article-card-snap strong {
        color: #000;
        font-weight: 600;
    }

    .article-card-snap h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin: 0 0 0.5rem;
        font-weight: 600;
        color: #00008B;
        word-break: break-word;
    }


    /*Couleur de bordure par rubrique pour le carrousel smartphone*/
    .article-card-snap.vie_etudiante { border-color: #00008B; }
    .article-card-snap.vie_associative { border-color: #1E90FF; }
    .article-card-snap.vie_culturelle { border-color: #006400; }
    .article-card-snap.vie_sportive { border-color: #FFD700; }
    .article-card-snap.festivites { border-color: #800080; }
    .article-card-snap.evenements { border-color: #32CD32; }
    .article-card-snap.politique { border-color: #8A2BE2; }
    .article-card-snap.articles_universitaires { border-color: #FF4500; }
    .article-card-snap.bon_plan { border-color: #C0C0C0; }
    .article-card-snap.a_la_une { border-color: #FFD700; }
    .article-card-snap.info_hebdo { border-color: #FFA500; }

    /*résumé du contenu*/
    .resume-article {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #000;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 8;
        -webkit-box-orient: vertical;
        margin-bottom: 1rem;
    }

    /*actions like et agenda dans la carte*/
    .article-card-snap .article-actions {
        margin-top: auto;
    }

    .article-card-snap .article-actions .heart-btn,
    .article-card-snap .article-actions .calendar-btn {
        background: #f8f8f8;
        border-radius: 10px;
        color: #000;
        border: 1px solid #ccc;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .article-card-snap .article-actions .heart-btn:hover,
    .article-card-snap .article-actions .calendar-btn:hover {
        background: #fff;
    }

    /*coeur bleu quand liké cohérent en thème sombre */
    .article-card-snap .heart-btn.liked .heart-icon path,
    .article-card-snap .heart-btn.active .heart-icon path {
        fill: #3b82f6 !important;
        stroke: #3b82f6 !important;
    }
}


/*Bannière cookie*/
.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    max-width: 320px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-family: Garamond, serif;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 12px 14px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    border: 1px solid rgba(255,255,255,0.15);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.cookie-msg {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.cookie-msg .cookie-link {
    color: #6ab0ff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn.accept {
    background-color: #3b82f6;
    color: #fff;
}

.cookie-btn.accept:hover {
    filter: brightness(1.1);
}

.cookie-btn.reject {
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
}

.cookie-btn.reject:hover {
    background-color: #555;
}

/* Bannière sur smartphone */
@media (max-width: 480px) {
    .cookie-banner {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        font-size: 15px;
        line-height: 1.4;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
