@charset "UTF-8";
/**
* @license
*
* Font Family: Panchang
* Designed by: MB-DEV+ COMITE DES FETES CHASSIEU
* URL: https://www.fontshare.com/fonts/panchang
* © 2025 MB-DEV+ CDFC
*
* Panchang Extralight 
* Panchang Light 
* Panchang Regular 
* Panchang Medium 
* Panchang Semibold 
* Panchang Bold 
* Panchang Extrabold 
* Panchang Variable (Variable font)

*
*/
@font-face {
  font-family: "Panchang-Extralight";
  src: url("../fonts/Panchang/Panchang-Extralight.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Extralight.woff") format("woff"), url("../fonts/Panchang/Panchang-Extralight.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Light";
  src: url("../fonts/Panchang/Panchang-Light.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Light.woff") format("woff"), url("../fonts/Panchang/Panchang-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Regular";
  src: url("../fonts/Panchang/Panchang-Regular.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Regular.woff") format("woff"), url("../fonts/Panchang/Panchang-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Medium";
  src: url("../fonts/Panchang/Panchang-Medium.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Medium.woff") format("woff"), url("../fonts/Panchang/Panchang-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Semibold";
  src: url("../fonts/Panchang/Panchang-Semibold.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Semibold.woff") format("woff"), url("../fonts/Panchang/Panchang-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Bold";
  src: url("../fonts/Panchang/Panchang-Bold.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Bold.woff") format("woff"), url("../fonts/Panchang/Panchang-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Panchang-Extrabold";
  src: url("../fonts/Panchang/Panchang-Extrabold.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Extrabold.woff") format("woff"), url("../fonts/Panchang/Panchang-Extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
  font-style: normal;
}
/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 800.0;
*
* available axes:
'wght' (range from 200.0 to 800.0
*/
@font-face {
  font-family: "Panchang-Variable";
  src: url("../fonts/Panchang/Panchang-Variable.woff2") format("woff2"), url("../fonts/Panchang/Panchang-Variable.woff") format("woff"), url("../fonts/Panchang/Panchang-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM_Sans/DMSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
}

body {
  overflow-x: hidden;
  background: #ffffff;
  color: #0f1935;
}

a,
body.menu-open {
  overflow: hidden;
}

p,
li,
label,
span,
small {
  color: inherit;
}

a {
  color: #0f1935;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff8d00;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Panchang-Extrabold", sans-serif;
}
h1 #title-art, h2 #title-art, h3 #title-art, h4 #title-art, h5 #title-art, h6 #title-art {
  display: flex;
  text-align: center;
  margin: 0 19%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: auto;
  width: 80%;
}

.news-card {
  background: #f7f7f7;
  padding: 32px 28px 24px 28px;
  min-height: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-number {
  font-size: 7.5rem;
  font-weight: 900;
  color: #19233c;
  line-height: 1;
}

.card-date {
  font-size: 1.2rem;
  color: #222;
  font-weight: 500;
  margin-top: 8px;
}

.card-author {
  font-size: 1rem;
  color: #19233c;
  font-weight: 500;
  margin-top: 2px;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #19233c;
  margin: 12px 0 10px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-summary {
  font-size: 1.2rem;
  color: #19233c;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-list {
  margin: 0 0 18px 0;
  padding-left: 22px;
  color: #19233c;
  font-size: 1.1rem;
  font-weight: 500;
}

.card-btn {
  display: inline-block;
  background: #ffb200;
  color: #19233c;
  text-align: center;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 1.1rem;
  margin-top: 18px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255, 178, 0, 0.08);
}

.card-btn:hover {
  background: #ffa500;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto; /* pousse le footer en bas de la card */
  width: 100%;
  gap: 10px;
}

.card-btn {
  margin-top: 0;
  margin-bottom: 0;
}

.card-actions {
  display: flex;
  gap: 18px;
  font-size: 1.7rem;
  color: #19233c;
  align-items: center;
  justify-content: flex-end;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(380px, 70vh, 800px);
  overflow: hidden;
  background: #0f1f37;
  --cap-bg: rgba(0,0,0,.35);
  --cap-blur: blur(6px);
}

.hero-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}

.hero-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cap-bg);
  -webkit-backdrop-filter: var(--cap-blur);
          backdrop-filter: var(--cap-blur);
}

.hero-caption h1 {
  position: relative;
  font-family: "Panchang", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(1.8rem, 3.8vw + 0.5rem, 4.2rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.hero-cta {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #0f1f37;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease, scale 0.2s ease;
  z-index: 3;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.55);
  scale: 1.04;
}

.hero-nav.prev {
  left: 24px;
}

.hero-nav.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
}

@media (max-width: 640px) {
  .hero-nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #FFFFFF;
  padding: 20px;
}
.auth-container h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-form, .edit-form, .create-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.auth-form .form-group, .edit-form .form-group, .create-form .form-group {
  width: 100%;
  margin-bottom: 20px;
}
.auth-form .form-group label, .edit-form .form-group label, .create-form .form-group label {
  display: none;
}
.auth-form .form-group input, .edit-form .form-group input, .create-form .form-group input {
  background-color: #E0E0E0;
  border: none;
  border-radius: 25px;
  padding: 15px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  outline: none;
  transition: all 0.3s ease;
}
.auth-form .form-group input:focus, .edit-form .form-group input:focus, .create-form .form-group input:focus {
  box-shadow: 0 0 0 2px rgba(247, 168, 59, 0.3);
}
.auth-form .form-group input::-moz-placeholder, .edit-form .form-group input::-moz-placeholder, .create-form .form-group input::-moz-placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}
.auth-form .form-group input::placeholder, .edit-form .form-group input::placeholder, .create-form .form-group input::placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}
.auth-form .checkbox-group, .edit-form .checkbox-group, .create-form .checkbox-group {
  display: flex;
  align-items: center;
  margin: 20px 0;
  width: 100%;
  max-width: 400px;
}
.auth-form .checkbox-group input[type=checkbox], .edit-form .checkbox-group input[type=checkbox], .create-form .checkbox-group input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: #F7A83B;
}
.auth-form .checkbox-group label, .edit-form .checkbox-group label, .create-form .checkbox-group label {
  color: #000000;
  font-size: 14px;
  cursor: pointer;
}
.auth-form .form-actions, .edit-form .form-actions, .create-form .form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}
.auth-form .form-actions button, .edit-form .form-actions button, .create-form .form-actions button {
  background-color: #F7A83B;
  color: #000000;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin-bottom: 15px;
}
.auth-form .form-actions button:hover, .edit-form .form-actions button:hover, .create-form .form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.auth-form .form-actions button:active, .edit-form .form-actions button:active, .create-form .form-actions button:active {
  transform: translateY(0);
}
.auth-form .form-actions a, .edit-form .form-actions a, .create-form .form-actions a {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
}
.auth-form .form-actions a:hover, .edit-form .form-actions a:hover, .create-form .form-actions a:hover {
  color: #000000;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 20px 0;
}
.login-options .forgot-password {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
}
.login-options .forgot-password:hover {
  color: #F7A83B;
}
.login-options .stay-logged {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000000;
}
.login-options .stay-logged input[type=checkbox] {
  margin-left: 10px;
  accent-color: #F7A83B;
}

.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.alert.alert-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.alert.alert-success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.toggle-mode-btn {
  background: none;
  border: 2px solid #F7A83B;
  color: #F7A83B;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.toggle-mode-btn:hover {
  background-color: #F7A83B;
  color: #FFFFFF;
}

.edit-form .form-actions, .create-form .form-actions {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.edit-form .form-actions button, .create-form .form-actions button {
  flex: 1;
  max-width: none;
}

.file-upload-group {
  position: relative;
  width: 100%;
}
.file-upload-group input[type=file] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-upload-group .file-upload-label {
  background-color: #E0E0E0;
  border: none;
  border-radius: 25px;
  padding: 15px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  outline: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.file-upload-group .file-upload-label:focus {
  box-shadow: 0 0 0 2px rgba(247, 168, 59, 0.3);
}
.file-upload-group .file-upload-label::-moz-placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}
.file-upload-group .file-upload-label::placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}
.file-upload-group .file-upload-label .file-text {
  color: #666666;
  text-transform: uppercase;
}
.file-upload-group .file-upload-label .file-button {
  background-color: #E0E0E0;
  color: #666666;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

textarea {
  background-color: #E0E0E0;
  border: none;
  border-radius: 25px;
  padding: 15px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  outline: none;
  transition: all 0.3s ease;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
textarea:focus {
  box-shadow: 0 0 0 2px rgba(247, 168, 59, 0.3);
}
textarea::-moz-placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}
textarea::placeholder {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .auth-container {
    padding: 10px;
  }
  .auth-container h1 {
    font-size: 2rem;
  }
  .auth-form, .edit-form, .create-form {
    max-width: 100%;
  }
  .login-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #FFFFFF;
}

.profile-header {
  background: #19233c;
  padding: 20px 40px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  margin-bottom: 0;
}

.profile-header h1 {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.profile-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFFFFF;
}

.profile-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.profile-nav a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.profile-nav a:hover {
  color: #F7A83B;
}

.profile-nav .dropdown {
  position: relative;
  cursor: pointer;
}

.profile-nav .dropdown::after {
  content: "▼";
  margin-left: 5px;
  font-size: 0.8rem;
}

.profile-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  background: #FFFFFF;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 30px;
  border: 4px solid #F7A83B;
  box-shadow: 0 4px 15px rgba(247, 168, 59, 0.3);
}

.profile-details {
  width: 100%;
  max-width: 300px;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #E0E0E0;
}
.profile-detail-item:last-child {
  border-bottom: none;
}

.profile-detail-label {
  font-weight: bold;
  color: #19233c;
  font-size: 1.1rem;
}

.profile-detail-value {
  color: #666666;
  font-size: 1rem;
}

.profile-update-btn {
  background: #F7A83B;
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  text-transform: uppercase;
}
.profile-update-btn:hover {
  background: #f5920a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 168, 59, 0.4);
}

.profile-edit {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-edit h2 {
  color: #19233c;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: #666666;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: #E0E0E0;
  border: none;
  border-radius: 25px;
  padding: 15px 20px;
  font-size: 1rem;
  color: #000000;
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(247, 168, 59, 0.3);
  background: #FFFFFF;
}
.form-input::-moz-placeholder {
  color: #666666;
}
.form-input::placeholder {
  color: #666666;
}

.form-input[type=file] {
  padding: 12px 20px;
  cursor: pointer;
}
.form-input[type=file]::-webkit-file-upload-button {
  background: #F7A83B;
  color: #FFFFFF;
  border: none;
  border-radius: 15px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 10px;
}

.profile-save-btn {
  background: #F7A83B;
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  margin-top: 20px;
}
.profile-save-btn:hover {
  background: #f5920a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 168, 59, 0.4);
}

@media (max-width: 768px) {
  .profile-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }
  .profile-header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .profile-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .profile-picture {
    width: 120px;
    height: 120px;
  }
  .profile-details {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .profile-container {
    padding: 20px 10px;
  }
  .profile-header h1 {
    font-size: 1.5rem;
  }
  .profile-nav {
    gap: 15px;
    font-size: 0.9rem;
  }
  .profile-main {
    padding: 20px 15px;
  }
  .form-input {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  .profile-update-btn,
  .profile-save-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-info,
.profile-edit {
  animation: fadeInUp 0.6s ease-out;
}

.profile-edit {
  animation-delay: 0.2s;
}

.profile-picture:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.form-input:invalid {
  border: 2px solid #ff6b6b;
}

.form-input:valid {
  border: 2px solid #51cf66;
}

@media (prefers-color-scheme: dark) {
  .profile-container {
    background: #1a1a1a;
  }
  .profile-main {
    background: #2a2a2a;
    color: #FFFFFF;
  }
  .form-input {
    background: #333;
    color: #FFFFFF;
  }
  .profile-detail-label {
    color: #F7A83B;
  }
  .profile-detail-value {
    color: #ccc;
  }
}
header {
  padding: 1%;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  color: #0f1935;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 178, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle {
  background: #ffb200;
  color: #0f1935;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #101a36;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15, 25, 53, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
  flex-direction: column;
  padding: 14px 0;
  overflow: hidden;
}

.dropdown-section {
  padding: 10px 22px 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: rgba(255, 255, 255, 0.55);
}

.dropdown-menu a {
  color: #f1f4ff;
  text-decoration: none;
  padding: 10px 22px;
  display: block;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 178, 0, 0.16);
  color: #ffdd74;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #232e4a;
  color: white;
}
footer a {
  color: #ffb200;
}

/* Footer — style inspiré de la maquette */
.site-footer {
  background: #16243b; /* bleu sombre */
  color: #e8f0ff;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer a {
  color: #e8f0ff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.site-footer .brand-title {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.5px;
  font-weight: 800;
  margin: 0 0 12px;
}
.site-footer .brand-desc {
  margin: 0;
  line-height: 1.6;
  color: #cdd8ee;
}
.site-footer .footer-title {
  text-transform: capitalize;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 32px);
  margin: 0 0 12px;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin: 14px 0;
}
.site-footer .footer-links a {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.95;
}
.site-footer .footer-infos {
  font-style: normal;
}
.site-footer .footer-infos p {
  margin: 10px 0;
}
.site-footer .footer-infos a {
  font-weight: 600;
}
.site-footer .footer-socials {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: clamp(28px, 5vw, 56px) 0 0;
}
.site-footer .footer-socials .social-link {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.site-footer .footer-socials .social-link .icon {
  width: 34px;
  height: 34px;
  fill: #e8f0ff;
}
.site-footer .footer-socials .social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}
.site-footer .footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: clamp(28px, 5vw, 56px);
  padding: 18px 0 24px;
  text-align: center;
  color: #cdd8ee;
}
.site-footer .footer-copy .sep {
  opacity: 0.35;
  margin: 0 10px;
}
.site-footer .footer-copy a {
  color: #ffd166;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-socials {
    justify-content: flex-start;
  }
}
.limite-1lignes {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Ajoute "..." à la fin */
}

.limite-2lignes {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Ajoute "..." à la fin */
}

.limite-3lignes {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Ajoute "..." à la fin */
}

.limite-4lignes {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Ajoute "..." à la fin */
}

.limite-5lignes {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limite-6lignes {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limite-7lignes {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.contact-title {
  font-size: clamp(32px, 6vw, 72px);
  letter-spacing: 2px;
  margin: 0 0 16px;
  font-weight: 900;
}

.contact-intro {
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.5;
  max-width: 980px;
  margin: 0 0 32px;
}

.contact-form {
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-right textarea {
  width: 100%;
  height: 100%;
  min-height: 260px;
  resize: vertical;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  background: #dedede;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: clamp(14px, 1.6vw, 18px);
  outline: none;
}

.contact-form input::-moz-placeholder, .contact-form textarea::-moz-placeholder {
  color: #555;
  letter-spacing: 0.5px;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #555;
  letter-spacing: 0.5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-submit {
  background: #ffa400;
  color: #111;
  border: 0;
  border-radius: 28px;
  padding: 16px 28px;
  font-weight: 800;
  cursor: pointer;
}

.btn-submit:hover {
  filter: brightness(0.95);
}

.feedback {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
}

.feedback.is-success {
  background: #eaf7ec;
  border: 1px solid #cbe8cf;
}

.feedback.is-error {
  background: #fdeaea;
  border: 1px solid #f5c2c2;
}

.feedback .text {
  font-size: 18px;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-right textarea {
    min-height: 220px;
  }
}
.top5-carousel {
  text-align: center;
  padding: 40px;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.top5-card {
  background: #f8f8f8;
  margin: 0 10px;
  padding: 20px;
  min-width: 280px;
  max-width: 300px;
  border-radius: 10px;
  flex-shrink: 0;
  text-align: left;
}

.top5-card .card-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #001133;
}

.top5-card .card-date {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #555;
}

.top5-card .btn-read {
  display: inline-block;
  background: orange;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  text-decoration: none;
  font-weight: bold;
}

.top5-card .card-actions {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #333;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-dots {
  margin-top: 15px;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: #333;
}

/* ————— Mise en forme légère (peut être déplacée dans votre CSS global) ————— */
.page-a-propos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.about-hero {
  margin: 1rem 0 2.5rem;
}

.about-hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #1d2436;
}

.about-author {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0 2.5rem;
}

.about-author__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.about-author__avatar {
  width: 180px;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about-author__title {
  grid-column: 1/-1;
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
}

.about-author__content {
  grid-column: 1/-1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-project {
  margin: 2.5rem 0;
}

.about-project h3, .about-contact h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.about-project__list {
  padding-left: 1.1rem;
}

.about-contact {
  margin: 2rem 0 1rem;
}

@media (max-width: 720px) {
  .about-author {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .about-author__figure {
    justify-content: flex-start;
  }
}
.blog-filters {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f6f8fb;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 10, 40, 0.04);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.fg-12 {
  grid-column: span 12;
}

.fg-6 {
  grid-column: span 6;
}

@media (min-width: 768px) {
  .fg-md-4 {
    grid-column: span 4;
  }
  .fg-md-6 {
    grid-column: span 6;
  }
  .fg-md-12 {
    grid-column: span 12;
  }
}
@media (min-width: 1140px) {
  .fg-lg-2 {
    grid-column: span 2;
  }
  .fg-lg-3 {
    grid-column: span 3;
  }
  .fg-lg-4 {
    grid-column: span 4;
  }
}
.blog-filters input, .blog-filters select {
  width: 100%;
  height: 44px;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 0 0.9rem;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.blog-filters input:focus, .blog-filters select:focus {
  border-color: #0b5cff;
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.1);
}

.filters-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #ff9f0a;
  border-color: #ff9f0a;
  color: #0b0f1a;
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-ghost {
  background: #fff;
  border-color: #d9dfeb;
  color: #0b0f1a;
}

.btn-ghost:hover {
  background: #f3f6fb;
}

/* -------------------------------------------------
   Formulaires de création / édition d'article
   ------------------------------------------------- */
.article-editor {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 32px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 27, 51, 0.12);
}

.article-editor__header {
  text-align: center;
  margin-bottom: 28px;
}

.article-editor__header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #0f1935;
}

.article-editor__header p {
  color: rgba(15, 25, 53, 0.7);
}

.article-editor__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-field label {
  font-weight: 600;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(15, 25, 53, 0.75);
}

.article-field input,
.article-field select,
.article-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 25, 53, 0.15);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  background: #f7f9fc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-field input:focus,
.article-field select:focus,
.article-field textarea:focus {
  outline: none;
  border-color: #ffb200;
  box-shadow: 0 0 0 4px rgba(255, 178, 0, 0.2);
  background: #ffffff;
}

.article-field--editor textarea {
  min-height: 320px;
  resize: vertical;
  border-radius: 20px;
}

.article-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(15, 25, 53, 0.05);
  border: 1px dashed rgba(15, 25, 53, 0.2);
  border-radius: 18px;
  padding: 18px 20px;
}

.article-upload__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: #0f1935;
}

.article-upload__label small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(15, 25, 53, 0.55);
}

.article-upload input[type=file] {
  border: none;
  padding: 0;
  background: transparent;
}

.article-upload input[type=file]::-webkit-file-upload-button {
  background: #ffb200;
  color: #0f1935;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: transform 0.18s ease, background 0.18s ease;
  transition: transform 0.18s ease, background 0.18s ease;
}

.article-upload input[type=file]::-webkit-file-upload-button:hover {
  background: #ffa000;
  transform: translateY(-1px);
}

.article-actions {
  display: flex;
  justify-content: flex-end;
}

.article-submit {
  background: #ffb200;
  color: #0f1935;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 178, 0, 0.25);
}

@media (max-width: 768px) {
  .article-editor {
    padding: 24px;
    margin: 24px 16px 64px;
  }
}
.wrapper {
  margin: 0 19%;
}

#error-icon, .error-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.error-text {
  color: #b30000;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2em;
}

#login-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

#retry-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

#retry-btn:hover {
  background: #b30000;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  /* Optionnel : pour un fond ou une ombre légère */
  /* background: #fff; */
  /* box-shadow: 0 2px 16px rgba(0,0,0,0.03); */
}

