/* =============================================================================
   site.css — feuille de style unique de lyxoudeveloppement.fr
   Direction : éditorial tech sobre. Aucune dépendance externe.

   Sommaire
     0. Polices
     1. Tokens
     2. Reset
     3. Base
     4. Mise en page
     5. Composants
     6. Utilitaires
   ============================================================================= */


/* =============================================================================
   0. POLICES — auto-hébergées (sous-ensemble latin, IBM Plex, licence OFL)
   Fichiers issus des paquets @fontsource, version 5.3.0. Aucun appel à un
   service tiers : l'adresse IP du visiteur n'est jamais transmise.
   ============================================================================= */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =============================================================================
   1. TOKENS
   ============================================================================= */

:root {
  /* Surfaces et encres (mode clair) */
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-muted: #5A5F6B;
  --line: #E4E2DC;
  --accent: #2F5BEA;

  /* Couleurs éditoriales */
  --theme-automatisme: #E8590C;
  --theme-ia: #2F5BEA;
  --theme-cyber: #1E8A4C;
  --theme-web: #C99A00;

  /* Typographie */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Formes */
  --radius: 6px;

  /* Espacement : 8, 16, 24, 32, 48, 64, 80, 96 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;

  /* Mise en page */
  --container: 1120px;

  /* Mouvement */
  --transition: 150ms ease;
}

/* Mode sombre : préférence système, sauf choix explicite « clair » */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316;
    --surface: #1A1C20;
    --ink: #ECEAE4;
    --ink-muted: #A3A7B0;
    --line: #2A2D33;
    --accent: #7C9BFF;
    --theme-automatisme: #FF8A4C;
    --theme-ia: #7C9BFF;
    --theme-cyber: #4CC38A;
    --theme-web: #F2C94C;
  }
}

/* Mode sombre : choix explicite enregistré */
:root[data-theme="dark"] {
  --paper: #121316;
  --surface: #1A1C20;
  --ink: #ECEAE4;
  --ink-muted: #A3A7B0;
  --line: #2A2D33;
  --accent: #7C9BFF;
  --theme-automatisme: #FF8A4C;
  --theme-ia: #7C9BFF;
  --theme-cyber: #4CC38A;
  --theme-web: #F2C94C;
}


/* =============================================================================
   2. RESET
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul, pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

[hidden] {
  display: none !important;
}


/* =============================================================================
   3. BASE
   ============================================================================= */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =============================================================================
   4. MISE EN PAGE
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

main.container {
  padding-top: 72px;
  padding-bottom: var(--space-8);
  flex: 1 1 auto;
}

.site-main {
  flex: 1 1 auto;
}

/* Grille de cartes réutilisable */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3);
}


/* =============================================================================
   5. COMPOSANTS
   ============================================================================= */

/* --- En-tête -------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
}

.site-header__brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-header__name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-header__suffix {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Marque : cube coloré, image fixe */
.logo-mark {
  display: block;
  height: auto;
  flex: none;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.site-nav a:hover {
  text-decoration: none;
  border-bottom-color: var(--line);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.icon-btn:hover {
  border-color: var(--ink);
}

.site-header__theme {
  order: 3;
}

.site-header__burger {
  order: 4;
  display: none;
}

/* Bascule clair / sombre : une seule icône visible selon le thème actif */
.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: none;
  }
}

/* --- Pied de page --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-6);
}

/* Quand le bandeau final de l'accueil touche le pied de page, sa marge haute
   ajoutait un vide de 64px : le bandeau sert déjà de séparation. */
.site-main:has(> .bandeau-final:last-child) + .site-footer {
  margin-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: var(--space-4);
}

.site-footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-1);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}

.site-footer__text {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: var(--space-2);
}

.site-footer__social {
  display: flex;
  gap: var(--space-1);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: 15px;
}

.site-footer__links a {
  color: var(--ink);
}

.site-footer__baseline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer__baseline-links {
  display: flex;
  gap: 20px;
}

.site-footer__baseline a {
  color: var(--ink-muted);
}

/* --- Formulaire newsletter (pied de page) --------------------------------- */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form__row {
  display: flex;
  gap: var(--space-1);
}

