/* Emi Style — styles.css
   Écrit pour ce site. Typographie : Archivo (display et interface), EB Garamond (texte courant).
   Pour passer plus tard sur une DIN ou une Cochin sous licence, ne changez que
   --font-display et --font-serif ci-dessous. */

/* ------------------------------------------------------------------ tokens */

:root {
  --black: #000;
  --white: #fff;
  --grey: #a8a8a8;
  --grey-line: #e2e2e2;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "EB Garamond", "Times New Roman", Times, serif;

  --nav-h: 64px;
  --gutter: 24px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

@media (min-width: 1200px) {
  :root { --nav-h: 52px; --gutter: 24px; }
}

/* ------------------------------------------------------------------- reset */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--black); color: var(--white); }

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

.skip {
  position: absolute; top: -100px; left: 8px; z-index: 200;
  background: var(--black); color: var(--white); padding: 10px 16px;
  font-family: var(--font-ui); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
}
.skip:focus { top: 8px; }

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

/* -------------------------------------------------------------- typographie */

.title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--black);
}

/* .88 plutôt que .8 : en français, les capitales accentuées (É, À, Ê)
   se percutent d'une ligne à l'autre en dessous de cette valeur. */

.title--header  { font-size: clamp(3.25rem, 12vw, 12rem); line-height: .86; }
.title--hero    { font-size: clamp(1.9rem, 4vw, 4.25rem); }
.title--article { font-size: clamp(2rem, 5vw, 5.25rem); }
.title--card    { font-size: clamp(1.6rem, 2.1vw, 2.4rem); }
.title--section { font-size: clamp(1.5rem, 2.4vw, 2.75rem); }

.title--white { color: var(--white); }
.title--grey  { color: var(--grey); }

.title--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--black);
}
.title--outline.title--white { -webkit-text-stroke-color: var(--white); }

.paragraph, .prose p, .prose li {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  word-break: break-word;
}

.paragraph--intro, .prose .intro {
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  line-height: 1.2;
  text-align: left;
  hyphens: none;
}

.text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.25;
}
.text--white { color: var(--white); }
.text--grey  { color: var(--grey); }

.label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label--white { color: var(--white); }
.label--grey  { color: var(--grey); }

.link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: opacity .25s var(--ease);
}
.link:hover { opacity: .5; }
.link--small { font-size: .8125rem; }
.link--white { color: var(--white); }

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.15vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.cta-label {
  font-family: var(--font-serif);
  font-size: 1rem;
}
.cta-label--fat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6.4vw, 6.25rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: .08em;
}
.cta-label--white { color: var(--white); }

/* ------------------------------------------------------------------ layout */

.content {
  min-height: 60vh;
  padding-top: var(--nav-h);
}
.content--hero { padding-top: 0; }

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 768px) { .wrap { padding-left: 64px; padding-right: 64px; } }
@media (min-width: 1440px) { .wrap { padding-left: 96px; padding-right: 96px; } }

.rule { border: 0; border-top: 1px solid var(--grey-line); margin: 0; }

/* -------------------------------------------------------------- navigation */

.navigation {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  padding: 18px var(--gutter);
  color: var(--white);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.navigation.has-background {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-line);
}
@media (min-width: 768px) { .navigation { padding: 18px 24px; } }
@media (min-width: 1200px) {
  .navigation { display: flex; align-items: center; height: var(--nav-h); padding: 0 24px; }
}

.navigation__desktop { display: none; }
@media (min-width: 1200px) {
  .navigation__desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

.navigation__link {
  position: relative;
  transition: opacity .3s var(--ease);
}
.navigation__link::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.navigation__link:hover::before,
.navigation__link.is-current::before { transform: scaleX(1); }

.navigation__mobile { position: relative; z-index: 3; display: flex; align-items: center; }
@media (min-width: 1200px) { .navigation__mobile { display: none; } }

.navigation__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* burger */

.burger-button {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px; height: 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
@media (min-width: 1200px) { .burger-button { display: none; } }

.burger-button__bar {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s linear;
}
/* :nth-of-type(2) et (3) : le premier <span> du bouton est le libellé lecteur d'écran */
.burger-button.is-open .burger-button__bar:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
.burger-button.is-open .burger-button__bar:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }

.burger-menu {
  position: fixed;
  top: 0; left: 0;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100dvh;
  padding: calc(var(--nav-h) + 16px) 24px 40px;
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
  transform: translate3d(100%, 0, 0);
  transition: transform .5s var(--ease);
}
.burger-menu.is-open { transform: translate3d(0, 0, 0); }
.burger-menu .nav-link { font-size: clamp(1.75rem, 8vw, 2.5rem); text-align: center; }
@media (min-width: 1200px) { .burger-menu { display: none; } }

/* ------------------------------------------------------------------- héros */

.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  max-height: 900px;
  background: #d8d6d2;
  overflow: hidden;
}
@media (min-width: 1200px) { .hero { height: 92vh; } }

