/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Définition des variables de couleurs */
:root {
    --contrast: #303b4b;
    --contrast-2: #6a6a6a;
    --contrast-3: #b2b2be;
    --base: #f0f0f0;
    --base-2: #f7f8f9;
    --base-3: #ffffff;
    --accent: #FFC107;
    --darker: #ed290b;
    --purple: #ef112f;
}


/* Définition des classes de police Poppins */
.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
  .poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  
/* Styles généraux */
body {
    font-family: Poppins;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--base-3);
    color: var(--contrast);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Début Navigation */
/* Header principal */
.category-bar {
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #22577a;
  color: white;
  padding: 18px 6vw;
  box-shadow: 0 2px 12px rgba(48,59,75,0.06);
  border-bottom: 2px solid #6a6a6a29;
  gap: 24px;
  padding: 20px 40px;
}


.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.svg-brand a:hover{
  all:unset!important;
  width: unset!important;
  height: unset!important;
  border-radius: unset!important;
  background: unset!important;
  box-shadow: unset!important;
  cursor:pointer!important;
}
.logo a:hover{
  all:unset!important;
  width: unset!important;
  height: unset!important;
  border-radius: unset!important;
  background: unset!important;
  box-shadow: unset!important;
  cursor:pointer!important;
}

.svg-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.main-header{
  display: flex;
  align-content: center;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
  margin-left: 6px;
}
.nav-link {
  color: white;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}



.nav-link:focus,
.nav-link:hover {
  color: white;
}

.nav-link:focus:after,
.nav-link:hover:after {
  width: 100%;
  left: 0%;
}

.nav-link:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: white;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}
#home-btn {
  padding: 10px 20px;
  border: none;
  outline: none;
  background-color: transparent;
  color: #fff;
  font-family: Poppins;
  font-weight: 400;
  font-size: 18px;
  font-weight: 600;
  border: 3px solid #fff;
  line-height: 1.6;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.25s ease-out;
}

#home-btn:hover {
  transform: translateY(-3px);
  cursor: pointer;
  
}
#home-btn a:hover {
  background-color: inherit!important;
  color: inherit!important;
  border-radius: inherit!important;
  font-weight: inherit!important;
  cursor: pointer;
  
}
#home-btn:after {
  background-color: transparent;
  
}
/* Responsive */
@media (max-width: 900px) {
  .category-bar {
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 16px 3vw;
  }
  .main-header {
    justify-content: center;
    width: 100%;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .category-bar a {
    width: 40%;
    text-align: center;
    padding: 10px 0;
  }
  #home-btn {
    width: 40%;
    margin-top: 8px;
    font-size: 20px;
    padding: 14px 0;
  }
  #home-btn:hover {
    transform: none!important;
  }
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  margin: 3px 0;
  transition: 0.3s;
}

/* Responsive burger menu */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--base-3);
    padding: 18px 0 8px 0;
    box-shadow: 0 8px 24px rgba(48,59,75,0.08);
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 72px; /* hauteur de la barre de navigation */
    left: 0;
    z-index: 10;
  }
  .nav-links.open {
    display: flex;
  }
  .category-bar {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 3vw 0 3vw;
    position: relative;
  }
  .main-header {
    display: flex;
    flex-direction: row;
    align-content: center;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
}

/* Animation du burger en croix */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Par défaut, masquer les liens sur mobile */
@media (max-width: 700px) {
  .nav-link {
    display: none;
  }
  .nav-link.open {
    display: block;
  }
}

/* Articles */
.articles {
  padding: 20px;
}

.articles h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonnes plus étroites */
  margin: 80px;
  gap: 20px;
}

.article-card {
  aspect-ratio: 9/13; /* Format portrait */
  height: auto;
  border-radius: 15px;
  display: flex;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-card:hover {
  aspect-ratio: 9/13; /* Format portrait */
  height: auto;
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  display: flex;
  overflow: hidden;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 100%);
  padding: 15px;
  color: white;
}
@media (max-width: 900px) {
  
.article-grid{
  grid-template-columns: inherit;
}
}
/* Ajustements typographie pour format vertical */
.text-overlay h3 {
  font-size: 1em;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.text-overlay .date {
  font-size: 0.8em;
}

/* Footer */
.footer {
  background-color: transparent;
  color: var(--contrast);
  padding: 2rem 1rem;
  
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  border-top: 1px solid var(--contrast-2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: flex-start;
  align-items: flex-start;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

.footer-description {
  color: var(--contrast);
  line-height: 1.6;
}

.footer-nav h3,
.footer-social h3 {
  display: flex;
}

.footer-nav,.footer-social{
  display: flex;
  flex-direction: column;
  align-items: left;
}

.footer-links {
  
  list-style: none;
  padding: 0;
}

.footer-links a,.footer-social a {
  color: var(--contrast);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,.footer-social a:hover {
  color: #7391c8;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  
}

.social-links a,.footer-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--contrast);
  text-decoration: none;
}

.social-links .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  text-align: center;
  padding: 1.5rem 0 0;
  color: var(--contrast-3);
  font-size: 0.85rem;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #7391c8;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
      flex-direction: column;
      align-items: flex-start;
  }

  nav ul {
      margin-top: 10px;
      flex-direction: column;
  }

  nav li {
      margin-left: 0;
      margin-bottom: 10px;
  }

  .hero {
      padding: 50px 20px;
  }

  .hero h1 {
      font-size: 2em;
  }
}

#loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: white; /* semi-transparent background */
  z-index: 9999; /* on top of everything */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  --color: #c6c6ce;
  --size: 70px;
  width: var(--size);
  height: var(--size);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.loader span {
  width: 100%;
  border-radius: 5px;
  height: 100%;
  background-color: var(--color);
  animation: keyframes-blink 0.6s alternate infinite linear;
}

.loader span:nth-child(1) { animation-delay: 0ms; }
.loader span:nth-child(2) { animation-delay: 200ms; }
.loader span:nth-child(3) { animation-delay: 300ms; }
.loader span:nth-child(4) { animation-delay: 400ms; }
.loader span:nth-child(5) { animation-delay: 500ms; }
.loader span:nth-child(6) { animation-delay: 600ms; }

@keyframes keyframes-blink {
  0% { opacity: 0.3; transform: scale(0.5) rotate(5deg);}
  50% { opacity: 1; transform: scale(1);}
}