.newsletter-form__row .input {
  flex: 1 1 auto;
  min-width: 0;
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.btn:hover {
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: var(--ink);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
}

/* --- Métadonnées ---------------------------------------------------------- */

.meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Variante pour les mentions courantes : ni capitales, ni lettres espacées. */
.meta--normal {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Pastilles de thème éditorial ---------------------------------------- */

.theme-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.theme-dot--automatisme {
  background: var(--theme-automatisme);
}

.theme-dot--ia {
  background: var(--theme-ia);
}

.theme-dot--cyber {
  background: var(--theme-cyber);
}

.theme-dot--web {
  background: var(--theme-web);
}

/* --- Carte d'article ------------------------------------------------------ */

.card-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-article h3 {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.card-article h3 a {
  color: var(--ink);
}

.card-article:hover h3 a {
  text-decoration: underline;
}

.card-article__excerpt {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Séparateur de section (losange + pointillés) ------------------------- */

.section-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.section-divider svg {
  flex: 0 0 auto;
}

.section-divider__line {
  flex: 1 1 auto;
  height: 0;
  border-top: 2px dotted currentColor;
}

/* --- Corps d'article ------------------------------------------------------ */

.prose {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose h2 {
  margin: var(--space-5) 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: 1.75rem;
}

.prose h3 {
  margin: var(--space-4) 0 var(--space-1);
  font-family: var(--font-sans);
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: var(--space-3);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: var(--space-1);
}

.prose blockquote {
  margin-bottom: var(--space-3);
  padding: 4px 0 4px var(--space-3);
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-muted);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.prose pre {
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.prose table {
  width: 100%;
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: var(--space-1) 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--surface);
  font-weight: 600;
}

.prose figure {
  margin-bottom: var(--space-3);
}

.prose figcaption {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.prose img {
  border-radius: var(--radius);
}

.prose hr {
  margin: var(--space-5) 0;
}

/* --- Formulaires ---------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.label {
  font-size: 15px;
  color: var(--ink-muted);
}

.input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition);
}

.input::placeholder {
  color: var(--ink-muted);
}

.input:focus {
  border-color: var(--accent);
}

.input.is-invalid {
  border-color: var(--theme-automatisme);
}

textarea.input {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.error {
  font-size: 14px;
  color: var(--theme-automatisme);
}

/* --- Notices (messages Django) -------------------------------------------- */

.notices {
  position: fixed;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: min(420px, calc(100% - 2 * var(--space-3)));
}

.notice {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.notice--success {
  border-left-color: var(--theme-cyber);
}

.notice--warning {
  border-left-color: var(--theme-web);
}

.notice--error {
  border-left-color: var(--theme-automatisme);
}


/* =============================================================================
   6. UTILITAIRES
   ============================================================================= */

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

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  border-radius: 0 0 var(--radius) 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* Champ piège : invisible pour les visiteurs, accessible aux robots */
.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.is-hidden {
  display: none;
}

.text-muted {
  color: var(--ink-muted);
}

/* --- Points de rupture ---------------------------------------------------- */

@media (max-width: 767px) {
  .site-header__inner {
    min-height: 64px;
    gap: var(--space-1);
  }

  .site-header__name {
    font-size: 16px;
  }

  .site-header__suffix {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-1) 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-2) var(--space-3);
    border-bottom: 0;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 0;
  }

  main.container {
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
  }
}


/* =============================================================================
   7. PAGES D'ARTICLES
   ============================================================================= */

/* --- En-tête de la liste -------------------------------------------------- */

.page-header {
  margin-bottom: var(--space-4);
}

.page-header__intro {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* --- Filtres par thème ---------------------------------------------------- */

.filtres-themes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.filtres-themes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--transition), background-color var(--transition);
}

.filtres-themes a:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.filtres-themes a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

/* --- Grille des articles -------------------------------------------------- */

.grid-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

/* --- Cartes d'articles ---------------------------------------------------- */

.card-article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.card-article h2 {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.card-article h2 a {
  color: var(--ink);
}

.card-article:hover h2 a {
  text-decoration: underline;
}

.card-article--vedette {
  margin-bottom: var(--space-4);
}

.card-article--vedette h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Corps de carte : méta, titre, chapô et lien de lecture. */
.card-article__corps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Lien « Lire l'article », réservé à la vedette illustrée sur deux colonnes. */
.card-article__lien {
  display: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.card-article__lien:hover {
  text-decoration: underline;
}

.liste-vide {
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* --- Pagination ----------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.pagination__etat {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- Page article --------------------------------------------------------- */

.brouillon-bandeau {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--theme-automatisme);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.fil-ariane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  font-size: 14px;
  color: var(--ink-muted);
}

.fil-ariane a {
  color: var(--ink-muted);
}

.article-layout {
  display: block;
}

.article {
  min-width: 0;
  max-width: 720px;
}

.article__titre {
  margin: var(--space-2) 0;
}

.article__chapo {
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.article__cover {
  width: 100%;
  aspect-ratio: 1200 / 627;
  object-fit: cover;
  margin-bottom: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article__fin {
  margin-top: var(--space-5);
}

.article__appel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.article__appel h2 {
  font-size: 1.5rem;
}

.article__appel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Sommaire (mobile : bloc repliable) ----------------------------------- */

.sommaire {
  margin-bottom: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sommaire summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-2);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sommaire summary::-webkit-details-marker {
  display: none;
}

.sommaire__chevron {
  flex: 0 0 auto;
  transition: transform var(--transition);
}

.sommaire[open] .sommaire__chevron {
  transform: rotate(180deg);
}

.sommaire__liste,
.article-aside__liste {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sommaire__liste {
  padding: var(--space-1) var(--space-2) var(--space-2);
  border-top: 1px solid var(--line);
}

.sommaire__liste a,
.article-aside__liste a {
  display: block;
  padding: 6px 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.sommaire__liste a:hover,
.article-aside__liste a:hover {
  color: var(--ink);
}

/* --- Sommaire (bureau : colonne collante, à partir de 1200px) ------------- */

.article-aside {
  display: none;
}

.article-aside__titre {
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.article-aside__liste {
  border-left: 1px solid var(--line);
}

.article-aside__liste a {
  padding-left: var(--space-2);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

/* --- « À lire aussi » ----------------------------------------------------- */

.articles-lies {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.articles-lies h2 {
  margin-bottom: var(--space-4);
}

/* --- Points de rupture des pages d'articles ------------------------------ */

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

@media (min-width: 1024px) {
  .grid-articles {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Vedette illustrée : image à gauche, texte centré verticalement à droite. */
  .card-article--vedette.card-article--illustree {
    display: grid;
    grid-template-columns: 60% minmax(0, 1fr);
    gap: var(--space-5);
    align-items: center;
  }

  .card-article--vedette.card-article--illustree .card-article__cover {
    aspect-ratio: 16 / 10;
  }

  .card-article--vedette .card-article__lien {
    display: inline-block;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: var(--space-6);
    align-items: start;
  }

  .article-aside {
    display: block;
    position: sticky;
    top: var(--space-4);
  }

  .sommaire--replie {
    display: none;
  }
}


/* =============================================================================
   8. PAGES DE PRÉSENTATION
   Accueil, À propos, Services et Contact. Uniquement des variables de la charte,
   pour que le mode sombre reste cohérent.
   ============================================================================= */

/* --- Accueil : bandeau d'accroche ---------------------------------------- */

.hero {
  padding: 96px 0 80px;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.hero__texte {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__titre {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__sous-titre {
  max-width: 34em;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__media {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

/* Sur-titre en Plex Mono : sert de repère éditorial dans plusieurs sections. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Portrait carré, recadré, même que celui de la page À propos. */
.portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

/* --- Accueil : sections --------------------------------------------------- */

.section {
  padding: 48px 0;
}

/* Le premier bloc d'une page garde un haut de page plus large. */
.site-main > .section:first-child {
  padding-top: 72px;
}

/* Un titre posé à même le conteneur respire avant son contenu. */
.section .container > h2 {
  margin-bottom: var(--space-4);
}

.section__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section__lien {
  font-weight: 600;
}

/* --- Accueil : domaines --------------------------------------------------- */

.grid-domaines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.domaine {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.domaine__titre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.domaine__titre .theme-dot {
  width: 10px;
  height: 10px;
}

.domaine__texte {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

.domaine__lien {
  font-size: 15px;
  font-weight: 600;
}

/* --- Grilles de cartes (projets et services) ------------------------------ */

.grid-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3);
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-3);
}

.card-projet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-projet__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--line);
}

.card-projet__corps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-3);
}

.card-projet h3 {
  font-size: 1.25rem;
}

.card-projet__texte {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

.card-projet__lien {
  font-size: 15px;
  font-weight: 600;
}

.card-service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-service h2 {
  font-size: 1.25rem;
}

.card-service p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Accueil : encart Lyxou Développement -------------------------------- */

.encart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.encart__logo {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
}

/* Le PNG du logo a un fond blanc : on l'isole sur les fonds sombres. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .encart__logo {
    padding: 12px;
    border-radius: var(--radius);
    background: #FFFFFF;
  }
}

:root[data-theme="dark"] .encart__logo {
  padding: 12px;
  border-radius: var(--radius);
  background: #FFFFFF;
}

.encart__texte {
  flex: 999 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.encart__texte h2 {
  font-size: 1.625rem;
}

.encart__texte p {
  max-width: 46em;
  font-size: 16px;
  line-height: 1.6;
}

.encart__action {
  flex: 0 0 auto;
}

/* --- Accueil : témoignages ------------------------------------------------ */

/* Un seul témoignage : citation centrée. Deux ou plus : grille de cartes. */
.temoignages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3);
}

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

.temoignage:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.temoignage:only-child blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
}

.temoignage:only-child figcaption {
  justify-content: center;
}

.temoignage:not(:only-child) {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.temoignage:not(:only-child) blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
}

/* --- Accueil : bandeau final --------------------------------------------- */

.bandeau-final {
  background: var(--ink);
  color: var(--paper);
}

/* Longueurs de padding : conserve le retrait horizontal de .container. */
.bandeau-final__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 72px;
  padding-bottom: 72px;
}

.bandeau-final__texte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 40em;
}

.bandeau-final__texte h2 {
  font-size: 2rem;
  font-weight: 600;
}

.bandeau-final__texte p {
  font-size: 17px;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.bandeau-final__action {
  flex: 0 0 auto;
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.bandeau-final__action:hover {
  background: var(--paper);
  color: var(--ink);
}

/* En mode sombre, var(--ink) s'éclaircit : le bandeau deviendrait un aplat
   lumineux. On repasse sur une surface bordée, avec le bouton standard. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bandeau-final {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .bandeau-final__texte p {
    color: var(--ink-muted);
  }

  :root:not([data-theme="light"]) .bandeau-final__action {
    background: var(--ink);
    border-color: transparent;
    color: var(--paper);
  }
}

:root[data-theme="dark"] .bandeau-final {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] .bandeau-final__texte p {
  color: var(--ink-muted);
}

:root[data-theme="dark"] .bandeau-final__action {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}

/* --- À propos ------------------------------------------------------------- */

.presentation {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6);
}

.presentation__media {
  flex: 0 1 320px;
}

.presentation__texte {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.presentation__texte h1 {
  margin-bottom: var(--space-2);
}

/* Paragraphes de présentation : mêmes proportions que .prose. */
.presentation__texte p {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

.liste-domaines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liste-domaines li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.liens-externes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-4);
}

.liens-externes__secondaire {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}

.liens-externes__secondaire:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* --- Lien discret (renvoi vers la page LinkedIn de Lyxou) ----------------- */

.lien-discret {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
}

.lien-discret:hover {
  color: var(--ink);
}

.encart__texte .lien-discret {
  margin-top: 0;
}

/* --- Services : la méthode ------------------------------------------------ */

.methode {
  max-width: 760px;
}

.methode__etape {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-4);
}

.methode__etape:last-child {
  padding-bottom: 0;
}

/* Ligne pointillée qui relie les puces, comme le filet du logo. */
.methode__etape:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  border-left: 2px dotted var(--ink);
}

.methode__puce {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 600;
}

.methode__corps h3 {
  margin-bottom: var(--space-1);
}

.methode__corps p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Contact -------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: var(--space-4);
}

.contact-form,
.coordonnees {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.coordonnees h2 {
  font-size: 1.25rem;
}

.liste-coordonnees {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.liste-coordonnees li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.liste-coordonnees__libelle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- Points de rupture des pages de présentation ------------------------- */

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
  }

  /* Coordonnées à gauche, formulaire à droite. */
  .coordonnees {
    order: 1;
  }

  .contact-form {
    order: 2;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 32px 0;
  }

  .site-main > .section:first-child {
    padding-top: 48px;
  }

  .section .container > h2 {
    margin-bottom: var(--space-3);
  }

  main.container {
    padding-top: 48px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero__inner {
    gap: var(--space-4);
  }

  .portrait {
    max-width: 240px;
  }

  .encart {
    flex-direction: column;
    align-items: flex-start;
  }

  .bandeau-final__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }
}
