/* ==========================================================================
   Composants. Interface sobre ; depuis le 31/10/2026, quelques survols à la Pinterest
   (bulles des icônes, bouton sur les cartes et les épingles), courts et coupés si
   l'utilisateur demande moins d'animations.
   ========================================================================== */

/* ---------- Icônes de contact (mail, CV, LinkedIn) ----------
   Icônes de 28px (comme Pinterest), recadrées pour avoir la même taille visuelle. */
.contact-links {
  display: flex;
  gap: 4px;               /* 20px d'écart visuel entre icônes de 28px dans des zones de 44px */
  margin: -8px;           /* la zone cliquable déborde sans décaler les icônes */
}

.icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

/* Survol : carré lila très clair + bulle noire avec un petit texte (comme « Rechercher » sur Pinterest) */
.contact-links li { position: relative; }
.icon-link { border-radius: 12px; transition: background-color 0.15s; }
.icon-link:hover { background: var(--color-lila); }
.icon-link::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--color-black);
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -2px);
  transition: opacity 0.15s, transform 0.15s;
}
.contact-links li:last-child .icon-link::after { left: auto; right: 0; transform: translateY(-2px); }   /* reste dans l'écran */
.icon-link:hover::after,
.icon-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.contact-links li:last-child .icon-link:hover::after,
.contact-links li:last-child .icon-link:focus-visible::after { transform: none; }

@media (min-width: 768px) {
  .contact-links { gap: 8px; margin: -10px; }   /* zones de 48px, 28px d'écart visuel (comme Pinterest) */
  .icon-link { width: 48px; height: 48px; }
}

/* ---------- Langue FR / EN : menu déroulant (inspiré du sélecteur de compte Pinterest) ----------
   Interface statique : pas d'ombre ni d'animation, une simple bordure. */
.profile__actions,
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .profile__actions,
  .site-header__actions { gap: 28px; }   /* même écart qu'entre les icônes */
}

.lang-menu { position: relative; }

.lang-menu__button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  list-style: none;        /* retire le triangle par défaut de <summary> */
}
.lang-menu__button::-webkit-details-marker { display: none; }
.lang-menu__button:focus-visible { outline-offset: 2px; }
.lang-menu[open] .lang-menu__chevron { transform: rotate(180deg); }

.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 160px;
  padding: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.lang-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  color: var(--color-black);
}
.lang-menu__link[aria-current="true"] { font-weight: 600; }
.lang-menu__check { flex-shrink: 0; }

/* ---------- Onglets ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 21px;
}

.tabs__tab {
  padding-block: 10px;    /* zone de clic confortable, sans changement visuel */
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-black);
}

.tabs__tab[aria-selected="true"] {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-position: from-font;
}

/* ---------- Grille « Mes projets » ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 7px;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.project-card__link:focus-visible { outline-offset: 4px; border-radius: 12px; }

.project-card__media {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-placeholder);
}

.project-card__media picture { height: 100%; }

/* Bouton violet qui apparaît au survol d'une carte projet ou d'une épingle (le « Enregistrer » de Pinterest).
   Mêmes réglages pour les deux (choix de Louise, 31/10/2026) : 40px de haut, 16px sur les côtés, texte 16px (le « Enregistrer » de la 1re version), arrondi 14px. */
.project-card__media,
.pin__figure { position: relative; }
.hover-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;   /* soit environ 12px au-dessus et en dessous du texte */
  border: 0;
  border-radius: 14px;
  background: var(--color-purple);
  color: var(--color-bg);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pin__save[aria-pressed="true"] { background: var(--color-black); }
.pin__img { transition: filter 0.15s; }
.project-card__link:focus-visible .hover-button,
.pin__save:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) {
  .project-card__link:hover .hover-button,
  .pin__figure:hover .hover-button { opacity: 1; pointer-events: auto; }
  .masonry--about .pin__figure:hover .pin__img { filter: brightness(0.85); }   /* seulement les épingles « À propos », comme Pinterest ; plus sur les projets (choix de Louise, 01/11/2026) */
}

