/* ==========================================================================
   ledrone.ch — version statique (le site n'est plus maintenu)
   Codes d'origine : blanc, rouge foncé, grands titres en Josefin Sans maigre.
   Polices hébergées localement (SIL Open Font License). Aucun cookie.
   ========================================================================== */

@font-face { font-family: "Josefin Sans"; src: url("../fonts/josefin-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --red: #ac1416;
  --red-dark: #8f1012;
  --ink: #2a2a2c;
  --text: #606060;
  --line: #e4e4e1;
  --soft: #f5f4f2;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: clamp(10px, 1.3vw, 16px);   /* un seul arrondi pour toutes les images */
  --gap: clamp(20px, 2.6vw, 32px) clamp(14px, 2vw, 24px);   /* un seul espacement pour toutes les grilles */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }   /* l'image garde sa mise en page, <picture> ne sert qu'à proposer le WebP */
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(48px, 7vw, 104px); }

/* Bandeau : le site n'est plus maintenu */
.notice { padding: 11px var(--gutter); background: var(--ink); color: #fff; font-size: .875rem; line-height: 1.4; text-align: center; }
.notice b { font-weight: 600; }
.notice a { font-weight: 600; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; white-space: nowrap; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-block: clamp(16px, 2.2vw, 26px); }
.top__logo img { width: auto; height: clamp(54px, 6.4vw, 82px); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2.4vw, 30px); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.top nav a { padding-block: 6px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Titres */
.label { margin-bottom: 16px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.display { font-family: "Josefin Sans", "Inter", sans-serif; font-weight: 300; letter-spacing: .05em; text-transform: uppercase; color: var(--red); }
h1.display { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.12; text-wrap: balance; }
.giant { font-size: clamp(1.875rem, 8.4vw, 6.25rem); line-height: 1; overflow-wrap: anywhere; }
.sub { margin-top: 6px; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.25; font-weight: 700; color: var(--ink); }
.center { text-align: center; }

/* Mot d'adieu */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5.5vw, 84px); }
.lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 28em; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(26px, 3.4vw, 40px); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .25s, transform .3s var(--ease); }
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { color: var(--red); }
.intro figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

.story { background: var(--soft); }
.story__in { margin-top: clamp(30px, 4.4vw, 60px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.press { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.press a { display: block; cursor: zoom-in; }
.press img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.press figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.4; }
.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.prose p:first-child { color: var(--ink); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--red); }

/* Le site tel qu'il était */
.was { padding-top: clamp(48px, 7vw, 104px); }
.tagline { font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.25; font-weight: 700; color: var(--ink); text-wrap: balance; }
.tagline b { display: block; color: var(--red); }
.quote { margin-top: 18px; font-family: "Josefin Sans", "Inter", sans-serif; font-style: italic; font-size: clamp(1rem, 1.6vw, 1.1875rem); color: var(--ink); }
.feature { margin-top: clamp(26px, 3.6vw, 44px); }
.caption { margin-top: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.caption--red { font-size: .8125rem; font-style: italic; font-weight: 600; color: var(--red); }

.univers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 48px); margin-top: clamp(30px, 4.4vw, 60px); }
/* Petits titres d'un bloc : même dessin dans Univers et dans Matériel */
.univers h3, .fleet h3 { font-family: "Josefin Sans", "Inter", sans-serif; font-weight: 300; font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.univers h3 { color: var(--red); }
.univers h3 + p { margin-top: 12px; font-size: .9375rem; }
.univers strong { color: var(--red); }

.quality { padding-block: clamp(56px, 8vw, 112px); background: var(--red); color: #fff; }
.quality .display, .quality .sub { color: #fff; }
.fleet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); margin: clamp(30px, 4.4vw, 60px) 0 0; padding: 0; list-style: none; text-align: left; }
.fleet li { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .45); }
.fleet__when { margin-top: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.fleet__when + p { margin-top: 12px; font-size: .9375rem; color: rgba(255, 255, 255, .94); }

.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 64px); margin-top: clamp(26px, 3.6vw, 48px); }
.columns p + p { margin-top: 1em; }
.columns > div > p:first-child { color: var(--ink); }
.h3-display { margin-top: clamp(40px, 5.5vw, 72px); font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.2; }

/* L'avion du logo traverse la page à trois endroits, au rythme du défilement (ledrone.js).
   Sans script, ou si l'on demande moins d'animations, il ne s'affiche pas. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* overflow-x: clip : l'avion sort du cadre sans élargir la page (pas de défilement horizontal) */
