/* ==========================================================================
   FASTELIER — page reveal (Max Havelaar France)
   Grille desktop : 1440 / contenu 1140 / 12 col. de 84 px / gouttière 12 px
   Mobile : 390 / marges 16
   ========================================================================== */

@font-face{
  font-family:"Google Sans Flex";
  src:url("../fonts/google-sans-flex.woff2") format("woff2-variations");
  font-weight:1 1000;font-style:normal;font-display:swap;
}

:root{
  --ink:#353332;
  --acid:#D4FF47;
  --cyan:#0FBFFC;
  --white:#fff;
  --max:1140px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:"Google Sans Flex",Helvetica,Arial,sans-serif;
  font-variation-settings:"opsz" 120;font-weight:500;
  font-size:16px;line-height:22px;color:var(--ink);background:var(--white);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;padding-top:86px;
}
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;cursor:pointer}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
ol{list-style:none}

.wrap{width:100%;max-width:calc(var(--max) + 2 * 20px);margin:0 auto;padding:0 20px}

/* ---------- Boutons : contour 2 px, fond cyan ou vert ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:2px solid var(--ink);white-space:nowrap;
  font-variation-settings:"opsz" 24;font-weight:500;
  transition:background-color .25s var(--ease),color .25s var(--ease);
}
.btn-cyan{background:var(--cyan)}
.btn-acid{background:var(--acid)}
.btn-black{background:#000;color:#fff}
.btn-black:hover,.btn-black:focus-visible{background:var(--acid);color:var(--ink)}
.btn:hover,.btn:focus-visible{background:var(--ink);color:var(--white)}

/* ---------- En-tête ---------- */
.head{position:fixed;left:0;right:0;top:0;z-index:50;background:#fff;transition:transform .5s var(--ease)}
.head.hide{transform:translateY(-100%)}
.head .wrap{display:flex;align-items:flex-start;height:82px;padding-top:16px}
.head .logo{margin-left:7px}
.head .logo img{width:160px;height:auto}
.head .ctas{margin-left:auto;display:flex;gap:13px}
.head .btn{height:40px;padding:0 17.5px;border-radius:20px;font-size:17.6px}

/* ---------- Hero ---------- */
.hero{padding-top:65px}
.hero h1{font-size:122px;line-height:110px;font-weight:500;letter-spacing:0;margin-left:-1px}
.hero .lead{font-size:36px;line-height:44px;margin-top:25px}

/* ---------- Film ---------- */
.film{margin-top:74px}
.film .frame{position:relative;width:944px;max-width:100%;margin:0 auto;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#15171b}
.film video{width:100%;height:100%;object-fit:cover;cursor:pointer}
.film .frame{box-shadow:0 0 2px rgba(0,0,0,.25)}
.film .frame:fullscreen,.film .frame:-webkit-full-screen{box-shadow:none}
/* Fin du film : appel à signer la pétition, sur une image d'Ernest assombrie */
.film .endcard{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:center/cover no-repeat;color:#fff;text-align:center;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.film .endcard::before{content:"";position:absolute;inset:0;background:rgba(30,29,28,.72)}
.film .endcard>*{position:relative}
.film .endcard p{max-width:760px;font-size:32px;line-height:42px;font-weight:500;letter-spacing:-.01em;font-variation-settings:"opsz" 120}
.film .endcard .btn{height:60px;margin-top:34px;padding:0 27px;border-radius:30px;font-size:23px;color:var(--ink)}
.film .endcard .btn:hover,.film .endcard .btn:focus-visible{background:#fff;color:var(--ink)}
.film .endcard .replay{margin-top:22px;color:#fff;font-size:17px;text-decoration:underline;text-underline-offset:3px;opacity:.85}
.film .endcard .replay:hover{opacity:1;color:var(--acid)}
.film.ended .sound,.film.ended .vctl,.film.ended .vbar{opacity:0!important;transform:none!important;transition:none!important;pointer-events:none!important}   /* fin du film : commandes masquées tout de suite, sans glissement */
.film.ended .endcard{opacity:1;visibility:visible;transition:opacity .5s}
.film.ended .play{opacity:0;pointer-events:none}
.film .play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transition:opacity .3s}
.film .play span{width:116px;height:116px;border-radius:50%;background:rgba(255,255,255,.62);display:flex;align-items:center;justify-content:center;transition:transform .3s var(--ease),background-color .3s}
.film .play span::after{content:"";border-left:26px solid #fff;border-top:16px solid transparent;border-bottom:16px solid transparent;margin-left:8px;transition:border-color .3s}
.film .play:hover span{transform:scale(1.06);background:var(--acid)}
.film .play:hover span::after{border-left-color:var(--ink)}
.film.playing .play{opacity:0;pointer-events:none}
.sound{position:absolute;left:20px;top:20px;display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 18px 0 14px;border-radius:22px;background:var(--acid);color:var(--ink);font-size:16px;font-weight:500;opacity:0;transform:translateY(8px);transition:opacity .35s,transform .35s var(--ease),background-color .25s}
.sound svg{width:20px;height:20px}
.sound:hover{background:#D9D9D4}
.film.playing .frame:hover .sound,.film.paused .sound,.film .frame:focus-within .sound{opacity:1;transform:none}
.vctl{position:absolute;right:20px;top:20px;display:flex;gap:8px;opacity:0;transform:translateY(-6px);transition:opacity .35s,transform .35s var(--ease)}
.film.playing .frame:hover .vctl,.film.paused .frame:hover .vctl,.film .frame:focus-within .vctl{opacity:1;transform:none}
@media (hover:none){.film.playing .vctl,.film.paused .vctl,.film.playing .sound{opacity:1;transform:none}}
/* Barre de lecture : même apparition que les boutons de la vidéo */
.vbar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:30px 20px 14px;background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.4));color:#fff;font-size:13px;line-height:16px;font-weight:500;font-variant-numeric:tabular-nums;opacity:0;transform:translateY(6px);pointer-events:none;transition:opacity .35s,transform .35s var(--ease)}
.film.playing .frame:hover .vbar,.film.paused .frame:hover .vbar,.film .frame:focus-within .vbar,.film .frame:fullscreen .vbar{opacity:1;transform:none;pointer-events:auto}
@media (hover:none){.film.playing .vbar,.film.paused .vbar{opacity:1;transform:none;pointer-events:auto}}
.vtrack{position:relative;flex:1;height:16px;cursor:pointer;touch-action:none;--p:0%}
.vtrack::before{content:"";position:absolute;left:0;right:0;top:6px;height:4px;border-radius:2px;background:rgba(255,255,255,.35)}
.vfill{position:absolute;left:0;top:6px;height:4px;border-radius:2px;background:var(--acid);width:var(--p)}
.vknob{position:absolute;top:2px;left:var(--p);width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--acid);transform:scale(0);transition:transform .2s var(--ease)}
.vtrack:hover .vknob,.vtrack.drag .vknob,.vtrack:focus-visible .vknob{transform:scale(1)}
.vtrack:focus-visible{outline:none}
@media (max-width:760px){.vbar{gap:8px;padding:20px 8px 4px;font-size:11px;line-height:14px}}
.vbtn{width:44px;height:44px;border-radius:22px;background:rgba(255,255,255,.85);color:var(--ink);display:flex;align-items:center;justify-content:center;transition:background-color .25s}
.vbtn svg{width:18px;height:18px}
.vbtn:hover{background:var(--acid)}
.js-close{display:none}
.vbtn .ic-play{display:none}.film.paused .vbtn .ic-play{display:inline}.film.paused .vbtn .ic-pause{display:none}
.sound .on{display:none}.film.unmuted .sound .on{display:inline}.film.unmuted .sound .off{display:none}
.film .frame:fullscreen{width:100%;max-width:none;border-radius:0;aspect-ratio:auto;background:#000}
.film .frame:fullscreen video{object-fit:contain}
.film .frame:fullscreen .vctl,.film .frame:fullscreen .sound{opacity:1;transform:none}
.film .frame:fullscreen .js-close{display:flex}
.film .frame:fullscreen .js-fs{display:none}
.film .frame:-webkit-full-screen{width:100%;max-width:none;border-radius:0;background:#000}
.film .frame:-webkit-full-screen .js-close{display:flex}
.film .frame:-webkit-full-screen .js-fs{display:none}

/* ---------- Titres ---------- */
.h2{font-size:52px;line-height:58px;font-weight:500;letter-spacing:0;text-align:center}

/* ---------- Pourquoi une fausse startup ? ---------- */
.film-cta{display:flex;justify-content:center;margin-top:63px}
.film-cta .btn{height:60px;padding:0 27px;border-radius:30px;font-size:23px}
/* Bloc « Voir le film Fastelier » */
.fcard{display:flex;align-items:flex-start;gap:24px;width:944px;max-width:100%;margin:70px auto 0;padding:31px 33px 31px 33px;border:1px solid var(--ink);border-radius:16px;background:#0C0802;color:#fff}
.fc-txt{flex:1;min-width:0}
.fcard p{font-size:26px;line-height:40px;font-weight:500;font-variation-settings:"opsz" 24}
.fcard .btn{height:60px;margin-top:30px;padding:0 27px;border-radius:30px;font-size:23px}
.btn-white{background:#fff;color:var(--ink)}
.fcard .btn-white:hover,.fcard .btn-white:focus-visible{background:var(--acid);color:var(--ink)}
.fcard img{flex:none;width:204px;height:204px;margin-top:3px;border-radius:12px;object-fit:cover}
.why{margin-top:99px}
.why .txt{margin-top:46px;font-size:26px;line-height:40px;font-weight:400}
.why .txt p+p{margin-top:40px}
.why .txt .b{font-weight:600}

/* ---------- Ce que défend Max Havelaar ---------- */
.claims{margin-top:99px}
.claims .intro{margin-top:42px;font-size:26px;line-height:40px;font-weight:400}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:77px}
.card{position:relative;display:flex;flex-direction:column;padding:25px 24px 25px 25px;z-index:0;border:1.5px solid var(--ink);border-radius:20px}
.card.acid{background:var(--acid)}
.card.cyan{background:var(--cyan)}
.card .num{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border:1.5px solid var(--ink);border-radius:10px;background:#fff;font-size:16.7px}
.card .num,.card h3{position:relative;z-index:1}
.card .ch{display:flex;align-items:flex-start;gap:15px;position:relative;z-index:1}
.card .num{flex:none}
.card h3{font-size:20px;line-height:24px;font-weight:500;letter-spacing:0;padding-top:1px;font-variation-settings:"opsz" 24}
.card p{position:relative;z-index:1;margin-top:21px;font-size:16px;line-height:22px;font-weight:400;font-variation-settings:"opsz" 24}
.card{overflow:hidden;aspect-ratio:372/444}
/* Illustrations calées comme dans la maquette (taille et position propres à chaque carte) */
.card img{position:absolute;width:var(--w);left:var(--x);bottom:var(--b);max-width:none}
.card:nth-child(1) img{--w:98.4%;--x:.6%;--b:6px}
.card:nth-child(2) img{--w:94.9%;--x:.2%;--b:11px}
.card:nth-child(3) img{--w:95%;--x:2.3%;--b:-11px}
.card:nth-child(2){transition-delay:.08s}
.card:nth-child(3){transition-delay:.16s}

/* ---------- Manifeste + boutons ---------- */
.manif{margin-top:77px}
.ctas-big{display:flex;justify-content:center;gap:20px;margin-top:61px}
.ctas-big .btn{height:60px;padding:0 27px;border-radius:30px;font-size:23px}
/* Bloc pétition */
.petition{width:756px;max-width:100%;margin:82.5px auto 0;padding:32px 40px 35px;border:1px solid var(--ink);border-radius:20px;background:var(--cyan);color:#000;text-align:center;font-size:26px;line-height:40px;font-weight:500;font-variation-settings:"opsz" 24}
.petition .btn{height:60px;margin:51px 0 44px;padding:0 27px;border-radius:30px;font-size:23px;color:var(--ink)}
.petition .btn:hover,.petition .btn:focus-visible{background:#fff;color:var(--ink)}
.stop{margin-top:83px}

/* ---------- Liste d'attente ---------- */
.wl{margin-top:103px}
.wl::before{content:"";display:block;height:1px;background:var(--ink)}
.wl h2{font-size:30px;line-height:38px;font-weight:500;letter-spacing:0;margin-top:29px}
.wl p{font-size:22px;line-height:34px;font-weight:400;font-variation-settings:"opsz" 24;margin-top:22px}

/* ---------- Pied de page ---------- */
.foot{margin-top:90px;padding-bottom:34px;font-size:14px;line-height:19px}
.foot .row1{display:flex;align-items:center}
.foot .flogo{margin-left:1px}
.foot .flogo img{width:82px;height:auto}
.foot nav{display:flex;gap:72px;margin-left:289px}
.foot nav a:hover,.foot .site:hover{text-decoration:underline}
.foot .soc{margin-left:auto;display:flex;gap:11px}
.foot .soc a{display:block;width:30px;height:30px}
.foot .soc svg{width:30px;height:30px}
.foot .soc .bg,.foot .soc .lg{transition:fill .25s}
.foot .soc a:hover .bg,.foot .soc a:focus-visible .bg{fill:var(--acid)}
.foot .soc a:hover .lg,.foot .soc a:focus-visible .lg{fill:var(--ink)}
.foot .site{display:inline-block;margin-top:25px;text-decoration:underline}
.foot nav a[aria-current="page"]{text-decoration:underline}

/* ---------- Apparitions ---------- */
.rv{opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform .9s var(--ease)}
.rv.in{opacity:1;transform:none}

/* ---------- Pages légales ---------- */
.legal-page{padding-top:118px;padding-bottom:20px;font-size:16px;line-height:22px;font-variation-settings:"opsz" 24;font-weight:400}
.lp-top{position:relative;text-align:center;margin-bottom:84px}
.legal-page h1{font-size:52px;line-height:58px;font-weight:500;letter-spacing:0;font-variation-settings:"opsz" 120}
.lp-close{position:absolute;right:0;top:50%;width:16px;height:16px;margin-top:-8px;background:url("../assets/ico/ico-cross.svg") center/contain no-repeat;transition:opacity .2s}
.lp-close:hover{opacity:.55}
.legal-page section{margin-bottom:40px}
.legal-page h2{font-size:22px;line-height:28px;font-weight:500;margin:0 0 25px;font-variation-settings:"opsz" 120}
.legal-page p{max-width:1030px;margin-bottom:22px}
.legal-page p:last-child{margin-bottom:0}
.legal-page a{text-decoration:underline}
.legal-page strong{font-weight:600}
.legal-page mark.tbc{background:var(--acid);color:var(--ink);padding:0 4px;border-radius:3px;font-weight:500}
.legal-page ul{margin:0 0 22px 20px}

br.m{display:none}

@media (max-width:1180px){
  .hero h1{font-size:clamp(72px,9.6vw,122px);line-height:.9}
  .h2{font-size:clamp(36px,4.4vw,52px);line-height:1.12}
  .why .txt{font-size:clamp(18px,2.2vw,26px);line-height:1.54}
  .card h3{font-size:clamp(17px,1.8vw,20px);line-height:1.2}
  .claims .intro{font-size:clamp(18px,2.2vw,26px);line-height:1.54}
  .petition{font-size:clamp(18px,2.2vw,26px);line-height:1.54}
  .fcard p{font-size:clamp(18px,2.2vw,26px);line-height:1.54}
  .fcard img{width:clamp(140px,17vw,204px);height:auto;aspect-ratio:1}
  .card{aspect-ratio:auto}
  .card img{position:static;width:100%;max-width:340px;margin:auto auto 0;padding-top:16px}
  .foot nav{margin-left:auto;gap:32px}
  .foot .soc{margin-left:40px}
  br.d{display:none}
}

/* ==========================================================================
   Mobile (760 px et moins) — 390 / marges 16
   ========================================================================== */
@media (max-width:760px){
  body{padding-top:70px}
  .wrap{padding:0 16px}
  br.m{display:inline}
  br.nm{display:none}

  /* En-tête : logo + « Signer la pétition » (« En savoir plus » reste dans la page) */
  .head .wrap{height:70px;align-items:center;padding-top:0}
  .head .logo{margin-left:0}
  .head .logo img{width:119.5px}
  .head .btn{height:34px;padding:0 14.85px;border-radius:17px;font-size:14.5px;border-width:1.5px}
  .head .btn-more{display:none}
  .head.hide{transform:none}

  .hero{padding-top:5.5px}
  .hero h1{font-size:54px;line-height:50px;margin-left:0}
  .hero .lead{font-size:20px;line-height:24px;margin-top:25px;margin-right:-6px}

  .film{margin-top:44px}
  .film .frame{border-radius:8px}
  .film .play span{width:44px;height:44px}
  .film .play span::after{border-left-width:11px;border-top-width:7px;border-bottom-width:7px;margin-left:3px}
  .sound{left:8px;top:8px;height:30px;font-size:12px;gap:6px;padding:0 12px 0 9px}
  .sound svg{width:16px;height:16px}
  .vctl{right:8px;top:8px;gap:6px}
  .vbtn{width:30px;height:30px}
  .vbtn svg{width:15px;height:15px}

  .h2{font-size:26px;line-height:30px}
  .why{margin-top:48px}
  .why .txt{margin-top:22px;font-size:14px;line-height:20px;font-weight:400;font-variation-settings:"opsz" 24}
  .why .txt p+p{margin-top:20px}
  .why .txt .b{font-weight:600}

  .claims{margin-top:39px}
  .claims .intro{margin-top:35px;font-size:14px;line-height:20px;font-variation-settings:"opsz" 24}
  .cards{grid-template-columns:1fr;gap:9px;margin-top:43.5px}
  .card{aspect-ratio:358/400.4;padding:16px;border-radius:12px}
  .card .ch{gap:14.5px}
  .card .num{width:44px;height:44px;border-radius:8px;font-size:14.6px}
  .card h3{max-width:240px;font-size:18px;line-height:22px;padding-top:0;font-variation-settings:"opsz" 120}
  .card p{margin-top:24px;margin-right:-6px;font-size:14px;line-height:20px}
  .card img{position:absolute;width:var(--w);left:var(--x);bottom:var(--b);max-width:none;margin:0;padding:0}
  .card:nth-child(1) img{--w:109.1%;--x:-4.4%;--b:-5px}
  .card:nth-child(2) img{--w:101.4%;--x:-.1%;--b:4px}
  .card:nth-child(3) img{--w:98.8%;--x:.5%;--b:-14px}
  .card:nth-child(n){transition-delay:0s}

  .manif{margin-top:45.5px}
  .ctas-big{flex-direction:column;align-items:center;gap:19.5px;margin-top:35.5px}
  .ctas-big .btn{height:48px;padding:0 21px;border-radius:24px;font-size:17.5px}
  .petition{margin-top:42.5px;padding:19.5px 20px 21px;border-radius:12px;font-size:16px;line-height:22px;font-variation-settings:"opsz" 120}
  .petition .btn{height:48px;margin:24px 0 21px;padding:0 21px;border-radius:24px;font-size:17.5px}
  .film-cta{margin-top:30px}
  .film-cta .btn{height:48px;padding:0 21px;border-radius:24px;font-size:17.5px}
  .fcard{flex-direction:column;gap:0;margin-top:36px;padding:19.5px 20px 21px;border-radius:12px}
  .fcard img{order:-1;width:120px;margin:0 0 18px;border-radius:8px}
  .fcard p{font-size:16px;line-height:22px;font-variation-settings:"opsz" 120}
  .fcard .btn{height:48px;margin-top:20px;padding:0 21px;border-radius:24px;font-size:17.5px}
  .film .endcard p{font-size:18px;line-height:23px}
  .film .endcard .btn{height:40px;margin-top:16px;padding:0 18px;border-radius:20px;font-size:15.5px}
  .film .endcard .replay{margin-top:10px;font-size:14px}
  .stop{margin-top:42px}

  .wl{margin-top:62px}
  .wl h2{font-size:16px;line-height:20px;margin-top:13px}
  .wl p{font-size:14px;line-height:20px;margin-top:12px}

  /* Pied de page : logo + réseaux, puis liens empilés */
  .foot{margin-top:60px;padding-bottom:17px;font-size:12px;line-height:16px}
  .foot .row1{flex-wrap:wrap}
  .foot .flogo{margin-left:0}
  .foot .flogo img{width:80px}
  .foot .soc{margin-left:auto;order:2;gap:11px}
  .foot nav{order:3;width:100%;margin:26.3px 0 0;flex-direction:column;gap:23px}
  .foot .site{margin-top:23px}

  .legal-page{padding-top:40px}
  .lp-top{margin-bottom:40px;padding:0 40px}
  .legal-page h1{font-size:28px;line-height:32px}
  .legal-page section{margin-bottom:32px}
  .legal-page h2{font-size:18px;line-height:24px;margin-bottom:12px}
  .legal-page p{margin-bottom:14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1!important;transform:none!important;transition:none}
}
