/* === POLICES LOCALES === */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fontes/lora-v35-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fontes/lora-v35-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fontes/lora-v35-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fontes/lora-v35-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fontes/lora-v35-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --orange: #f66b06;
  --orange-hover: #e55a05;
  --noir: #1a1a1a;
  --gris: #666;
  --gris-section: #f5f5f5;
  --blanc: #ffffff;
  --max-width: 1100px;
  --padding-horizontal: 2rem;
  --transition: all 0.3s ease;
  --shadow-light: 0 2px 15px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.1);
  --line-height-base: 1.4;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === GÉNÉRAL === */
body {
  padding-top: 80px;
  font-family: 'Inter', sans-serif;
  color: var(--noir);
  line-height: var(--line-height-base);
  background: var(--gris-section); /* Fond gris = blog */
  /* Césure française */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  line-height: var(--line-height-base);
}

/* Éléments strong dans le texte courant */
p strong,
.blog-desc strong,
.content strong {
  font-weight: 600; /* Semi-bold au lieu de 700 */
}

/* Garder le bold (700) pour les titres et éléments structurels */
h1, h2, h3, h4, h5, h6,
.blog-title,
.nav-link {
  font-weight: 700; /* Reste en bold pour la hiérarchie */
}

/* Styles globaux pour tous les liens */
a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  background: var(--orange);
  color: var(--blanc) !important;
  padding: 2px 4px;
  border-radius: 2px;
}

/* ANTI-DÉCALAGE seulement pour les liens dans les paragraphes */
p a {
  padding: 2px 4px; /* Padding permanent pour réserver l'espace */
  border-radius: 2px;
  margin: -2px -4px; /* Compense le padding pour éviter le décalage initial */
}

p a:hover {
  margin: -2px -4px; /* Garde la compensation au survol */
  padding: 2px 4px; /* Le padding est déjà là */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-horizontal);
}

/* === HEADER === */
header {
  background: var(--gris-section); /* Fond gris pour le header du blog */
  border-bottom: 1px solid #ddd; /* Bordure un peu plus foncée pour le contraste */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--padding-horizontal);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo {
  font-weight: 600;
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--noir);
  line-height: var(--line-height-base);
}

.logo:hover {
  background: none !important;
  color: var(--noir) !important;
  padding: 0 !important;
}

.logo::after {
  content: ".be";
  color: var(--orange);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gris);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: var(--line-height-base);
}

.nav-links a:hover {
  color: var(--orange) !important;
  background: none !important;
  padding: 0 !important;
}

.burger {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: none;
}

.burger img {
  width: 2rem;
  height: 2rem;
}

/* === HERO AVEC POINT ORANGE === */
.hero {
  padding: 3rem 0 3.5rem;
  background: var(--gris-section); /* Fond gris pour le hero du blog */
}

.hero-point-container {
  margin-bottom: 1.5rem;
}

.hero-point {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(246, 107, 6, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(246, 107, 6, 0);
  }
}

.hero-point::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
}

.hero-point:hover {
  transform: scale(1.2) rotate(180deg);
  background: var(--orange-hover);
}

.hero-point:hover::after {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.5);
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: var(--line-height-base);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--gris);
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.5rem;
  line-height: var(--line-height-base);
}

/* === SECTION BLOG AVEC FOND GRIS === */
.blog-section {
  background: var(--gris-section);
  padding: 4rem 0;
}

/* === BLOG PREVIEW === */
.blog-preview {
  background: #f0f0f0; /* Fond gris clair pour les cartes du blog */
  border: 1px solid #e0e0e0; /* Bordure légère */
  border-radius: 12px;
  padding: 2rem; /* Padding uniforme comme les service-card */
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-preview:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.blog-preview > *:first-child {
  margin-top: 0;
}

.blog-preview > *:last-child {
  margin-bottom: 0;
}

.blog-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--orange);
  margin-top: 0;
  line-height: var(--line-height-base);
  font-weight: 600;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 1rem;
}

.blog-desc {
  font-size: 1rem;
  color: var(--gris);
  line-height: var(--line-height-base);
}

.icone-article {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: block;
}

