/* ==========================================================================
   DB Promédia — feuille de style
   Maquette de référence : 1920 px de large. Les valeurs fluides (vw) sont
   calibrées pour retomber exactement sur la maquette à 1920 px.
   ========================================================================== */

/* Polices auto-hébergées (licences OFL dans assets/fonts/)
   - IBM Plex Sans : texte courant
   - Michroma : titres (équivalent Google Fonts de Sui Generis, Typodermic) */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #091c4f;
  --navy-deep: #06153e;
  --black: #000;
  --blue: #4c9fd8;
  --cream: #f5f3b8;
  --white: #fff;
  --error: #ff9b9b;

  --wrap-max: 1920px;
  --gutter: clamp(20px, 5.2083vw, 100px);
  --space-section: clamp(80px, 7.8125vw, 150px);
  --header-h: 81px;

  --fs-display: clamp(2.625rem, 5.2083vw, 6.25rem);   /* 100px */
  --fs-lead: clamp(1.25rem, 2.6042vw, 3.125rem);      /* 50px */

  /* Titres en Michroma : ~40 % plus large que Plex à taille égale, d'où des
     tailles réduites pour garder l'encombrement de la maquette */
  --fs-title-display: clamp(2.125rem, 4.1667vw, 5rem);  /* 80px : h1, contact */
  --fs-title-section: clamp(2rem, 3.3333vw, 4rem);     /* 64px : titres de section */
  --fs-title-card: clamp(1.25rem, 1.4167vw, 1.7rem);    /* 27px : projets, services */

  --lh-text: 1.5; /* interlignage des paragraphes de texte courant */

  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Michroma", "IBM Plex Sans", system-ui, sans-serif;

  /* Métriques de la police courante, pour .trim : hauteur des capitales et
     (ascendante - descendante) / 2, en em. Valeurs IBM Plex Sans. */
  --cap: .698;
  --half-ad: .375;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: normal; /* 1.3 avec IBM Plex Sans, comme la maquette */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

/* Titres : Michroma (une seule graisse) */
h1,
h2,
h3 {
  --cap: .75;
  --half-ad: .4453;
  font-family: var(--font-title);
  font-weight: 400;
  font-synthesis: none;
}

:where(.projects, .services__list, .site-footer__social) {
  list-style: none;
  padding: 0;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Rognage typographique « hauteur de capitale → ligne de base » (équivalent
   du text-box-trim de Figma), par marges négatives calculées sur les
   métriques de la police (--cap, --half-ad). --lh = interlignage sans unité. */
.trim {
  --lh: 1;
  line-height: var(--lh);
  margin-top: calc((var(--cap) - var(--half-ad) - var(--lh) / 2) * 1em);
  margin-bottom: calc((var(--half-ad) - var(--lh) / 2) * 1em);
}

/* Apparition des sections au défilement (fondu + glissement), section par
   section. Uniquement avec JavaScript et si l'animation est acceptée. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }

  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* Composants partagés
   ========================================================================== */

/* Libellé « REC » précédé d'une pastille */
.rec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: normal;
}

.rec::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: center / contain no-repeat;
}

.rec--blue::before {
  background-image: url("../img/dot-blue.svg");
}

.rec--blue-alt::before {
  background-image: url("../img/dot-blue-alt.svg");
}

.rec--grey::before {
  background-image: url("../img/dot-grey.svg");
}

/* Lien avec flèche (VOIR LA VIDÉO, ENVOYER…) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
}

.link-arrow::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("../img/arrow-circle.svg") center / contain no-repeat;
  transition: transform .25s var(--ease);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(4px);
}

/* Bloc de titre de section (REC · 00X + titre) */
.section-title {
  margin-top: 20px;
  font-size: var(--fs-title-section);
  line-height: .625; /* 80px / 50px dans la maquette */
}

/* Icône lecture */
.play {
  transition: transform .3s var(--ease);
}