/* Petit message en bas de l'écran après « Enregistrer » (js/pin-save.js) */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--color-black);
  color: var(--color-bg);
  font-weight: 400;   /* texte normal, moins épais (choix de Louise, 31/10/2026) */
  text-align: center;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__link { color: var(--color-lila); white-space: nowrap; }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__title {
  padding-inline: 4px;
  font-weight: 600;       /* tailles des titres de tableaux Pinterest (choix de Louise, 26/10/2026) */
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card__year {
  padding-inline: 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--color-grey);
}

/* Colonnes « à la Pinterest » : une colonne fait au moins 220px (marges et écarts de 16px).
   Dès qu'une colonne de plus tient dans la fenêtre, elle apparaît : 3 (≥724px), 4 (≥960px),
   5 (≥1196px). 5 colonnes maximum (03/11/2026 : avec 5 projets, une 6e colonne laissait une place vide) ;
   au-delà, les colonnes s'élargissent. */
@media (min-width: 724px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
}
@media (min-width: 960px)  { .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1196px) { .project-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (min-width: 1024px) {
  .project-card__link { gap: 7.5px; }
  .project-card__media { border-radius: 13.5px; }
  .project-card__title { padding-inline: 3.4px; font-size: 20px; letter-spacing: -0.4px; }
  .project-card__year { padding-inline: 3.4px; margin-top: 1px; font-size: 12px; }
}

/* ---------- Masonry (épingles) ---------- */
.masonry {
  --masonry-columns: 3;
  --masonry-col-gap: 5px;
  --masonry-row-gap: 28px;
  column-count: var(--masonry-columns);   /* version sans JavaScript */
  column-gap: var(--masonry-col-gap);
}
.masonry > .pin { break-inside: avoid; margin-bottom: var(--masonry-row-gap); }

.masonry.is-arranged {
  display: flex;
  align-items: flex-start;
  gap: var(--masonry-col-gap);
  column-count: auto;
}
.masonry.is-arranged > .pin { margin-bottom: 0; }
.masonry__column { flex: 1 1 0; min-width: 0; }
.masonry__list { display: flex; flex-direction: column; gap: var(--masonry-row-gap); }


.masonry--project { --masonry-columns: 1; --masonry-row-gap: 16px; --masonry-col-gap: 16px; }
/* Images d'une page projet : 3 colonnes dès que la galerie a la place (440px), quelle que soit la taille de l'écran
   (fenêtre réduite, zoom Windows 125-150 %…) ; 1 colonne seulement sur téléphone (choix de Louise, 01/11/2026). */
.project__gallery { container-type: inline-size; }
@container (min-width: 440px) { .masonry--project { --masonry-columns: 3; } }

.pin__figure { display: flex; flex-direction: column; gap: 14px; }

/* Téléphone (pas de survol) : trois petits points sous l'image, comme Pinterest mobile,
   qui ouvrent un panneau « Options » avec « Enregistrer » (js/pin-save.js) */
.pin__more { display: none; }
@media (hover: none) {
  .pin__figure {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 4px;
    align-items: start;
  }
  .pin__figure > picture { grid-column: 1 / -1; }
  .pin__caption { grid-row: 2; grid-column: 1; }
  .pin__more {
    grid-row: 2;
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 24px;
    margin-top: -2px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--color-black);
  }
  .pin__more svg { fill: currentColor; }
}

.sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--color-bg);
  color: var(--color-black);
}
.sheet[open] { animation: sheet-up 0.2s ease-out; }
.sheet:focus { outline: none; }
.sheet::backdrop { background: rgb(0 0 0 / 0.4); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.sheet__close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: inherit; }
.sheet__title { text-align: center; font-weight: 600; font-size: 16px; }
.sheet__action {
  display: block;
  width: 100%;
  padding: 14px 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-weight: 500;
  text-align: left;
  color: inherit;
}

.pin__img {
  width: 100%;
  border-radius: 16px;
  background: var(--color-placeholder);
}

.pin__video { display: block; height: auto; cursor: pointer; }   /* même arrondi que les images (.pin__img) ; clic = pause / lecture */
.pin__video:focus-visible { outline: 2px solid var(--color-purple); outline-offset: 3px; }

.pin__caption {
  padding-inline: 4px;
  font: var(--text-caption);
}