/* === CONTENU ARTICLES === */
.content {
  background: var(--gris-section); /* Fond gris pour le contenu des articles */
  padding: 4rem 0;
}

.content p {
  margin-bottom: 1.5rem;
  line-height: var(--line-height-base);
}

.chapo {
  font-family: 'Lora', serif;
  color: var(--noir);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* === TITRES DANS LES ARTICLES === */
.content h2,
.content h3 {
  font-family: 'Lora', serif;
  color: var(--orange);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: var(--line-height-base);
}

/* === LISTES === */
ol {
  margin-left: 2rem;
  padding-left: 1rem;
  list-style-position: outside;
}

ol li {
  line-height: var(--line-height-base);
  margin-bottom: 0.5rem;
}

/* === HR === */
hr {
  border: none;
  border-bottom: 1px solid var(--orange);
  margin: 2rem 0;
}

/* === ILLUSTRATIONS === */
.illustration {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
}

.illustration-petite {
  width: 40%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

.illustration-moyenne {
  width: 60%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

.video-article {
  width: 60%;
  display: block;
  margin: 2rem auto;
}

/* === NAVIGATION BLOG === */
.blog-navigation {
  margin: 4rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  display: grid;
  gap: 2rem;
}

.nav-previous,
.nav-next,
.nav-back {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-back {
  text-align: center;
}

.nav-label {
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.nav-link {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  line-height: var(--line-height-base);
  display: block;
}

.nav-link:hover {
  color: var(--blanc) !important;
  background: var(--orange);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Si les deux liens sont présents, on les met côte à côte */
.nav-previous + .nav-next {
  grid-column: 2;
}

.blog-navigation:has(.nav-previous):has(.nav-next) {
  grid-template-columns: 1fr 1fr;
}

/* === FOOTER === */
footer {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-horizontal);
  text-align: center;
}

.footer-brand {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.footer-brand strong {
  font-weight: 600;
}

.footer-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #FFB800;
  border-radius: 50%;
  margin: 0 0.8rem;
  vertical-align: middle;
}

.footer-social {
  margin-bottom: 1.5rem;
}

.footer-mastodon {
  width: 32px;
  height: 32px;
  transition: var(--transition);
  opacity: 0.8;
}

.footer-info {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #d0d0d0;
}

.footer-info em {
  font-style: italic;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #999;
}

/* === FOOTER - CORRECTION LIENS === */

/* TOUS les liens du footer avec spécificité renforcée */
footer a {
  color: var(--blanc) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

/* Au survol : TOUS les liens deviennent dorés, sans autre effet */
footer a:hover,
footer .footer-links a:hover,
footer .footer-copyright a:hover,
footer .footer-brand a:hover,
footer .footer-info a:hover {
  color: #FFB800 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .burger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  /* === JUSTIFICATION TEXTES DESKTOP/TABLETTE === */
  .hero .lead,
  .content p,
  .content li,
  .content .lead,
  .content .chapo,
  .blog-desc {
    text-align: justify;
    hyphens: auto;
    text-align-last: left;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-preview {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--blanc);
    padding: 1rem 2rem;
    position: absolute;
    top: 100%;
    right: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero .lead {
    text-align: left;
  }

  .blog-preview {
    margin-bottom: 1.5rem;
  }

  .illustration-petite,
  .illustration-moyenne,
  .video-article {
    width: 100%;
  }

  .blog-navigation:has(.nav-previous):has(.nav-next) {
    grid-template-columns: 1fr;
  }

  .nav-previous + .nav-next {
    grid-column: 1;
  }

  .nav-next {
    text-align: left;
  }
}

/* === LOGO BLOG SPÉCIFIQUE === */
.logo-blog::after {
  content: none; /* Neutralise le ::after automatique */
}

.logo-orange {
  color: var(--orange);
}

.image-carree {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  float: left;
  margin: 0 2rem 1rem 0;
  border-radius: 8px;
  vertical-align: top;
}

.image-carree-droite {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  float: right;
  margin: 0 0 1rem 2rem;
  border-radius: 8px;
  vertical-align: top;
}



@media (max-width: 768px) {
  .image-carree,
  .image-carree-droite {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 2rem auto !important;
    vertical-align: baseline; /* valeur neutre ici */
  }
}