/* En-tête
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-h);
  padding-left: clamp(20px, 6.0417vw, 116px);
  padding-right: clamp(20px, 9.5833vw, 184px);
}

.site-header__logo {
  margin-top: 25px;
}

.site-header__logo img {
  width: clamp(200px, 16.25vw, 312px);
  height: auto;
}

.site-nav {
  margin-top: 30px;
}

.site-nav__list {
  display: flex;
  gap: clamp(40px, 5.2083vw, 100px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: normal;
  text-transform: uppercase;
}

.site-nav__list a {
  text-decoration: none;
  transition: color .2s;
}

.site-nav__list a:hover {
  color: var(--blue);
}

.site-nav__toggle {
  display: none;
}

/* Introduction : bande vidéo
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(25px - var(--header-h));
  padding-inline: clamp(8px, 1.6146vw, 31px) clamp(8px, 1.5625vw, 30px);
}

.hero__frame {
  position: relative;
  overflow: hidden;
  /* width explicite : sinon max-height, transféré par aspect-ratio, réduit la
     largeur et laisse un vide à droite sur les écrans peu hauts */
  width: 100%;
  aspect-ratio: 1859 / 987;
  max-height: max(560px, 100svh - 68px);
  border-radius: 20px;
  background: var(--navy-deep);
}

.hero__frame picture {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vidéo d'ambiance muette, par-dessus l'image fixe une fois la lecture lancée */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}

.hero__video.is-playing {
  opacity: 1;
}

/* Avec JavaScript, toute la bande est cliquable (ouvre la vidéo avec le son) */
.js .hero__frame {
  cursor: pointer;
}

.hero__play {
  position: absolute;
  top: 48.99%;
  left: 50%;
  padding: 24px;
  transform: translate(-50%, -50%);
}

.hero__play img {
  width: clamp(26px, 1.9792vw, 38px);
  height: auto;
}

.hero__play:hover img,
.js .hero__frame:hover .hero__play img {
  transform: scale(1.12);
}

.hero__rec,
.hero__timecode {
  position: absolute;
  bottom: clamp(14px, 1.7708vw, 34px);
  font-size: 14px;
  line-height: normal;
  text-transform: uppercase;
}

.hero__rec {
  left: clamp(16px, 2.2396vw, 43px);
}

.hero__timecode {
  right: clamp(16px, 2.0313vw, 39px);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__rec::before {
    animation: rec-blink 1.6s steps(1, end) infinite;
  }
}

@keyframes rec-blink {
  50% {
    opacity: .25;
  }
}

/* Introduction : texte
   ========================================================================== */
.intro {
  padding-top: var(--space-section);
}

.intro__title {
  font-size: var(--fs-title-display);
}

.intro__lead {
  max-width: 87.4%; /* 1503 / 1720 */
  margin-top: clamp(24px, 2.6042vw, 50px);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

/* Statistiques */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px var(--gutter);
  margin: clamp(56px, 5.2083vw, 100px) 0 0;
}

.stat__value {
  margin-inline: 0;
  padding-top: 20px;
  font-size: var(--fs-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat__plus {
  color: var(--blue);
}

/* Réalisations
   ========================================================================== */
.realisations {
  margin-top: var(--space-section);
  padding-block: clamp(48px, 4.2708vw, 82px) clamp(48px, 4.0625vw, 78px);
  background: var(--navy-deep);
}

.projects {
  display: grid;
  gap: clamp(24px, 2.6042vw, 50px);
  margin-top: clamp(40px, 5.5729vw, 107px);
}

.project {
  --perf: clamp(22px, 2.3438vw, 45px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 437fr) 1282fr;
  column-gap: 1px;
}

.project--reverse {
  grid-template-columns: 1282fr minmax(300px, 437fr);
}

.project__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 2.2396vw, 43px) clamp(24px, 2.1875vw, 42px) clamp(24px, 1.9792vw, 38px);
  border-radius: 10px 0 0 10px;
  background: var(--black);
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: clamp(240px, 16.3vw, 313px);
}