.main-container {
  width: 795px;
  margin-left: auto;
  margin-right: auto;
}

.media-item {
  display: inline-block;
  margin: 16px;
  text-align: center;
}

.media-thumb {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.success-icon, .error-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.success-text {
  color: #27632a;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.error-text {
  color: #b30000;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2em;
}

#contact-success, #contact-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

#contact-success button, #contact-error button {
  background: #eee;
  color: #222;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

#contact-success button:hover {
  background: #4BB543;
  color: #fff;
}

#contact-error button:hover {
  background: #b30000;
  color: #fff;
}

/* Blog listing refinements */
.blog-hero {
  padding: 64px 0 32px;
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.95), rgba(28, 54, 87, 0.85));
  color: #fff;
  margin-bottom: 2.5rem;
}

.blog-hero__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blog-hero__baseline {
  font-size: 1.15rem;
  max-width: 620px;
  opacity: 0.95;
  margin-top: 12px;
}

.blog-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.blog-hero .meta-count {
  font-size: 1.05rem;
}

.blog-hero .meta-filters {
  font-size: 0.95rem;
  opacity: 0.85;
}

.blog-filters {
  margin: -40px auto 40px;
  max-width: 1100px;
  padding: 24px 32px;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(16, 29, 61, 0.12);
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.blog-filters__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 20px;
}