/* À propos : 3 colonnes sur téléphone (maquette mobile), puis la même règle que « Mes projets » */
.masonry--about { --masonry-columns: 2; --masonry-col-gap: 8px; }   /* téléphone : 2 colonnes, comme l'accueil Pinterest (choix de Louise, 30/10/2026) */
@media (min-width: 724px)  { .masonry--about { --masonry-columns: 3; --masonry-col-gap: 16px; } }
@media (min-width: 960px)  { .masonry--about { --masonry-columns: 4; } }
@media (min-width: 1196px) { .masonry--about { --masonry-columns: 5; } }
/* Espacements de la maquette laptop (5 colonnes maximum depuis le 03/11/2026, comme « Mes projets ») */
@media (min-width: 1432px) {
  .masonry--about { --masonry-row-gap: 23px; }
  .masonry--about .pin__figure { gap: 11.6px; }
  .masonry--about .pin__img { border-radius: 13.25px; }
  .masonry--about .pin__caption { padding-inline: 3.3px; font-size: 15px; }
}
/* Les colonnes s'élargissent au-delà de 5 (03/11/2026) : la légende grandit un peu avec elles */
@media (min-width: 1700px) { .masonry--about .pin__caption { font-size: 16px; } }

/* ---------- Header compact (pages projet) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: 20px 16px;     /* plus d'air au-dessus et en dessous (choix de Louise, 26/10/2026) */
}

/* Page projet : l'en-tête reste en haut de l'écran pendant le défilement (demande de Louise, 30/10/2026) */
.page-project .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
}
html:has(.page-project) { scroll-padding-top: 88px; }   /* les ancres ne passent pas sous l'en-tête */

.site-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-black);
  text-decoration: none;
}
.site-header__identity:focus-visible { border-radius: 4px; }

.site-header__photo {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header__name { font-size: 16px; line-height: 1; white-space: nowrap; }
.site-header__photo { flex-shrink: 0; }

/* Petit téléphone : en-tête compact resserré, pour garder le nom sur une ligne */
@media (max-width: 479px) {
  .site-header { padding-inline: 16px; gap: 12px; }
  .site-header__identity { gap: 8px; }
  .site-header__actions { gap: 8px; }
  .site-header .lang-menu__button { height: 36px; padding-inline: 8px 6px; gap: 4px; }
  .site-header .contact-links { gap: 0; margin: -8px; }
  .site-header .icon-link { width: 40px; height: 40px; }
  .site-header .icon-link img { width: 24px; height: 24px; }   /* icônes 24px dans l'en-tête compact (maquette mobile) */
}
/* Très petit téléphone (320-359px) : le nom ne tient plus, seule la photo reste (lien vers l'accueil, nommé pour les lecteurs d'écran) */
@media (max-width: 359px) {
  .site-header__name { display: none; }
}

/* ---------- Page projet : 1re partie sans photo (titre, problématique, fiche « En bref ») ---------- */
.project-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 16px 40px;
}
.project-hero .project__title { margin-bottom: -16px; }   /* titre et problématique vont ensemble : plus proches */
.project-hero__problem {
  max-width: 900px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.4px;
}
/* Dans la 1re partie, la fiche passe en colonnes (intitulé au-dessus, valeur dessous), comme trushaneogi.com */
.project-hero .project-brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
}
.project-hero .project-brief__item { display: flex; flex-direction: column; gap: 6px; }
.project-hero .project-brief__item:first-child { grid-column: 1 / -1; }   /* Mon rôle : les tags prennent la place qu'il faut */
@media (min-width: 1024px) {
  .project-hero { gap: 40px; padding: 64px 32px 64px; }
  .project-hero .project__title { margin-bottom: -24px; }
  .project-hero .project__title { font-size: 48px; letter-spacing: -0.6px; }   /* lettres moins serrées (choix de Louise, 01/11/2026) */
  .project-hero__problem { font-size: 34px; letter-spacing: -0.8px; line-height: 1.3; }
  .project-hero .project-brief { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .project-hero .project-brief__item:first-child { grid-column: auto; }
}

/* ---------- Page projet ---------- */
.project {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 16px var(--sp-l);
}

.project__text {
  display: flex;
  flex-direction: column;
  gap: 64px;              /* entre l'introduction et chaque partie (32px avant le 01/11/2026) */
  padding-block: var(--sp-m);
  font-size: 16px;
  line-height: 1.6;       /* lecture confortable, inspirée des articles Vogue (choix de Louise, 26/10/2026) */
}

.project__intro { display: flex; flex-direction: column; gap: var(--sp-s); }

.project__title {
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;      /* titre sur plusieurs lignes moins serré (choix de Louise, 26/10/2026) */
  letter-spacing: -0.4px;   /* lettres moins serrées (choix de Louise, 01/11/2026) */
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: calc(12px - var(--sp-s)); /* 12px sous le titre */
}

.tag {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--color-lila);
  color: var(--color-purple);
  font: var(--text-tag);
  white-space: nowrap;
}

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