.project__title {
  font-size: var(--fs-title-card);
  line-height: 1.25;
}

.project__text {
  font-size: 14px;
  line-height: var(--lh-text);
}

.project .link-arrow {
  align-self: flex-start;
}

.project__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
  background: #000;
}

/* Hauteur de la carte = ratio de l'image (1282 × 591), extensible si le texte
   est plus long. */
.project__media::before {
  content: "";
  display: block;
  padding-top: 46.1%;
}

.project__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.project__media:hover .project__img {
  transform: scale(1.03);
}

.project__media .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(26px, 1.9792vw, 38px);
  height: auto;
  transform: translate(-50%, -50%);
}

.project__media:hover .play {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Visuel « affiche » (fond crème, image calée en bas) */
.project__media--poster {
  background: var(--cream);
}

.project__media--poster .project__img {
  inset: auto;
  top: 2%;
  left: 3.51%;
  width: 93.05%;
  height: 97.98%;
  object-fit: contain;
  object-position: center bottom;
}

/* Zoom ancré en bas : les silhouettes restent collées au bord de la carte */
.project__media--poster .project__img {
  transform-origin: 50% 100%;
}

/* Perforations de pellicule */
.project__media--perf-start::after,
.project__media--perf-end::after {
  content: "";
  position: absolute;
  top: calc(var(--perf) * .6222);
  bottom: calc(var(--perf) * .0667);
  width: var(--perf);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='70' viewBox='0 0 45 70'%3E%3Crect width='45' height='45' rx='10' fill='%2306153e'/%3E%3C/svg%3E") 0 0 / var(--perf) calc(var(--perf) * 1.5556);
  background-repeat: no-repeat space;
  pointer-events: none;
}

.project__media--perf-start::after {
  left: calc(var(--perf) * .4222);
}

.project__media--perf-end::after {
  right: calc(var(--perf) * .4667);
}

.project--reverse .project__info {
  grid-column: 2;
  grid-row: 1;
  border-radius: 0 10px 10px 0;
}

.project--reverse .project__media {
  grid-column: 1;
  grid-row: 1;
  border-radius: 10px 0 0 10px;
}

.project__arrow-faint {
  position: absolute;
  top: calc(90.88% - 1px);
  left: -1px;
  width: 30px;
  height: auto;
  transform: rotate(180deg);
  pointer-events: none;
}

.realisations__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 2.6042vw, 50px);
}

/* Réalisations supplémentaires, dévoilées par « Voir toutes les réalisations »
   (toutes visibles sans JavaScript) */
.js .project-extra {
  display: none;
}

.js .projects.is-expanded .project-extra {
  display: block;
}

html:not(.js) .realisations__more {
  display: none;
}

.realisations__more [aria-expanded="true"]::after {
  transform: rotate(-90deg);
}

/* Services
   ========================================================================== */
.services {
  padding-top: var(--space-section);
}

.services__list {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(32px, 3.4375vw, 66px);
  padding: clamp(32px, 2.9688vw, 57px) clamp(24px, 3.2292vw, 62px) clamp(32px, 2.9688vw, 57px) clamp(24px, 2.7083vw, 52px);
  border-radius: 20px;
  background: var(--black);
}

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

/* Largeurs de colonnes de la maquette (sur 1606 px utiles) */
.service:nth-child(1) { width: 15.94%; }
.service:nth-child(2) { width: 16.69%; }
.service:nth-child(3) { width: 14.88%; }
.service:nth-child(4) { width: 20.8%; }

.service__title {
  font-size: var(--fs-title-card);
}

.service__text {
  font-size: 14px;
  line-height: var(--lh-text);
}

/* Séparateurs verticaux (dépassent la carte de 11 px, comme la maquette) */
.service + .service::before {
  content: "";
  position: absolute;
  top: -11px;
  bottom: -11px;
  width: 2px;
  background: url("../img/line-vertical.svg") 0 0 / 100% 100% no-repeat;
}