.filters-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filters-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #14213d;
}

.filters-field input,
.filters-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 33, 61, 0.15);
  border-radius: 12px;
  background: #f8f9fc;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters-field input:focus,
.filters-field select:focus {
  border-color: #19233c;
  box-shadow: 0 0 0 3px rgba(25, 35, 60, 0.12);
  outline: none;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: rgba(20, 33, 61, 0.35);
}

.input-with-icon input {
  padding-left: 40px;
}

.filters-field--compact input {
  padding-right: 10px;
}

.filters-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 12px;
  background: rgba(20, 33, 61, 0.08);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #14213d;
}

.news-list {
  margin-top: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.grid {
  width: 100%;
}

.news-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  min-height: 0;
  box-shadow: 0 16px 40px rgba(16, 29, 61, 0.08);
  border: 1px solid rgba(20, 33, 61, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(16, 29, 61, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-rank {
  font-family: "Panchang-Extrabold", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #14213d;
}

.card-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 4px;
  font-size: 0.9rem;
  color: rgba(20, 33, 61, 0.7);
}

.card-author {
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.card-date {
  font-size: 0.85rem;
  color: rgba(230, 230, 230, 0.55);
}

.card-media {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16/9;
  background: #f1f3f9;
}

.card-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.card-title {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  margin: 0;
  color: #14213d;
}

.card-summary {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(20, 33, 61, 0.8);
}

.card-description {
  font-size: 0.95rem;
  color: rgba(20, 33, 61, 0.7);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  background: rgba(255, 178, 0, 0.18);
  color: #a86a00;
  border-radius: 999px;
  padding: 6px 12px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.card-btn {
  background: #ffb200;
  color: #14213d;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.card-btn:hover {
  background: #ffa000;
  transform: translateY(-2px);
}

.card-actions {
  display: flex;
  gap: 14px;
  font-size: 1.4rem;
  color: rgba(20, 33, 61, 0.35);
  transition: color 0.2s ease;
}

.card-actions i:hover {
  color: rgba(20, 33, 61, 0.75);
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(16, 29, 61, 0.08);
}

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pagination a {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.08);
  color: #14213d;
  text-decoration: none;
  font-weight: 600;
}

.pagination a.active {
  background: #14213d;
  color: #fff;
}

.pagination--pill {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.pagination-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f1935;
  transition: transform 0.2s ease, color 0.2s ease;
  position: relative;
  padding-bottom: 8px;
}

.pagination-pill__number {
  font-family: "Panchang-Extrabold", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.08rem;
}

.pagination-pill__bar {
  width: 135px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 25, 53, 0.2);
  position: relative;
  display: block;
}

.pagination-pill::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pagination-pill:hover {
  transform: translateY(-4px);
  color: #ffb200;
}

.pagination-pill.is-active {
  color: #0f1935;
}

.pagination-pill.is-active .pagination-pill__bar {
  background: #0f1935;
  box-shadow: 0 12px 26px rgba(15, 25, 53, 0.25);
}

.pagination-pill.is-active::after {
  background: #0f1935;
}

.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 25, 53, 0.1);
  color: #0f1935;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.pagination-arrow:hover:not(.is-disabled) {
  background: rgba(15, 25, 53, 0.2);
  transform: scale(1.1);
  color: #ffb200;
}
.pagination-arrow.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-arrow span {
  display: block;
  line-height: 1;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 48px 0 24px;
  }
  .blog-filters {
    margin: -32px 16px 32px;
    padding: 20px;
  }
  .filters-actions {
    justify-content: flex-start;
  }
}
/* Mode sombre basé sur la préférence utilisateur */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f1935;
    color: #f7f9ff;
  }
  a {
    color: #ffb200;
  }
  a:hover {
    color: #ffffff;
  }
  h1, h2, h3, h4, h5, h6,
  .profile-detail-label,
  .profile-detail-value,
  .card-title,
  .card-summary,
  .card-description,
  .card-meta,
  .blog-hero__content p,
  .blog-hero__meta,
  .profile-edit h2,
  footer,
  footer a {
    color: #f7f9ff;
  }
  .blog-hero {
    background: linear-gradient(135deg, rgba(12, 20, 44, 0.95), rgba(18, 32, 60, 0.85));
  }
  .blog-filters,
  .news-card,
  .profile-container,
  .profile-main,
  .empty-state {
    background: #1c2944;
    color: #f7f9ff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .form-label,
  .form-input,
  .card-summary,
  .card-description {
    color: rgba(247, 249, 255, 0.85);
  }
  .form-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .card-number,
  .card-meta,
  .card-author,
  .card-date,
  .tag,
  .article-field label,
  .article-upload__label,
  .article-upload__label small {
    color: rgba(247, 249, 255, 0.85);
  }
  .card-date {
    color: rgba(247, 249, 255, 0.65);
  }
  .article-field input,
  .article-field select,
  .article-field textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(247, 249, 255, 0.9);
  }
  .article-upload {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .card-btn,
  .profile-save-btn,
  .profile-update-btn {
    background: #ffb200;
    color: #0f1935;
  }
  .pagination a {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(247, 249, 255, 0.85);
  }
  .pagination a.active {
    background: #ffb200;
    color: #0f1935;
  }
  .pagination-pill {
    color: #f7f9ff;
  }
  .pagination-pill__bar {
    background: rgba(247, 249, 255, 0.25);
  }
  .pagination-pill.is-active,
  .pagination-pill:hover {
    color: #ffb200;
  }
  .pagination-pill.is-active .pagination-pill__bar {
    background: #ffb200;
    box-shadow: 0 12px 30px rgba(255, 178, 0, 0.35);
  }
  .pagination-pill.is-active::after {
    background: #ffb200;
  }
}
.logo-switcher {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .logo-switcher img {
    filter: brightness(1.1);
  }
}
.site-header {
  padding: 18px 4vw;
  background: linear-gradient(135deg, rgba(12, 20, 44, 0.98), rgba(18, 32, 60, 0.92));
  color: #f7f9ff;
  position: sticky;
  top: 0;
  z-index: 120;
}