/* Titres de partie : plus grands et plus foncés, sans numéro ni gras (choix de Louise, 01/11/2026,
   inspiré de trushaneogi.com et hellodani.co) */
.project-section__title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--color-black);
}
@media (min-width: 1024px) { .project-section__title { font-size: 30px; } }

/* Paragraphes des pages projet en gris très foncé, mots-clés en gras de la même couleur
   (choix de Louise, 01/11/2026 : le noir paraissait trop épais ; la graisse 300 essayée puis jugée trop fine) */
.project__text .rich-text { color: var(--color-text); }

/* Petits sous-titres dans un texte (### dans l'admin), comme « ABOUT THE PROJECT » */
.rich-text h3 {
  margin-top: 1.6em;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #636363;
}
.rich-text h3:first-child { margin-top: 0; }
.rich-text h3 + p, .rich-text h3 + ul, .rich-text h3 + ol { margin-top: 8px; }

.rich-text p + p,
.rich-text p + ul,
.rich-text ul + p,
.rich-text p + ol,
.rich-text ol + p { margin-top: 1.4em; }      /* ~25px entre paragraphes sur ordinateur */
/* Une liste qui suit sa phrase d'annonce (« … : ») s'y rattache : moins d'espace qu'entre deux paragraphes (choix de Louise, 01/11/2026) */
.rich-text p + ul,
.rich-text p + ol { margin-top: 0; }   /* même écart qu'entre deux lignes d'un paragraphe */
/* Listes : puces en étoile ❋ (choix de Louise), listes numérotées 1. 2. 3. */
.rich-text ul,
.rich-text ol { padding: 0 0 0 1.4em; margin: 0; }
.rich-text ul { list-style: none; }
.rich-text ul > li { position: relative; }
.rich-text ul > li::before {
  content: "";
  position: absolute;
  left: -1.4em;
  top: calc((1lh - 0.8em) / 2);
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  mask: url("/assets/icons/star.svg") center / contain no-repeat;
}
.rich-text ol { list-style: decimal; }
.rich-text a { color: var(--color-purple); }

/* Lien « Voir le projet en ligne » : sous l'introduction, en gras, sans soulignement (choix de Louise, 26/10/2026) */
.project__link a {
  color: var(--color-purple);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 1024px) {
  /* En-tête fixe des pages projet, compact comme celui de Pinterest (choix de Louise, 31/10/2026) :
     80px de haut, icônes 24px espacées de 24px. */
  .site-header { padding: 20px 32px; }
  .site-header .contact-links { gap: 0; margin: -12px; }
  .site-header .icon-link img { width: 24px; height: 24px; }
  .site-header__actions { gap: 24px; }

  /* Page projet aérée (choix de Louise, 26/10/2026) : marges latérales réduites, colonne de texte
     plus large (40 % de la page, 420 à 600px) et écart texte / images qui grandit avec l'écran. */
  .project {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(56px, 6vw, 96px);
    padding: 32px 32px 64px;
  }
  .project__text {
    flex: 0 0 clamp(420px, 40%, 600px);
    gap: 96px;              /* parties bien séparées : bien plus d'espace qu'entre deux paragraphes (01/11/2026) */
    font-size: 18px;
  }
  .project__intro { gap: var(--sp-m); }
  .project__title { font-weight: 600; font-size: 36px; letter-spacing: -0.8px; }   /* +4px (choix de Louise, 26/10/2026) */
  .tag-list { margin-top: calc(12px - var(--sp-m)); }
  .project-section + .project-section { margin-top: 0; }   /* 96px entre les parties */
  .project__gallery { flex: 1 1 auto; min-width: 0; }

  /* La colonne la plus courte reste à l'écran pendant que l'autre défile (js/project-sticky.js) */
  .project__text,
  .project__gallery {
    position: sticky;
    top: var(--stick-top, 32px);
    align-self: flex-start;
  }
}

