/*
  Feuille unique du blog, partagée par la page /blog/ et les 20 articles.

  Elle reprend la charte du site React (tailwind.config.js + src/index.css) :
  rouge de marque #D40915, noirs neutres « ink » sans dominante bleue,
  Barlow Condensed en capitales pour les titres, Inter pour le texte courant.
  Le blog doit être indistinguable du reste du site.
*/

:root {
  --brand-50: #fff1f1;
  --brand-100: #ffdfe0;
  --brand-500: #ee1c24;
  --brand-600: #d40915;
  --brand-700: #b00610;

  --ink-50: #f7f7f8;
  --ink-100: #eeeef0;
  --ink-200: #d9d9dd;
  --ink-400: #8c8c95;
  --ink-500: #6b6b73;
  --ink-600: #52525a;
  --ink-700: #3f3f45;
  --ink-900: #141417;
  --ink-950: #0a0a0c;

  --display: 'Barlow Condensed', Oswald, Impact, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  background: #fff;
}

/* ------------------------------------------------------------- en-tête */

.b-entete {
  background: var(--ink-950);
  border-bottom: 4px solid var(--brand-600);
}

.b-entete__interieur {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.b-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.b-logo__marque {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #fff;
}

.b-logo__suite {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-500);
}

.b-entete__tel {
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.b-entete__tel:hover {
  color: var(--brand-500);
}

/* ------------------------------------------------------------ structure */

.b-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.b-fil {
  font-size: 0.85rem;
  color: var(--ink-500);
  padding: 20px 0 8px;
}

.b-fil a {
  color: var(--ink-500);
  text-decoration: none;
}

.b-fil a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.b-fil span {
  color: var(--ink-400);
  padding: 0 6px;
}

/* --------------------------------------------------------------- titres */

h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 8px 0 24px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 48px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--brand-600);
}

h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  margin: 30px 0 10px;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--ink-900);
}

/* Liens dans le corps du texte : visibles sans être criards. */
.b-page a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.b-page a:hover {
  color: var(--brand-600);
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------- images */

/*
  Le ratio est fixé pour que la mise en page ne saute jamais pendant le
  chargement : sans lui, le texte descend d'un coup quand l'image arrive.
*/
.b-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px -12px rgba(10, 10, 12, 0.45);
  margin: 0 0 32px;
  background: var(--ink-100);
}

.b-figure {
  margin: 32px 0;
}

.b-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  background: var(--ink-100);
}

.b-figure figcaption {
  font-size: 0.88rem;
  color: var(--ink-500);
  padding-top: 10px;
  border-left: 3px solid var(--brand-500);
  padding-left: 12px;
  margin-top: 12px;
}

/* ------------------------------------------------------- encart d'appel */

.b-encart {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--brand-600);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}

.b-encart p {
  margin: 0 0 16px;
}

.b-bouton {
  display: inline-block;
  background: var(--brand-600);
  color: #fff !important;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: 999px;
}

.b-bouton:hover {
  background: var(--brand-700);
}

/* --------------------------------------------------- articles similaires */

.b-similaires {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid var(--ink-200);
}

.b-similaires h2 {
  border: 0;
  padding: 0;
  margin-top: 0;
  font-size: 1.4rem;
}

.b-similaires ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b-similaires li {
  margin: 0;
  border-bottom: 1px solid var(--ink-100);
}

.b-similaires a {
  display: block;
  padding: 13px 0;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}

.b-similaires a::before {
  content: '→';
  color: var(--brand-600);
  font-weight: 700;
  margin-right: 10px;
}

.b-similaires a:hover {
  color: var(--brand-700);
}

/* ------------------------------------------------------- index du blog */

.b-grappe {
  margin-bottom: 40px;
}

.b-grappe h2 {
  margin-top: 0;
}

.b-grappe ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b-grappe li {
  margin: 0;
  border-bottom: 1px solid var(--ink-100);
}

.b-grappe a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}

.b-grappe a::before {
  content: '→';
  color: var(--brand-600);
  font-weight: 700;
  margin-right: 10px;
}

.b-grappe a:hover {
  color: var(--brand-700);
}

/* ---------------------------------------------------------------- pied */

.b-pied {
  background: var(--ink-950);
  color: var(--ink-400);
  margin-top: 64px;
}

.b-pied__interieur {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.b-pied a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.b-pied a:hover {
  color: var(--brand-500);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .b-entete__tel {
    font-size: 0.95rem;
  }
}