.site-header__welcome {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: rgba(247, 249, 255, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(247, 249, 255, 0.08);
  transition: background 0.2s ease;
}

.site-header__brand:hover {
  background: rgba(247, 249, 255, 0.18);
}

.logo {
  width: 110px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav__link {
  color: rgba(247, 249, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: #ffb200;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 18px;
  background: rgba(247, 249, 255, 0.08);
}

.site-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.site-header__user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-header__user-info strong {
  font-size: 0.95rem;
}

.site-header__user-info span {
  font-size: 0.8rem;
  color: rgba(247, 249, 255, 0.65);
}

.site-header__action {
  color: rgba(247, 249, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-header__action:hover {
  color: #ffb200;
}

.btn-logout {
  padding: 8px 16px;
  background: #c0392b;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 57, 43, 0.35);
}

.btn-logout {
  padding: 5px 10px;
  background: #c0392b;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 25, 53, 0.15);
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 250;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f1935;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded=true] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded=true] {
  background: #ffb200;
  border-color: #ffb200;
  box-shadow: 0 14px 30px rgba(255, 178, 0, 0.35);
}

.burger[aria-expanded=true] span {
  background: #0f1935;
}

.burger[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 53, 0.88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #f7f9ff;
  display: none;
  flex-direction: column;
  padding: 96px 24px 48px;
  z-index: 200;
  transition: opacity 0.2s ease;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__panel {
  background: rgba(12, 20, 44, 0.98);
  border-radius: 32px 32px 12px 12px;
  padding: 32px 26px 44px;
  width: min(460px, 100%);
  margin: 0 auto;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: slideUp 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.mobile-menu__close {
  background: rgba(247, 249, 255, 0.12);
  color: #0f1935;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu__close:hover {
  background: rgba(247, 249, 255, 0.24);
}

.mobile-menu a {
  color: inherit;
  font-size: 1.1rem;
  text-decoration: none;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-user {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-user__info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mobile-user__info img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.mobile-admin {
  display: grid;
  gap: 12px;
}

.mobile-admin span {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 600;
  color: rgba(247, 249, 255, 0.7);
}

.mobile-auth {
  display: flex;
  gap: 18px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .site-nav,
  .site-header__actions > :not(.burger) {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (prefers-color-scheme: dark) {
  .burger {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
  }
  .burger span {
    background: #f7f9ff;
  }
  .burger[aria-expanded=true] {
    background: #ffb200;
    border-color: #ffb200;
    box-shadow: 0 14px 30px rgba(255, 178, 0, 0.4);
  }
  .burger[aria-expanded=true] span {
    background: #0f1935;
  }
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(135deg, rgba(5, 10, 24, 0.95), rgba(18, 32, 60, 0.95));
  }
  .site-header__brand {
    background: rgba(247, 249, 255, 0.12);
  }
  .site-header__brand:hover {
    background: rgba(247, 249, 255, 0.22);
  }
  .site-nav__link,
  .site-header__action {
    color: rgba(247, 249, 255, 0.85);
  }
  .site-header__user {
    background: rgba(247, 249, 255, 0.12);
  }
  .mobile-menu__panel {
    background: rgba(5, 10, 24, 0.96);
  }
  .mobile-menu__close {
    color: #0f1935;
    background: rgba(247, 249, 255, 0.18);
  }
}
.top5-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
}

.top5-header {
  margin-bottom: 48px;
  text-align: left;
}

.top5-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #0f1935;
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
}

.top5-intro {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #1e293b;
  line-height: 1.6;
  margin: 0;
  max-width: 900px;
}

.top5-carousel-wrapper {
  position: relative;
  margin: 48px 0;
}

.top5-viewport {
  overflow: hidden;
  margin: 0 60px;
}

.top5-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 32px;
}

.top5-card {
  flex: 0 0 calc(33.333% - 22px);
  background: #f8fafc;
  border-radius: 24px;
  padding: 32px;
  position: relative;
  box-shadow: 0 4px 12px rgba(15, 25, 53, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.top5-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(15, 25, 53, 0.15);
}

.top5-card__number {
  font-family: "Panchang-Extrabold", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #0f1935;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.9;
}

.top5-card__date {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 16px;
  text-align: right;
}

.top5-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #0f1935;
  margin: 0 0 16px 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top5-card__description {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.top5-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.top5-card__btn {
  background: #ffb200;
  color: #14213d;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.top5-card__btn:hover {
  background: #ffa000;
  transform: translateY(-2px);
}

.top5-card__actions {
  display: flex;
  gap: 14px;
  font-size: 1.4rem;
  color: rgba(20, 33, 61, 0.35);
  transition: color 0.2s ease;
}
.top5-card__actions i {
  cursor: pointer;
  transition: color 0.2s ease;
}
.top5-card__actions i:hover {
  color: rgba(20, 33, 61, 0.75);
}

.top5-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 25, 53, 0.1);
  border: none;
  color: #0f1935;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.top5-nav:hover:not(:disabled) {
  background: rgba(15, 25, 53, 0.2);
  transform: translateY(-50%) scale(1.1);
  color: #ffb200;
}
.top5-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.top5-nav span {
  display: block;
  line-height: 1;
}

.top5-nav--prev {
  left: 0;
}

.top5-nav--next {
  right: 0;
}

.top5-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.top5-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #0f1935;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top5-dot:hover {
  opacity: 0.8;
}

.top5-dot__indicator {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f1935;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.top5-dot--active .top5-dot__indicator {
  display: block;
}

@media (max-width: 1024px) {
  .top5-card {
    flex: 0 0 calc(50% - 16px);
  }
  .top5-viewport {
    margin: 0 50px;
  }
}
@media (max-width: 768px) {
  .top5-section {
    margin: 60px auto;
    padding: 0 16px;
  }
  .top5-header {
    margin-bottom: 32px;
  }
  .top5-viewport {
    margin: 0 40px;
  }
  .top5-card {
    flex: 0 0 100%;
    min-height: auto;
    padding: 24px;
  }
  .top5-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}
.comments-section {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: left;
}

.comments-section h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0f1935;
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
}

.comments-section p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}/*# sourceMappingURL=style.css.map */