.hero__wordmark {
  display: none;
  position: absolute;
  top: 58px; left: 0;
  z-index: 3;
  width: 100%;
  padding: 0 24px;
  font-size: clamp(4rem, 12.6vw, 13rem);
  line-height: .8;
  color: var(--white);
  text-align: center;
  pointer-events: none;
}
@media (min-width: 1200px) { .hero__wordmark { display: block; } }

/* carrousel */

.slider { position: absolute; inset: 0; }
.slider__track { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 72px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide__bg { position: absolute; inset: -8% 0; z-index: 1; will-change: transform; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.slide__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.45));
}

.slide__infos {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 76%;
  margin: 0 auto;
  text-align: center;
  transform: translateY(0);
}
@media (min-width: 1200px) {
  .slide__infos { max-width: 58%; }
  /* laisse la place au grand logotype posé en haut du héros */
  .slide { padding-top: calc(72px + 11vw); }
}

.slide__kicker { margin-bottom: 14px; opacity: .85; }
.slide__excerpt { max-width: 44ch; margin: 14px auto 0; }

.slide__plus,
.banner__plus {
  display: block;
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--white);
  transition: transform .4s var(--ease);
}
.slide__infos:hover .slide__plus,
.banner__infos:hover .banner__plus { transform: rotate(90deg); }

.controls {
  position: absolute;
  top: 50%; left: 0;
  z-index: 3;
  display: flex; justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (min-width: 768px) { .controls { padding: 0 24px; } }
.controls__button { pointer-events: auto; color: var(--white); opacity: .8; transition: opacity .25s var(--ease); }
.controls__button:hover { opacity: 1; }
.controls__icon { width: 30px; height: 30px; }
.controls__icon--prev { transform: rotate(180deg); }

.dots {
  position: absolute;
  bottom: 28px; left: 50%;
  z-index: 3;
  display: flex; gap: 10px;
  transform: translateX(-50%);
}
.dots__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  opacity: .3;
  transition: opacity .3s var(--ease);
}
.dots__dot.is-active, .dots__dot:hover { opacity: 1; }

/* ------------------------------------------------------------------ cartes */

.card-list {
  display: flex;
  flex-wrap: wrap;
  margin: 56px 0 0;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { .card-list { padding: 0 12px; } }

.card {
  width: 100%;
  margin-bottom: 60px;
}
@media (min-width: 768px)  { .card { width: 50%; padding: 0 12px; } }
@media (min-width: 1200px) { .card { width: 25%; } }

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ece9e5;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card__link:hover .card__media img { transform: scale(1.04); }

.card__kicker { margin: 16px 0 8px; color: var(--grey); }
.card__sep { margin: 0 .5em; }

.card__link h3 {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease);
  display: inline;
}
.card__link:hover h3 { background-size: 100% 1px; }

.card__excerpt { margin-top: 10px; color: #333; }

/* ------------------------------------------------------------------ bandeau */

.banner {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%;
  height: 64vh;
  min-height: 460px;
  overflow: hidden;
  background: #cfccc8;
}
@media (min-width: 1200px) { .banner { height: 86vh; } }

.banner__bg { position: absolute; inset: -8% 0; z-index: 1; will-change: transform; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); }

.banner__infos {
  position: relative; z-index: 2;
  display: block;
  max-width: 76%;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1200px) { .banner__infos { max-width: 60%; } }
.banner__excerpt { max-width: 46ch; margin: 14px auto 0; }
.banner .title--hero { font-size: clamp(1.75rem, 3.6vw, 3.75rem); }

/* --------------------------------------------------------- « charger plus » */

.more {
  display: flex; justify-content: center;
  margin: 24px 0 100px;
}
@media (min-width: 1200px) { .more { margin: 40px 0 160px; } }
.more__button { text-align: center; transition: opacity .3s var(--ease); }
.more__button:hover { opacity: .55; }
.more__button[hidden] { display: none; }

/* --------------------------------------------------- en-tête de rubrique/page */

.page-header {
  padding: 40px var(--gutter) 0;
}
@media (min-width: 768px) { .page-header { padding: 48px 24px 0; } }

.page-header__title { margin-top: 12px; }

.page-header__intro {
  max-width: 46ch;
  margin-top: 26px;
  color: #2a2a2a;
}

.crumbs { margin-bottom: 8px; }
.crumbs a { transition: opacity .25s var(--ease); }
.crumbs a:hover { opacity: .5; }
.crumbs__sep { margin: 0 .6em; }

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

.article { padding-top: 40px; }
@media (min-width: 768px) { .article { padding-top: 48px; } }

.article__head { padding: 0 var(--gutter); }
@media (min-width: 768px) { .article__head { padding: 0 24px; } }

.article__standfirst {
  max-width: 42ch;
  margin-top: 28px;
}

