/* Styles communs : composants génériques, puis adaptations par largeur. */

@font-face {
  font-family: ContentSans;
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Palette */

:root {
  --color-accent: #f46b20;
  --color-text: #30343a;
  --color-heading: #101e31;
  --color-surface: #f8f8f6;
  --color-muted: #657081;
  --color-border: #dcdedc;
  --color-link: #a9420d;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
}

body {
  margin: 0;
}

img {
  max-width: 100%;
}

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

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}

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

/* En-tête et navigation */

.page-header {
  background: #fff;
  border-bottom: 1px solid #e3e5e6;
}

.header-layout {
  width: min(calc(100% - 9vw),1640px);
  min-height: 91px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-shrink: 1;
}

.brand-link img {
  display: block;
  width: min(330px,100%);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.page-header nav {
  display: flex;
  align-items: center;
  gap: clamp(17px,2.5vw,43px);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.page-header nav a {
  padding: 14px 0 11px;
  border-bottom: 2px solid transparent;
}

.page-header nav a:hover,
.page-header nav a[aria-current] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Introduction */

.intro-section {
  background: var(--color-surface);
}

.intro-layout {
  width: min(calc(100% - 9vw),1640px);
  margin: auto;
  padding-block: clamp(48px,4vw,72px) clamp(40px,3.5vw,64px);
  display: grid;
  grid-template-columns: minmax(0,0.93fr) minmax(0,1.18fr);
  gap: clamp(20px,2.6vw,46px);
  align-items: end;
}

.intro-content {
  min-width: 0;
  max-width: 100%;
}

.overline {
  letter-spacing: .25em;
  font-weight: 750;
  font-size: clamp(10px,.8vw,12px);
  color: #66758a;
  margin: 0 0 28px;
  white-space: normal;
}

.overline span {
  color: var(--color-accent);
  margin: 0 7px;
}

.intro-title {
  font-size: clamp(39px,3.65vw,70px);
  letter-spacing: -.055em;
  line-height: 1.075;
  font-weight: 600;
  margin: 0 0 22px;
  color: var(--color-heading);
}

.intro-title-accent {
  font-style: normal;
  color: #f45116;
}

.intro-text {
  max-width: 100%;
  font-size: clamp(15px,1.02vw,17px);
  line-height: 1.55;
  color: #516077;
  margin: 0 0 33px;
}

.action-group {
  display: flex;
  gap: clamp(12px,1.5vw,24px);
  align-items: center;
  flex-wrap: wrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: #fa4d10;
  color: white;
  border-radius: 8px;
  padding: 16px 21px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 5px 12px #f46b2024;
  white-space: nowrap;
}

.button-primary:hover {
  background: #dc4510;
}

.button-primary span {
  font-size: 20px;
}

.link-secondary {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #a9b0b9;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.link-secondary span {
  color: var(--color-accent);
  margin-left: 9px;
  font-size: 19px;
}

/* Photographie et encart */

.media-frame {
  position: relative;
  min-width: 0;
  align-self: end;
  width: 100%;
  max-width: 890px;
  justify-self: end;
}

.media-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.feature-card {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: min(267px,80%);
  padding: 14px 16px 14px 19px;
  border-left: 3px solid var(--color-accent);
  background: rgba(248,248,246,.89);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 14px #26334812;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 4px;
}

.feature-card-label {
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 800;
  color: #627187;
}

.feature-card-title {
  font-size: 24px;
  letter-spacing: -.035em;
  color: var(--color-heading);
}

.feature-card-description {
  font-size: 12px;
  color: #59667b;
}

.feature-card-status {
  font-size: 11px;
  color: #5b6472;
  margin-top: 4px;
}

.feature-card-arrow {
  color: var(--color-accent);
  font-size: 16px;
  margin-left: 5px;
}

.content-section,
.page-footer {
  font-family: ContentSans,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: min(calc(100% - 9vw),1640px);
  margin-inline: auto;
}

.content-section h2,
.content-section h3,
.content-section h4,
.content-section p,
.page-footer p {
  margin-top: 0;
}

.content-section .overline {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .21em;
  margin: 0 0 23px;
  color: var(--color-muted);
}

.content-section a:hover,
.page-footer a:hover {
  color: var(--color-link);
}

/* Rubriques */

.content-section {
  padding-top: 16px;
  padding-bottom: 36px;
}

.section-heading {
  max-width: 780px;
}

.section-heading .overline {
  margin-bottom: 13px;
  padding-top: 20px;
  position: relative;
}

.section-heading .overline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.section-heading h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 450;
  letter-spacing: -.04em;
  margin-bottom: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 26px;
  margin-top: 25px;
}

.content-card {
  border: 1px solid #e2e3e3;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 15px rgba(48,52,58,.04);
  scroll-margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.card-image {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.card-body {
  padding: 21px 21px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.card-label .overline {
  margin: 0;
  font-size: 9px;
  letter-spacing: .16em;
}

.content-card h3 {
  font-size: 23px;
  letter-spacing: -.03em;
  font-weight: 450;
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-body > p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 22px;
}

.content-card strong {
  font-weight: 600;
  color: var(--color-text);
}

.card-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--color-border);
  padding-top: 17px;
  margin-top: auto;
}

.detail-label {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 7px;
}

.card-detail h4 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 3px;
}

.card-detail p,
.card-note p {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 0;
}

.link-icon {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c7cbc8;
  border-radius: 50%;
  font-size: 22px;
  color: var(--color-link);
}

.link-icon:hover {
  border-color: var(--color-accent);
  background: #f4ede7;
}

.card-note {
  border-top: 1px solid var(--color-border);
  padding-top: 17px;
  margin-top: auto;
}

/* Pied de page */

.page-footer {
  border-top: 1px solid var(--color-border);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 28px;
}

.footer-brand {
  font-size: 24px;
  letter-spacing: -.065em;
  line-height: 1;
  font-weight: 550;
}

.footer-brand span {
  color: var(--color-link);
}

.footer-layout p {
  font-size: 10px;
  color: var(--color-muted);
  margin: 9px 0 0;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 11px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Pages de texte et navigation au clavier */

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 10;
  padding: 10px 16px;
  background: #fff;
  color: var(--color-link);
  transform: translateY(-200%);
}

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

.document-page {
  max-width: 960px;
  padding-block: 52px 44px;
  font-family: ContentSans,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.document-heading h1,
.article-body h1 {
  margin: 0 0 20px;
  color: var(--color-heading);
  font-size: clamp(32px,4vw,52px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.document-heading .overline {
  margin-bottom: 18px;
}

.document-lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--color-heading);
  margin: 0 0 24px;
}

.document-intro {
  color: var(--color-muted);
  margin-bottom: 28px;
}

.document-page a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.document-page a:hover {
  text-decoration-thickness: 2px;
}

/* Socle commun des encarts à liseré orange */

.article-share,
.rss-follow,
.entry-card {
  border: 1px solid var(--color-border);
}

.document-notice,
.article-share,
.rss-follow,
.entry-card {
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  background: #fff;
}

.document-notice {
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 14px;
}

.document-notice p {
  margin: 0;
}

.document-notice p + p {
  margin-top: 8px;
}

.document-summary {
  border-block: 1px solid var(--color-border);
  padding-block: 24px;
  margin-bottom: 36px;
}

.document-summary h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.document-summary ol {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.document-body section {
  margin-bottom: 34px;
  scroll-margin-top: 24px;
}

.document-body h2 {
  color: var(--color-heading);
  font-size: clamp(22px,2.3vw,27px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}

.document-body p {
  margin: 0 0 18px;
}

.document-back {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin: 0;
  font-size: 14px;
}

/* Page d’entrée des espaces éditoriaux */

.editorial-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-bottom: 36px;
}

.editorial-grid h2 {
  font-size: clamp(23px,2.4vw,30px);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  color: var(--color-heading);
}

.editorial-grid .card-body > p {
  font-size: 16px;
}

@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Images et accès aux listes d’articles */

.listing-image {
  display: block;
  width: 100%;
  height: clamp(130px,18vw,220px);
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 28px;
}

.editorial-grid .card-body > .card-access {
  margin: 18px 0 0;
  line-height: 1.5;
}

/* Publications issues du Markdown */

.article-body > h1 + p {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.article-body h2 {
  margin-top: 36px;
}

.article-body li {
  margin-bottom: 16px;
}

.article-body p:has(> .article-visual:only-child) {
  max-width: 100%;
  margin-block: 28px;
}

.article-visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.article-dates {
  font-size: 14px;
  color: var(--color-muted);
}

/* Partage et suivi des articles */

.article-share,
.rss-follow {
  padding: 24px 26px;
}

.article-share {
  margin: 36px 0 24px;
}

.rss-follow {
  margin-bottom: 36px;
}

.article-share h2,
.rss-follow h2 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 21px;
  font-weight: 550;
  line-height: 1.35;
}

.article-share p,
.rss-follow p {
  margin: 0 0 14px;
}

.article-share p:last-child,
.rss-follow p:last-child {
  margin-bottom: 0;
}

.share-permalink {
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-size: 14px;
}

.share-permalink span {
  color: var(--color-text);
  font-weight: 600;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.document-page .share-action,
.share-action {
  appearance: none;
  border: 1px solid #c9cccf;
  border-radius: 4px;
  background: #fff;
  color: var(--color-link);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 14px;
  text-decoration: none;
}

.share-action:hover {
  border-color: var(--color-accent);
  background: #fff8f4;
}

.share-action:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.share-feedback {
  min-height: 1.5em;
  color: var(--color-muted);
  font-size: 14px;
}

.rss-link {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rss-link:hover {
  text-decoration-thickness: 2px;
}

.publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publication-list > li {
  border-block: 1px solid var(--color-border);
  padding-block: 24px;
}

.publication-list h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.publication-subtitle {
  font-style: italic;
}

.publication-list li > p:last-child {
  margin-bottom: 0;
}

/* Captures de l'interface */

.interface-preview {
  margin-bottom: 36px;
  scroll-margin-top: 24px;
}

.interface-preview h2 {
  color: var(--color-heading);
  font-size: clamp(22px,2.3vw,27px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}

.interface-note {
  color: var(--color-muted);
  font-size: 14px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-block: 24px;
}

.screenshot-grid figure {
  margin: 0;
  min-width: 0;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  max-width: 534px;
  margin-inline: auto;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.screenshot-grid figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .screenshot-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .article-share,
  .rss-follow {
    padding: 20px 18px;
  }

  .share-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share-action {
    width: 100%;
    text-align: center;
  }
}

/* Listes de réalisations */

.listing-page {
  max-width: 1180px;
  padding-block: 52px 52px;
  font-family: ContentSans,Arial,sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.listing-intro {
  max-width: 820px;
  margin-bottom: 36px;
}

.listing-intro p {
  margin: 0 0 16px;
}

.entry-card {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 40px;
  padding: 32px;
}

.entry-heading .detail-label {
  margin: 0 0 12px;
}

.entry-heading h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--color-heading);
}

.entry-subtitle {
  margin: 0;
  font-weight: 550;
  line-height: 1.5;
}

.entry-body > p {
  margin: 0 0 20px;
}

.entry-status {
  color: var(--color-muted);
  font-size: 14px;
  font-style: italic;
}

.entry-link {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-link:hover {
  text-decoration-thickness: 2px;
}

/* Retour optionnel aux coins droits */

.photo-square .media-image {
  border-radius: 0;
}

@media (min-width: 701px) and (max-width: 1919px) {

  .media-frame {
    justify-self: start;
  }

}

@media (max-width: 1220px) {

  .intro-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 40px;
    padding-block: 44px 40px;
  }

  .intro-content {
    max-width: 700px;
  }

  .media-frame {
    width: min(100%,890px);
  }

  .intro-title {
    font-size: clamp(44px,5vw,66px);
  }

  .intro-text {
    max-width: 650px;
  }

  .action-group {
    gap: 24px;
  }

}

@media (max-width: 1050px) and (min-width: 761px) {

  .card-grid {
    gap: 18px;
  }

  .card-body {
    padding: 17px;
  }

  .content-card h3 {
    font-size: 20px;
  }

}

@media (max-width: 760px) {

  .container {
    width: calc(100% - 40px);
  }

  .section-heading h2 {
    font-size: 26px;
    margin-bottom: 17px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 25px;
  }

  .card-image {
    height: 100px;
  }

  .content-card h3 {
    font-size: 22px;
  }

  .card-body > p {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 11px;
  }

}

@media (max-width: 700px) {

  .listing-page {
    padding-block: 32px;
  }

  .entry-card {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    padding: 24px;
  }


  .document-page {
    padding-block: 32px;
  }

  .document-summary ol {
    grid-template-columns: 1fr;
  }

  .document-notice {
    padding: 16px 18px;
  }


  .header-layout {
    width: calc(100% - 36px);
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 0;
  }

  .brand-link img {
    width: 250px;
  }

  .page-header nav {
    gap: 30px;
    font-size: 14px;
  }

  .page-header nav a {
    padding: 8px 0;
  }

  .intro-layout {
    width: 100%;
    padding-inline: 0;
    gap: 30px;
    padding-block: 32px 28px;
  }

  .intro-content {
    padding-inline: 22px;
  }

  .overline {
    font-size: 10px;
    letter-spacing: .17em;
    margin-bottom: 20px;
  }

  .intro-title {
    font-size: clamp(27px,7.3vw,43px);
    letter-spacing: -.047em;
    margin-bottom: 20px;
  }

  .intro-title br {
    display: inline;
  }

  .intro-text {
    font-size: 16px;
  }

  .action-group {
    gap: 20px;
  }

  .media-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .media-image {
    width: calc(100% - 40px);
    margin-inline: 20px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
  }

  .feature-card {
    position: relative;
    bottom: auto;
    right: auto;
    width: auto;
    margin: 20px 22px 0;
    box-shadow: none;
    background: #fff;
  }

  .button-primary {
    padding: 14px 16px;
  }

  .content-section {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .photo-square .media-image {
    border-radius: 0;
  }

}

@media (max-width: 380px) {

  .intro-title {
    font-size: clamp(24px,7vw,29px);
  }

  .overline {
    letter-spacing: .1em;
  }

}
