/* GABOS — copie de gabos.fr (mesures relevées sur le site en 1470 px de large) */
:root {
  --bg: #f7f7f7;
  --text: rgba(18, 18, 18, .75);
  --dark: #242424;
  --abel: "Abel", sans-serif;
  --assistant: "Assistant", sans-serif;
  --sys: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--assistant); letter-spacing: .06rem; -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.page-width { width: 100%; max-width: 1200px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------------- header (fond noir, logo G, menu Assistant 14 px) */
.site-header { background: #000; color: #fff; position: relative; z-index: 20; }
.header-in { height: 106px; display: flex; align-items: center; gap: 56px; padding-inline: 50px; max-width: 1300px; }
.logo img { height: 64px; width: auto; }
.nav ul { display: flex; }
.nav a { display: block; padding: 12px; font: 14px/1.8 var(--assistant); letter-spacing: .6px; color: rgba(255,255,255,.75); }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { background: #000; padding: 10px 24px 30px; }
.menu a { display: block; padding: 12px 0; font: 18px var(--assistant); color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.12); }

/* ---------------- titres de section (Abel 19 px + petit trait dessous) */
.sec-label { display: flex; justify-content: space-between; align-items: center; min-height: 55px; padding: 0 24px; }
.sec-label--wide { max-width: none; }
.lbl { font: 19px/27px var(--abel); color: #000; letter-spacing: 0; position: relative; display: inline-block; padding-bottom: 6px; }
.lbl::after { content: ""; position: absolute; left: 4px; bottom: 0; width: 26px; height: 1px; background: #8a8a8a; }
.read-all { font: 15px/27px var(--abel); letter-spacing: 2px; color: var(--text); }
.read-all:hover { color: #000; }

/* ---------------- accueil */
.home-banner { padding-top: 32px; }
.banner { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.banner .slides, .banner .slide { position: absolute; inset: 0; }
.banner .slide { opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }
.banner .slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

.explorer { padding-top: 34px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); height: 422px; margin-top: 4px; }
.tile { position: relative; overflow: hidden; display: block; background: #fff; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.tile video { opacity: 0; transition: opacity .5s; }
.tile video.is-playing { opacity: 1; }
.tile:hover img { transform: scale(1.04); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 1; display: grid; justify-items: center; gap: 10px; font: 16px/20px var(--abel); color: #fff; letter-spacing: 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.tile-line { width: 45px; height: 2px; background: rgba(255,255,255,.85); }
.tiles-wrap { position: relative; }
.tile-dots, .t-nav { display: none; }

.block { padding-top: 64px; }
.row { background: #fff; }
.row--split { display: grid; grid-template-columns: 420px 1fr; height: 780px; }
.row-txt { display: grid; place-items: center; padding: 24px; }
.row-txt p { font: 16px/22px var(--abel); color: var(--dark); text-align: center; letter-spacing: 0; max-width: 380px; }
.row-img { display: block; overflow: hidden; }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.row-img:hover img { transform: scale(1.02); }
.row--center { display: grid; justify-items: center; height: 700px; }
.row-img--sq { width: 700px; height: 700px; }
.row-img--logo { display: grid; place-items: center; background: #fff; }
.row-img--logo img { width: auto; height: 46%; filter: invert(1); }
.row-img--logo:hover img { transform: none; }

/* ---------------- bannière de page (600 px) */
.hero { position: relative; height: 600px; overflow: hidden; background: var(--bg); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px; text-align: center; font: 700 31px/1.4 "Adamina", serif; color: #fff; letter-spacing: 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-title--below { position: static; display: block; padding: 34px 24px 0; color: #121212; text-shadow: none; }
.hero--logo { height: 700px; display: grid; place-items: center; }
.hero--logo { background: #fff; }
.hero--logo img { width: auto; height: 62%; object-fit: contain; filter: invert(1); }

.intro { background: #fff; max-width: 970px; padding: 36px 40px; }
.intro p { font: 16px/22px var(--abel); color: var(--dark); text-align: center; letter-spacing: 0; }

/* ---------------- découverte (pages catégorie) */
.discover { padding: 20px 35px 0; }
.disc-label { font: 13px/13px var(--abel); letter-spacing: 4px; color: #111; padding: 8px 5px 14px; }
.disc-panel { background: #fff; padding: 22px 12px 40px; }
.disc-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; padding-inline: 4px; }
.disc-search label { display: block; font: 12px var(--sys); letter-spacing: 2px; color: #111; margin-bottom: 14px; }
.disc-input { display: flex; align-items: center; width: 420px; max-width: 100%; border-bottom: 1px solid #111; height: 34px; }
.disc-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; font: 14px var(--sys); letter-spacing: 1px; color: #111; }
.disc-input span { color: #111; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; }
.chips button { font: 12px/21.6px var(--sys); letter-spacing: 1.6px; color: #777; }
.chips button[aria-pressed="true"], .chips button:hover { color: #111; }
.az { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 18px 8px 0; gap: 4px 0; }
.az button { font: 12px/21.6px var(--sys); letter-spacing: 4px; color: #b5b5b5; padding-left: 4px; }
.az button:hover, .az button[aria-pressed="true"] { color: #111; }
.az .az-clear { flex-basis: 100%; text-align: right; font-size: 11px; letter-spacing: 2px; color: #777; padding-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 16px; padding-top: 18px; }
.card { display: block; }
.card-media { aspect-ratio: 1; overflow: hidden; background: #f2f2f2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-line { display: block; width: 16px; height: 1px; background: #111; margin: 8px 0 6px; }
.card h3 { font: 18px/21.6px var(--sys); letter-spacing: .3px; color: #111; }
.card-sub { font: 11px/19.8px var(--sys); letter-spacing: .6px; color: #777; margin-top: 2px; }
.card-cta { display: inline-block; margin-top: 14px; font: 10px var(--sys); letter-spacing: 2px; color: #111; }
.card[hidden] { display: none; }
.empty { padding: 30px 4px; font: 16px var(--sys); color: #777; }

/* ---------------- fiche projet */
.row--project { display: grid; grid-template-columns: 1fr 585px; gap: 15px; min-height: 780px; }
.row--noimg { grid-template-columns: 1fr; }
.p-txt { align-self: center; padding: 40px 50px 40px 20px; display: grid; gap: 14px; }
.p-txt h2 { font: 19px/1.4 var(--abel); color: var(--dark); letter-spacing: 0; margin-bottom: 26px; }
.p-txt p { font: 16px/21px var(--abel); color: var(--dark); text-align: justify; letter-spacing: 0; }
.p-slider { position: relative; height: 780px; overflow: hidden; background: #fff; }
.p-slider .slides, .p-slider .slide { position: absolute; inset: 0; }
.p-slider .slide { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.p-slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s; }
.p-slider img { width: 100%; height: 100%; object-fit: cover; }
.s-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.s-nav svg { width: 9px; height: 16px; }
.s-nav.prev { left: 6px; } .s-nav.next { right: 6px; } .s-nav.next svg { transform: scaleX(-1); }
.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dots button[aria-current="true"] { background: #fff; }
.p-slider .slide--video { display: grid; align-items: center; background: #fff; }
.p-slider--video { height: auto; aspect-ratio: 16 / 9; align-self: center; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-slider--video .s-nav { top: auto; bottom: -46px; translate: none; color: #111; filter: none; }
.p-slider--video { overflow: visible; margin-bottom: 50px; }
.p-slider--video .dots { bottom: -34px; }
.p-slider--video .dots button { background: #ccc; }
.p-slider--video .dots button[aria-current="true"] { background: #111; }
.p-txt--center p { text-align: center; }
.p-link { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; font: 16px var(--abel); word-break: break-all; }
.row--stack { padding: 30px 0 0; }
.row--stack .p-txt { padding: 0 20px 24px; }
.row--stack .p-txt h2 { margin-bottom: 18px; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; padding-top: 40px; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- partenaires / à propos */
.row--partners { display: grid; grid-template-columns: 1fr 2fr; align-items: center; padding: 50px 60px; margin-top: 60px; }
.p-title { font: 19px var(--abel); color: var(--dark); letter-spacing: 0; padding-left: 70px; }
.logo-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.logos { display: grid; grid-template-columns: repeat(2, 120px); gap: 6px 10px; }
.logos li { height: 52px; display: grid; place-items: center; }
.logos img { max-height: 48px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.about { position: relative; }
.about img { width: 100%; height: 600px; object-fit: cover; }
.about-txt { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 0 16px 40px; text-align: center; font-family: "Aileron", "Helvetica Neue", Arial, sans-serif; }
.about-txt h1 { font: 700 53px/1.6 "Aileron", "Helvetica Neue", Arial, sans-serif; color: #fff; letter-spacing: 0; }
.about-txt p { font: 700 23px/36.4px "Aileron", "Helvetica Neue", Arial, sans-serif; color: #f1f1f1; letter-spacing: 0; max-width: 1150px; }

/* ---------------- footer */
.site-footer { padding: 80px 24px 130px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; text-align: center; }
.join, .follow { width: 100%; min-width: 0; }
.join h2 { font: 18px/23px var(--abel); color: #000; letter-spacing: 0; margin-bottom: 62px; }
.nl-form { display: flex; width: 792px; max-width: 100%; margin-inline: auto; }
.nl-form input { flex: 1; min-width: 0; height: 55px; padding: 0 20px; border: 1px solid rgba(18,18,18,.75); border-radius: 4px 0 0 4px; background: #fff; font: 19px var(--abel); color: #121212; letter-spacing: 0; outline: 0; }
.nl-form input::placeholder { color: rgba(18,18,18,.55); }
.nl-form button { width: 198px; height: 55px; background: var(--dark); color: #fff; font: 19px var(--abel); letter-spacing: 0; border-radius: 0 4px 4px 0; }
.nl-form button:hover { background: #000; }
.nl-ok { font: 16px var(--abel); color: var(--dark); margin-top: 12px; }
.follow h2 { font: 20px/28px var(--abel); color: #000; letter-spacing: 0; }
.socials { display: flex; justify-content: center; gap: 32px; margin-top: 4px; }
.socials img { width: 20px; height: 20px; }
.socials a:hover { opacity: .6; }

/* ---------------- bas de page */
.page-footer { border-top: 1px solid #e2e2e2; background: #fff; }
.pf-in { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; align-items: start; padding: 56px 24px 40px; }
.pf-logo img { height: 56px; width: auto; filter: invert(1); }
.pf-nav { display: flex; gap: 80px; }
.pf-nav a { font: 16px/2.1 var(--abel); color: var(--dark); letter-spacing: 0; }
.pf-nav a:hover, .pf-bottom a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.pf-follow { display: grid; justify-items: end; gap: 12px; }
.pf-follow p { font: 16px var(--abel); color: #000; letter-spacing: 0; }
.pf-follow .socials { gap: 22px; margin: 0; }
.pf-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 24px 26px; border-top: 1px solid #ececec; font: 13px var(--abel); color: rgba(18,18,18,.6); letter-spacing: .5px; }
.site-footer { padding-bottom: 90px; }

/* ---------------- responsive */
@media (max-width: 989px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-in { padding-inline: 20px; height: 80px; }
  .logo img { height: 52px; }
  .tiles { grid-template-columns: repeat(3, 1fr); height: auto; }
  .tile { aspect-ratio: 3 / 4; }
  .row--split, .row--project, .row--partners { grid-template-columns: 1fr; height: auto; }
  .row-img img { height: auto; aspect-ratio: 1; }
  .row--center { height: auto; }
  .row-img--sq { width: 100%; max-width: 700px; height: auto; aspect-ratio: 1; }
  .p-slider { height: auto; aspect-ratio: 3 / 4; }
  .p-slider--video { aspect-ratio: 16 / 9; }
  .row--project { min-height: 0; }
  .p-txt { padding: 30px 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 420px; }
  .p-title { padding: 0 0 24px; text-align: center; }
  .logo-groups { justify-items: center; }
}
@media (max-width: 749px) {
  .about img { height: 420px; }
  .about-txt h1 { font-size: 34px; }
  .about-txt p { font-size: 15px; line-height: 1.5; }
  .pf-in { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .pf-nav { gap: 48px; }
  .pf-follow { justify-items: center; }
  .pf-bottom { flex-direction: column; align-items: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
  .discover { padding-inline: 12px; }
  .hero { height: 340px; }
  .hero-title { font-size: 24px; }
  .hero--logo { height: 380px; }
  .sec-label { padding-inline: 16px; }
  .block { padding-top: 44px; }
  .site-footer { padding-bottom: 80px; }
  .nl-form input, .nl-form button { font-size: 16px; }
  .nl-form button { width: 110px; }
  .logo-groups { grid-template-columns: 1fr; }
}
/* téléphone : Explorer en carrousel (glisser), le reste en une colonne */
@media (max-width: 749px) {
  .tiles { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 78%; aspect-ratio: 294 / 422; scroll-snap-align: start; }
  .tile { flex: 0 0 86%; }
  .tile-dots { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
  .tile-dots button { width: 24px; height: 24px; display: grid; place-items: center; }
  .tile-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8c8c8; transition: background .3s, transform .3s; }
  .tile-dots button[aria-current="true"]::before { background: #111; transform: scale(1.2); }
  .t-nav { display: grid; place-items: center; position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
  .t-nav svg { width: 8px; height: 14px; }
  .t-nav.prev { left: 22px; } .t-nav.next { right: 22px; } .t-nav.next svg { transform: scaleX(-1); }
  .t-nav[disabled] { opacity: 0; pointer-events: none; }
  .header-in { height: 68px; }
  .logo img { height: 44px; }
  .home-banner { padding-top: 16px; }
  .explorer { padding-top: 24px; }
  .row-txt { padding: 32px 24px; }
  .row-img--sq { max-width: 320px; }
  .disc-top { flex-direction: column; align-items: stretch; }
  .disc-input { width: 100%; }
  .chips { justify-content: flex-start; gap: 6px 18px; }
  .az { justify-content: flex-start; gap: 6px 2px; }
  .az button { min-width: 26px; min-height: 28px; }
  .p-txt h2 { margin-bottom: 10px; }
  .p-txt p { text-align: left; }
  .row--partners { padding: 36px 16px; margin-top: 32px; }
  .logos { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .logo-groups { gap: 6px; width: 100%; }
  .site-footer { padding: 56px 16px 64px; }
  .join h2 { margin-bottom: 28px; }
  .nl-form input, .nl-form button { height: 50px; }
  .pf-nav { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