.service:nth-child(2)::before { left: 23.023%; }
.service:nth-child(3)::before { left: 49.419%; }
.service:nth-child(4)::before { left: 72.151%; }

/* Présentation du président
   ========================================================================== */
.president {
  display: grid;
  grid-template-columns: 498fr 724fr 498fr;
  align-items: start;
  padding-top: clamp(80px, 8.3854vw, 161px);
}

.president__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 498 / 463;
  object-fit: cover;
  border-radius: 20px;
}

.president__body {
  align-self: center;
  justify-self: center;
  width: 76.1%; /* 551 / 724 */
}

.president__title {
  font-size: var(--fs-title-section);
  line-height: 1;
}

.president__name {
  margin-top: 30px;
  font-weight: 600;
}

.president__bio {
  margin-top: 30px;
  line-height: var(--lh-text);
}

/* Contact
   ========================================================================== */
.contact {
  margin-top: var(--space-section);
  background: var(--black);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1088fr 632fr;
  align-items: start;
  padding-top: clamp(56px, 5.5729vw, 107px);
  padding-bottom: clamp(64px, 6.25vw, 120px);
}

.contact__title {
  font-size: var(--fs-title-display);
  line-height: 1;
}

.contact__title-accent {
  display: block;
  color: var(--blue);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 415px) 1fr;
  column-gap: 24px;
  align-items: end;
}

.contact-form__fields {
  display: grid;
  gap: 37px;
}

.field {
  position: relative;
}

.field__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: url("../img/line-field.svg") left bottom / 100% 2px no-repeat;
  font-size: 20px;
  line-height: 26px;
  color: var(--white);
  transition: box-shadow .2s;
}

.field__input:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.field__input[aria-invalid="true"] {
  box-shadow: inset 0 -2px 0 var(--error);
}

.field__input--textarea {
  min-height: 42px;
  max-height: 220px;
  resize: none;
  overflow-y: auto;
}

.field__label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  line-height: 26px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  color: var(--blue);
  transform: translateY(-24px) scale(.7);
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  justify-self: end;
}

.contact-form__submit[disabled] {
  opacity: .5;
  cursor: progress;
}

.contact-form__status {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 16px;
  font-size: 14px;
}

.contact-form__status.is-error {
  color: var(--error);
}

/* Visionneuse vidéo (lightbox)
   ========================================================================== */
html.has-lightbox {
  overflow: hidden;
}

.lightbox {
  width: min(1280px, 100vw - 2 * var(--gutter), (100svh - 200px) * 16 / 9);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(6 21 62 / .94);
}

.lightbox[open] {
  animation: lightbox-in .3s var(--ease);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(.97);
  }
}

.lightbox__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.lightbox__player iframe,
.lightbox__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.lightbox__close {
  position: absolute;
  right: -10px;
  bottom: calc(100% + 8px);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: color .2s;
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox__close:hover {
  color: var(--blue);
}

.lightbox__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 20px;
}

.lightbox__title {
  font-size: 20px;
  line-height: 1.3;
}

/* Pied de page
   ========================================================================== */
.site-footer {
  /* le contenu décalé par l'animation d'apparition ne doit pas allonger la page */
  overflow: hidden;
  background: var(--black);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-bottom: clamp(32px, 3.1771vw, 61px);
}

.site-footer__social {
  display: flex;
  gap: clamp(24px, 5.2083vw, 100px);
}

.site-footer__social a {
  text-decoration: none;
  transition: color .2s;
}

.site-footer__social a:hover {
  color: var(--blue);
}

/* Responsive
   ========================================================================== */