.article__byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: baseline;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--grey-line);
  color: var(--grey);
}
.article__byline strong { color: var(--black); font-weight: 600; }

.article__cover {
  position: relative;
  margin: 40px 0 0;
  background: #ece9e5;
}
.article__cover img {
  width: 100%;
  height: 58vh;
  min-height: 320px;
  object-fit: cover;
}
@media (min-width: 1200px) { .article__cover img { height: 74vh; } }
.article__caption {
  padding: 10px var(--gutter) 0;
  color: var(--grey);
}
@media (min-width: 768px) { .article__caption { padding: 10px 24px 0; } }

.prose {
  max-width: 36rem;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { .prose { margin-top: 72px; } }

.prose p + p { margin-top: 1.4em; }

.prose h2 {
  margin: 2.4em 0 .8em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prose blockquote {
  margin: 2.2em 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-align: left;
}

.prose ul { margin: 1.4em 0; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .6em; }
.prose a { text-decoration: underline; text-underline-offset: .18em; transition: opacity .25s var(--ease); }
.prose a:hover { opacity: .55; }

.figure { margin: 56px 0; }
.figure img { width: 100%; }
.figure figcaption {
  padding: 10px var(--gutter) 0;
  color: var(--grey);
}
@media (min-width: 768px) { .figure figcaption { padding: 10px 24px 0; } }

.figure--duo {
  display: grid;
  gap: 12px;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) {
  .figure--duo { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .figure--duo figcaption { padding: 10px 0 0; }
}

.sources {
  max-width: 36rem;
  margin: 64px auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid var(--grey-line);
}
.sources h2 { margin-bottom: 12px; }
.sources ol { list-style: decimal; padding-left: 1.2em; }
.sources li { font-family: var(--font-serif); font-size: .95rem; line-height: 1.5; }
.sources a { text-decoration: underline; text-underline-offset: .18em; }

.credits {
  max-width: 36rem;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
}
.credits dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 12px 0 0; }
.credits dt { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.credits dd { margin: 0; font-family: var(--font-serif); }

.related { margin-top: 96px; }
.related__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter) 18px; border-bottom: 1px solid var(--grey-line); }
@media (min-width: 768px) { .related__head { padding: 0 24px 18px; } }
.related .card-list { margin-top: 40px; }

/* --------------------------------------------------------------- page texte */

.page { max-width: 40rem; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.page .prose { padding: 0; margin-top: 48px; }

/* ------------------------------------------------------- bloc noir de clôture */

.closing {
  position: relative;
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 40px 24px 32px;
}
@media (min-width: 768px) { .closing { min-height: 62vh; } }
@media (min-width: 1200px) { .closing { min-height: 76vh; } }

.closing__row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  min-height: inherit;
  height: 100%;
}
@media (min-width: 768px) { .closing__row { min-height: calc(62vh - 72px); } }
@media (min-width: 1200px) { .closing__row { min-height: calc(76vh - 72px); } }

.closing__links { display: flex; justify-content: space-between; }
.closing__col { display: flex; flex-direction: column; }
.closing__col--right { align-items: flex-end; }

.closing__center { display: flex; flex: 1; align-items: center; justify-content: center; }
.closing__cta { max-width: 1240px; text-align: center; word-break: break-word; }
.closing__cta:hover .cta-label--fat { opacity: .6; }
.closing__cta .cta-label--fat { transition: opacity .3s var(--ease); }

.closing__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.closing__logo { color: var(--white); font-size: 2.25rem; line-height: .8; }
.closing__legal { opacity: .5; }

/* ------------------------------------------------------- apparition au scroll */

/* Sans JavaScript, rien n'est masqué : la règle n'est armée que si app.js
   a posé la classe .js sur <html>. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide { transition: none; }
}

/* ------------------------------------------------------------------ impression */

@media print {
  .navigation, .burger-menu, .closing, .controls, .dots, .related, .more { display: none !important; }
  .content { padding-top: 0; }
  .prose { max-width: none; }
  a { text-decoration: none; }
}

/* conteneur utilisé par « charger la suite » : reprend la largeur d'une carte */
.card-wrap { width: 100%; }
@media (min-width: 768px)  { .card-wrap { width: 50%; padding: 0 12px; } }
@media (min-width: 1200px) { .card-wrap { width: 25%; } }
.card-wrap .card { width: 100%; padding: 0; }

.more[hidden] { display: none; }

/* Accueil : sections par rubrique */
.home-cat{margin:5rem 0 2rem}
.home-cat__head{margin:0 auto 2rem;max-width:1520px;padding:0 2rem}
.home-cat__head .label{margin-bottom:.4rem}
.title--section{font-size:clamp(2rem,4vw,3.4rem);line-height:.95;text-transform:uppercase;letter-spacing:-.02em}
.home-cat__link{text-decoration:none;color:inherit}
.home-cat__link:hover{opacity:.6}
a.more__button{display:inline-block;text-decoration:none}
