@import url('https://fonts.googleapis.com/css2?family=PT+Sans&display=swap');

/* ==========================
   Reset de base
========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #001128;
  background-color: #f6f7f7;
}

/* Liens */
a {
  color: #c50000;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Titres */
h1, h2, h3 {
  margin-top: 0;
  line-height: 1.3;
  color: #8e98a8;
}

/* Conteneur principal */
.site-main,
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 0px;
}

/* ==========================
   Lien d'évitement
========================== */
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 8px 12px;
  background: #c50000;
  color: #fff;
  border-radius: 4px;
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================
   Header & Brand (VERSION CENTRÉE)
========================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dadcdf;
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* TOUT centré */
  justify-content: center;
  text-align: center;
}

/* Logo par défaut (desktop / tablette) */
.brand-logo img {
  display: block;
  height: 200px;
  width: auto;
  margin: 0 auto;
}

/* Très grands écrans : logo plus grand */
@media (min-width: 768px) {
  .site-header {
    flex-direction: column;
  }

  .brand-logo img {
    height: 300px;
  }
}

/* Smartphones : logo plus petit */
@media (max-width: 767px) {
  .brand-logo img {
    height: 200px; /* ajuste la valeur à ton goût (80 / 100 / 120…) */
  }
}

/* Bloc marque */
.brand-block {
  display: flex;
  flex-direction: column; /* Logo au-dessus */
  align-items: center;
  gap: 8px;
}

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

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.9rem;
  color: #001128;
}

/* ==========================
   Navigation
========================== */

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRÉ */
  gap: 10px;
  margin-top: 12px;
}

/* Listes */
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Menus */
.main-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  order: 2; /* MENU EN DESSOUS DES LANGUES */
}

.main-menu a {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.main-menu a:hover,
.main-menu a:focus {
  background-color: #f6f7f7;
}

/* Langues */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  justify-content: center; /* centré */
  order: 1; /* LANGUES AU-DESSUS DU MENU */
}

.lang-switch li {
  margin: 0;
}

.lang-switch a,
.lang-switch .current-lang {
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lang-switch a:hover,
.lang-switch a:focus {
  background-color: #f6f7f7;
}

.lang-switch .current-lang {
  background-color: #c50000;
  color: #fff;
  font-weight: 600;
}

.lang-switch {
  direction: ltr!important;
}

.lang-switch li {
  direction: ltr!important;
}

/* ==========================
   Hero / Intro langue
========================== */
.home-lang-hero {
  padding: 24px 0 8px;
}

.home-lang-header h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.home-lang-intro {
  margin: 0;
  font-size: 0.98rem;
  color: #001128;
}

@media (min-width: 992px) {
  .home-lang-header h1 {
    font-size: 2rem;
  }

  .home-lang-intro {
    font-size: 1rem;
  }
}

/* ==========================
   Liste articles
========================== */
.home-lang-latest {
  padding: 16px 0 0;
  margin-bottom:16px;
}

.home-lang-latest h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.home-articles-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .home-articles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Carte */
.home-article-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #dadcdf;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-article-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.home-article-title a {
  color: #002355;
}

.home-article-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 10px;
}

.home-article-category {
  font-weight: 500;
}

.home-article-intro {
  font-size: 0.95rem;
  color: #001128;
  margin: 0 0 12px;
}

.home-article-cta {
  margin-top: auto;
  font-size: 0.9rem;
}

.home-article-cta a {
  font-weight: 600;
}

/* ==========================
   Breadcrumbs
========================== */
.breadcrumbs {
  max-width: 1100px;
  margin: 16px auto 8px;
  padding: 0 16px;
  font-size: 0.85rem;
  color: #001128;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  color: #c50000;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 6px;
  color: #999;
  font-size: 0.8rem;
}

/* ==========================
   Page catégorie
========================== */
.category-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.category-header h1 {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.category-intro {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: #001128;
}

.category-articles {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .category-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category-article {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #dadcdf;
  display: flex;
  flex-direction: column;
}

.category-article-title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.category-article-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 10px;
}

.category-article-intro {
  font-size: 0.95rem;
  color: #001128;
  margin: 0 0 12px;
}

/* ==========================
   Article
========================== */
.blog-article {
  max-width: 1100px;
  margin: 8px auto 32px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dadcdf;
  overflow: hidden;
}

.article-hero-figure img {
  width: 100%;
  object-fit: cover;
}
figure {
    margin: 0;
    padding: 24px 24px 0px;
}

.blog-article-body {
  padding: 20px 18px 24px;
}

@media (min-width: 768px) {
  .blog-article-body {
    padding: 24px 24px 28px;
  }
}

.blog-article-body h1 {
  font-size: 1.7rem;
  margin: 0 0 12px;
}

.blog-article-body h2 {
  font-size: 1.3rem;
  margin: 24px 0 10px;
}

.blog-article-body h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.blog-article-body p {
  margin: 0 0 12px;
}

.blog-article-body strong {
  font-weight: 600;
}

.blog-article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid #c50000;
  background-color: #f6f7f7;
  font-style: italic;
  color: #001128;
}

/* ==========================
   Footer
========================== */
.site-footer {
  border-top: 1px solid #dedede;
  background-color: #ffffff;
  padding: 16px 0;
}

.footer-copy {
  text-align:center;
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #001128;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: #001128;
}

.footer-nav a:hover {
  color: #c50000;
}

.footer-categories {
  margin: 8px 0 16px;
  font-size: 0.9rem;
}

.footer-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
}

.footer-categories a {
  color: #75a8da;
}

.footer-categories a:hover {
  color: #002355;
  text-decoration: underline;
}