@media (max-width: 1399px) {
  .services__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .service:nth-child(n) {
    position: relative;
    width: auto;
    padding: 40px clamp(24px, 4vw, 52px);
  }

  .service + .service::before {
    display: none;
  }

  .service:nth-child(even)::after,
  .service:nth-child(n+3)::before {
    content: "";
    position: absolute;
    display: block;
    background: url("../img/line-vertical.svg") 0 0 / 100% 100% no-repeat;
  }

  .service:nth-child(even)::after {
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
  }

  .service:nth-child(n+3)::before {
    top: -1px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
}

@media (max-width: 1099px) {
  .project,
  .project--reverse {
    grid-template-columns: 1fr;
    row-gap: 1px;
  }

  .project .project__media,
  .project--reverse .project__media {
    grid-column: 1;
    grid-row: 1;
    border-radius: 10px 10px 0 0;
  }

  .project .project__info,
  .project--reverse .project__info {
    grid-column: 1;
    grid-row: 2;
    border-radius: 0 0 10px 10px;
  }

  .project__body {
    max-width: 640px;
  }

  .project__arrow-faint {
    display: none;
  }

  /* Dégage l'affiche des perforations quand la carte est empilée */
  .project__media--poster .project__img {
    top: 2%;
    right: 3.44%;
    bottom: 0;
    left: calc(var(--perf) * 1.6);
    width: auto;
    height: auto;
    object-position: left bottom;
  }

  .president {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--gutter);
  }

  .president__photo--portrait {
    grid-column: 1;
    grid-row: 1;
  }

  .president__photo--tournage {
    grid-column: 2;
    grid-row: 1;
  }

  .president__body {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    max-width: 640px;
    margin-top: 48px;
  }
}

@media (max-width: 1023px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 640px;
    margin-top: 56px;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 64px;
  }

  .site-header__inner {
    align-items: center;
  }

  .site-header__logo,
  .site-nav {
    margin-top: 0;
  }

  .site-header__logo img {
    width: 200px;
  }

  .site-nav__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .site-nav__toggle-bars,
  .site-nav__toggle-bars::before,
  .site-nav__toggle-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s;
  }

  .site-nav__toggle-bars {
    position: relative;
  }

  .site-nav__toggle-bars::before,
  .site-nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .site-nav__toggle-bars::before {
    top: -7px;
  }

  .site-nav__toggle-bars::after {
    top: 7px;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars {
    background: transparent;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav__list {
    position: absolute;
    /* chevauche l'en-tête d'1 px : évite un filet d'image visible à la
       jonction sur les écrans haute densité (arrondi sous-pixel) */
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 9px var(--gutter) 24px;
    background: var(--navy);
    font-size: 18px;
  }

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

  .site-nav__list a {
    display: block;
    padding: 14px 0;
  }

  /* Sans JavaScript, le menu reste visible sous le logo */
  html:not(.js) .site-nav__toggle {
    display: none;
  }

  html:not(.js) .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: var(--header-h);
    padding-block: 12px;
  }

  html:not(.js) .site-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 8px 0 0;
    font-size: 14px;
  }

  html:not(.js) .site-nav__list a {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .hero__frame {
    aspect-ratio: 4 / 5;
  }

  .hero__img {
    object-position: 30% 50%;
  }

  .intro__lead {
    max-width: none;
  }

  .project__media::before {
    padding-top: 56.25%;
  }

  .contact-form {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 699px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .lightbox__close {
    right: 0;
  }

  .services__list {
    grid-template-columns: 1fr;
  }

  .service:nth-child(n) {
    padding: 32px 24px;
  }

  .service:nth-child(n)::after,
  .service:nth-child(n)::before {
    display: none;
  }

  .service + .service::before {
    content: "";
    position: absolute;
    display: block;
    top: -1px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    background: url("../img/line-vertical.svg") 0 0 / 100% 100% no-repeat;
  }

  .president {
    grid-template-columns: 1fr;
  }

  .president__photo--portrait,
  .president__photo--tournage,
  .president__body {
    grid-column: 1;
    grid-row: auto;
  }

  .president__photo--tournage {
    margin-top: 48px;
  }

  .site-footer__social {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