.flight { position: relative; z-index: 1; height: clamp(96px, 13vw, 170px); margin-block: clamp(-56px, -4vw, -24px); pointer-events: none; overflow-x: clip; overflow-y: visible; }
.flight--back { transform: scaleX(-1); }
.flight__sky { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 100% 0 0); }
.flight__trail { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .5; }
.flight__plane { position: absolute; left: 0; top: 0; width: clamp(38px, 4.4vw, 58px); height: auto; aspect-ratio: 77 / 78; opacity: 0; will-change: transform; }

/* Vidéos et grilles */
.media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #ececea; text-decoration: none; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.media:hover img { transform: scale(1.04); }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media.is-playing { background: #000; }
.media__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.media__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--red); }
a.media:hover .media__play { transform: translate(-50%, -50%) scale(1.08); }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(20px, 2.6vw, 32px); }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(20px, 2.6vw, 32px); }
.work { display: block; color: inherit; text-decoration: none; }
.work__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #ececea; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
.work__title { display: block; margin-top: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.work:hover .work__title { color: var(--red); }
.work__cat { display: block; margin-top: 3px; font-size: .8125rem; color: var(--text); }

.clients__list { max-width: 34em; margin-top: clamp(26px, 3.6vw, 44px); font-family: "Josefin Sans", "Inter", sans-serif; font-weight: 300; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }

.team { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 48px); margin-top: clamp(26px, 3.6vw, 48px); }
.steps h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.steps ul { margin-top: 10px; padding-left: 1.1em; list-style: disc; font-size: .9375rem; }
.steps li + li { margin-top: .4em; }
.team__about { max-width: 46em; margin-top: clamp(30px, 4vw, 52px); }
.team__about p + p { margin-top: 1em; }
.since { padding-block: clamp(30px, 4vw, 52px); font-family: "Josefin Sans", "Inter", sans-serif; font-size: 1.0625rem; letter-spacing: .14em; text-align: center; color: var(--red); }

/* Page d'une réalisation */
.band { background: var(--red); color: #fff; }
.band .wrap { padding-block: clamp(18px, 2.6vw, 30px); }
.band p { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.band h1 { margin-top: 4px; font-family: "Josefin Sans", "Inter", sans-serif; font-weight: 300; font-size: clamp(1.375rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.item { padding-block: clamp(26px, 3.6vw, 48px) clamp(56px, 7vw, 96px); }
.item__back { display: inline-block; margin-bottom: clamp(18px, 2.4vw, 28px); font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.item__back:hover { color: var(--red); }
.item__media { display: grid; gap: clamp(16px, 2.2vw, 26px); max-width: 980px; }
.item .prose { margin-top: clamp(24px, 3.2vw, 40px); }
.gone { color: var(--red); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #ececea; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery--themes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(20px, 2.6vw, 32px); }
.gallery figcaption { margin-top: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.gallery--single { display: block; max-width: 980px; }
.gallery--single a { aspect-ratio: auto; }
.gallery--single img { height: auto; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { max-width: 46%; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.pager a:hover { color: var(--red); }
.pager small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.pager a:last-child { margin-left: auto; text-align: right; }

/* Visionneuse de photos */
.box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 14, .96); color: #fff; }
.box::backdrop { background: rgba(12, 12, 14, .96); }
.box img { position: absolute; inset: 56px 16px; width: calc(100% - 32px); height: calc(100% - 112px); object-fit: contain; }
.box button { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.box button:hover { background: var(--red); }
.box__close { top: 8px; right: 12px; }
.box__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.box__next { right: 12px; top: 50%; transform: translateY(-50%); }
.box__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .7); }

/* Pied de page */
.foot { padding-block: 26px 32px; border-top: 1px solid var(--line); font-size: .8125rem; color: #6b6b6b; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot a { color: var(--ink); }

@media (max-width: 1060px) {
  .gallery--themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .intro, .story__in, .columns { grid-template-columns: 1fr; }
  .intro figure { order: -1; }
  .univers__grid, .steps { grid-template-columns: 1fr; }
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works, .gallery--themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager a:last-child { margin-left: 0; text-align: left; }
}
@media (max-width: 520px) {
  .videos, .fleet { grid-template-columns: 1fr; }
  .top nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flight { display: none; }
  * { transition: none !important; }
}