/* ---------- Page 404 : centrée, avec l'étoile ❋ et un bouton de retour ---------- */
.page-not-found { min-height: 100vh; display: flex; flex-direction: column; }
.page-not-found .site-header { width: 100%; }

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 16px 96px;
  text-align: center;
}

.not-found__star { width: 32px; height: 32px; }
.not-found__content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.not-found__content[hidden] { display: none; }

.not-found__title {
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.not-found__text { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--color-grey); }

.not-found__button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  padding-inline: 24px;
  border-radius: 12px;
  background: var(--color-lila);
  color: var(--color-purple);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.not-found__button:focus-visible { outline-offset: 4px; }


@media (min-width: 1024px) {
  .not-found__title { font-size: 40px; }
  .not-found__text { font-size: 18px; }
}

/* ---------- Pied de page : © + mentions légales, discret (choix de Louise, 01/11/2026) ---------- */
.site-footer {
  padding: 40px 16px 32px;
  text-align: center;
  font-size: 13px;
  color: #636363;         /* gris du site ; #7D7D7D essayé puis écarté pour le contraste (choix de Louise, 01/11/2026) */
}
.site-footer a { color: inherit; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--color-black); }

/* ---------- Mentions légales : une colonne de lecture centrée ---------- */
.legal {
  max-width: 680px;
  margin-inline: auto;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}
.legal__title { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.4px; color: var(--color-black); }
.legal__section { display: flex; flex-direction: column; gap: 8px; }
.legal__section h2 { font-size: 18px; font-weight: 600; color: var(--color-black); }
.legal a { color: var(--color-purple); overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .legal { padding-top: 64px; font-size: 18px; }
  .legal__title { font-size: 40px; letter-spacing: -0.6px; }
}

/* Moins d'animations demandées par l'utilisateur : les effets apparaissent sans transition */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Page projet : fiche « En bref » (cadre, rôle = tags, équipe, durée, outils) ----------
   Une ligne par info : intitulé dans une colonne fixe à gauche, comme les numéros de section. */
.project-brief { display: flex; flex-direction: column; gap: 10px; margin-block: 4px 8px; }
.project-brief__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.project-brief dt { font-size: 14px; color: #636363; }
.project-brief dd { margin: 0; line-height: 1.4; white-space: pre-line; }   /* texte normal ; un retour à la ligne dans l'admin = une ligne */
.project-brief .tag-list { margin: 0; }

/* ---------- Page projet : bouton « Visiter le site », juste sous la fiche « En bref » ----------
   Même taille qu'un tag, couleurs inversées : fond violet, texte lila (choix de Louise, 01/11/2026). */
.project__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.project__visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--color-purple);
  color: var(--color-lila);
  font: var(--text-tag);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
/* Survol : les couleurs s'inversent, pour montrer que le bouton est cliquable (choix de Louise, 02/11/2026) */
@media (hover: hover) {
  .project__visit:hover { background: var(--color-lila); color: var(--color-purple); }
}
.project__visit:focus-visible { outline: 2px solid var(--color-purple); outline-offset: 3px; }

/* ---------- Page projet : projet précédent / suivant (bas de page) ---------- */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1440px;
  margin: 56px auto 0;
  padding: 0 16px 48px;
}
.project-nav__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
}
.project-nav__link--next { grid-column: 2; justify-content: flex-end; text-align: right; }
.project-nav__thumb { flex: 0 0 120px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--color-placeholder); }
.project-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-nav__label { display: block; margin-bottom: 4px; font-size: 14px; color: #636363; }
.project-nav__title { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
@media (hover: hover) { .project-nav__link:hover { background: var(--color-placeholder); } }
@media (max-width: 767px) {
  .project-nav { grid-template-columns: 1fr; gap: 4px; }
  .project-nav__link--next { grid-column: auto; }
  .project-nav__thumb { flex-basis: 88px; }
  .project-nav__title { font-size: 18px; }
}
@media (min-width: 1024px) { .project-nav { padding-inline: 32px; margin-top: 96px; } }
