/* ==========================================================================
   6nemac — direction « maquette idéale »
   Chargée après style.css : navigation avec bouton Acheter, héros de pages,
   cartes d'accueil, bandeau, nouveautés, pied de page.
   ========================================================================== */

:root{
  --blue-1:#2c4d66;
  --blue-2:#1f3e56;
  --blue-3:#17394f;
  --sky:#cfe0ec;
  --sky-2:#e3edf3;
  --steel:#4f86a6;
  --gold:#c48a28;
  --ink:#14293c;
  --paper:#f4f2ee;
}

body{ background:var(--paper); color:var(--ink); }

/* ---------- Navigation ---------- */
.nav{
  background:linear-gradient(180deg,#2d4e68,#27465e);
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.nav .wrap{ height:64px; max-width:1180px; justify-content:flex-start; gap:22px; }
.brand{ font-size:27px; font-weight:600; color:#fff; letter-spacing:-.02em; gap:10px; flex:none; }
.brand-mark{ width:30px; height:30px; border-radius:7px; box-shadow:none; }
.nav-links{ display:flex; gap:2px; margin-left:auto; font-size:13.5px; align-items:center; }
.nav-links a{
  color:#eaf1f6; opacity:1; padding:8px 11px; border-radius:999px;
  white-space:nowrap; transition:background .2s,color .2s;
}
.nav-links a:hover{ background:rgba(255,255,255,.12); }
.nav-links a.active,
.nav-links a[aria-current="page"]{ background:var(--sky); color:#1d3b52; font-weight:600; }
.nav-buy{
  display:inline-flex; align-items:center; gap:8px; flex:none;
  margin-left:6px; padding:9px 18px; border-radius:999px;
  background:#f4f6f8; color:#17394f; font-weight:600; font-size:13.5px;
  box-shadow:0 2px 8px rgba(8,24,38,.25); transition:transform .2s,background .2s;
}
.nav-buy:hover{ background:#fff; transform:translateY(-1px); }
.nav-buy svg{ width:17px; height:17px; }
.nav .wrap::after{ display:none; }
.nav-links + .nav-buy{ position:relative; }
.nav-links + .nav-buy::before{
  content:""; position:absolute; left:-17px; top:2px; bottom:2px; width:1px;
  background:rgba(255,255,255,.28);
}
.status-banner{ margin-top:64px; }

/* ---------- Boutons ---------- */
.btn-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px; border-radius:999px; font-weight:600; font-size:14.5px;
  border:1px solid transparent; transition:transform .2s,filter .2s,background .2s;
}
.btn-pill:hover{ transform:translateY(-1px); }
.btn-pill b{ font-weight:400; font-size:20px; line-height:10px; }
.btn-pill.is-blue{
  background:linear-gradient(135deg,#4a9bc4,#176d99); color:#fff;
  border-color:rgba(255,255,255,.8); box-shadow:0 6px 18px rgba(16,43,62,.28);
}
.btn-pill.is-blue:hover{ filter:brightness(1.07); }
.btn-pill.is-soft{ background:rgba(255,255,255,.88); color:#1d3b52; border-color:rgba(255,255,255,.9); }
.btn-pill.is-soft:hover{ background:#fff; }

/* ---------- Héros de pages ---------- */
.page-hero{
  position:relative; overflow:hidden; isolation:isolate;
  min-height:360px; display:flex; align-items:center;
  background:linear-gradient(100deg,#2f5774 0%,#4d7a95 55%,#87aac0 100%);
  color:#fff;
}
.nav + .page-hero{ margin-top:64px; }
.page-hero .wrap{
  width:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  align-items:center; gap:32px; padding-top:44px; padding-bottom:44px;
}
.ph-kicker{
  display:flex; align-items:center; gap:10px; margin:0 0 14px;
  font-size:11.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
}
.ph-kicker::before{ content:""; width:26px; height:3px; background:var(--gold); }
.page-hero h1{
  font-size:clamp(34px,4.4vw,54px); line-height:1.04; letter-spacing:-.04em;
  margin:0 0 14px; font-weight:700;
}
.page-hero .ph-lede{ font-size:16.5px; line-height:1.55; max-width:400px; margin:0 0 24px; color:inherit; opacity:.94; }
.ph-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.ph-visual{ position:relative; min-height:260px; display:flex; align-items:center; justify-content:center; }

.page-hero--light{
  background:linear-gradient(100deg,#e9eef1 0%,#dfe7ec 45%,#c9d6de 100%);
  color:var(--ink);
}
.page-hero--light .ph-kicker{ color:#3d5568; }
.page-hero--light .btn-pill.is-soft{ background:#fff; border-color:#d3dde3; }

/* visuel plein cadre fondu vers la gauche */
.ph-photo{
  position:absolute; inset:0 0 0 38%; z-index:-1;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);
          mask-image:linear-gradient(90deg,transparent 0,#000 38%);
}

/* ---------- Ordinateur portable MKVExtractor (CSS) ---------- */
.mkv-laptop{ width:min(100%,430px); transform:perspective(900px) rotateY(-9deg) rotateX(2deg); filter:drop-shadow(0 22px 30px rgba(8,22,34,.4)); }
.mkv-screen{
  background:#151c25; border:7px solid #2b323b; border-bottom-width:9px; border-radius:12px 12px 4px 4px;
  padding:16px 18px 18px; color:#e9eef3;
}
.mkv-screen .bar{ display:flex; gap:5px; margin-bottom:12px; }
.mkv-screen .bar i{ width:7px; height:7px; border-radius:50%; background:#4a525d; }
.mkv-screen strong{ display:block; font-size:clamp(15px,1.7vw,19px); margin:0 0 10px; letter-spacing:-.01em; }
.mkv-screen ul{ list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.mkv-screen li{
  display:flex; align-items:center; gap:9px; padding:6px 10px; border-radius:6px;
  background:#1d2733; font-size:clamp(10.5px,1.1vw,12.5px); color:#dce6ee;
}
.mkv-screen li::before{
  content:"✓"; flex:none; width:15px; height:15px; border-radius:50%; display:grid; place-items:center;
  background:#2e8ff0; color:#fff; font-size:10px; font-weight:700;
}
.mkv-base{ height:10px; margin:0 -5%; background:linear-gradient(#cfd5da,#9aa3ab); border-radius:0 0 14px 14px; }

/* ---------- Icône PixIcon ---------- */
.pix-stage{ display:grid; place-items:center; }
.pix-stage img{
  width:min(260px,62%); border-radius:22%;
  filter:drop-shadow(0 24px 28px rgba(8,22,34,.35));
}

/* ---------- Livres ---------- */
.book-duo{ position:relative; width:min(100%,460px); height:300px; }
.book-duo img{ position:absolute; height:270px; width:auto; border-radius:4px; box-shadow:0 18px 30px rgba(10,24,36,.32); }
.book-duo img:first-child{ left:2%; top:18px; transform:rotate(-4deg); }
.book-duo img:last-child{ right:2%; top:8px; transform:rotate(3deg); }

/* ---------- Lecteur vidéo (CSS) ---------- */
.player{ width:min(100%,470px); border-radius:14px; overflow:hidden; background:#10171e; box-shadow:0 22px 40px rgba(8,22,34,.35); }
.player-shot{ position:relative; aspect-ratio:16/8.6; background-position:center; background-size:cover; background-repeat:no-repeat; }
.player-play{
  position:absolute; inset:0; margin:auto; width:56px; height:56px; border-radius:50%;
  background:rgba(20,28,36,.72); border:2px solid rgba(255,255,255,.9); display:grid; place-items:center;
}
.player-play::before{ content:""; border-left:16px solid #fff; border-top:10px solid transparent; border-bottom:10px solid transparent; margin-left:4px; }
.player-bar{ height:30px; display:flex; align-items:center; gap:12px; padding:0 14px; background:#161e26; color:#cfd8df; font-size:10px; }
.player-bar span{ flex:1; height:3px; background:#3b4753; border-radius:2px; }
.player-bar span::after{ content:""; display:block; width:18%; height:100%; background:#fff; border-radius:2px; }

/* ---------- Trois atouts Restomod ---------- */
.feature-tiles{ position:relative; z-index:2; margin-top:-34px; padding:0 0 10px; background:none; }
.feature-tiles .wrap{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-tile{
  background:#fff; border-radius:16px; padding:18px 16px; text-align:center;
  box-shadow:0 4px 14px rgba(16,38,58,.10);
}
.feature-tile svg{ width:30px; height:30px; color:var(--gold); margin:0 auto 8px; display:block; }
.feature-tile h3{ font-size:16px; letter-spacing:-.01em; margin:0 0 5px; }
.feature-tile p{ margin:0; font-size:12.5px; line-height:1.4; color:#425568; }

/* ---------- Accueil ---------- */
.home-hero{ margin-top:64px; height:min(560px,64vw); min-height:460px; background:#2b5470; }
.home-hero-bg{
  background:
    linear-gradient(90deg,#2b5471 0%,#35607d 30%,rgba(60,100,128,.55) 50%,rgba(60,100,128,0) 72%),
    url('restomod-classic-1990s-front2.jpg') 78% 40%/cover no-repeat;
  transform:none;
}
.home-hero h1{ font-size:clamp(38px,4.8vw,58px); max-width:560px; }
.home-hero p{ max-width:420px; }

.home-activities,.home-news{ padding:42px 0 26px; }
.home-section-head .eyebrow{ font-size:11px; letter-spacing:.06em; color:var(--ink); }
.activity-grid{ gap:20px; }
.activity-card{
  background:linear-gradient(180deg,#e6ecf0,#d5e0e6); border-radius:22px;
  min-height:0; box-shadow:0 3px 10px rgba(16,38,58,.08);
}
.activity-card:hover,.news-card:hover{ transform:none; box-shadow:0 10px 24px rgba(16,38,58,.14); }
.activity-top{ min-height:0; padding:20px 20px 12px; }
.activity-card h3{ font-size:23px; margin:2px 0 6px; color:var(--ink); }
.activity-card p{ font-size:13.5px; color:#2b4256; }
.activity-icon svg{ width:24px; height:24px; }
.activity-visual{ height:190px; display:grid; place-items:end center; overflow:hidden; padding:0 18px; }
.activity-card .activity-visual img{ width:100%; height:100%; object-fit:cover; padding:0; background:none; }
.activity-card .activity-visual .mkv-laptop{ width:88%; transform:none; margin-bottom:-6px; filter:none; }
.activity-card .activity-visual .mkv-screen{ border-radius:10px 10px 0 0; padding:12px 14px 6px; }
.activity-card .activity-visual .mkv-screen li{ padding:4px 8px; }
.activity-card .activity-visual .mkv-base{ display:none; }
.activity-card .activity-visual img.pix{ width:150px; height:150px; object-fit:contain; align-self:center; border-radius:24px; mix-blend-mode:multiply; }
.activity-card .activity-visual img.detail{ width:calc(100% + 36px); max-width:none; height:100%; object-fit:cover; }
.activity-link{ background:#eef2f5; padding:14px 20px; font-size:13.5px; }

.home-story{ padding:6px 0 30px; }
.story-panel{ min-height:215px; border-radius:22px; background:linear-gradient(105deg,#35607d,#1d3e56); }
.story-image{
  background:linear-gradient(90deg,transparent 55%,#2c536d),url('macintosh-classic-iii-detail.jpg') center/cover;
}
.story-copy h2{ font-size:clamp(25px,2.7vw,34px); }
.story-copy .eyebrow{ display:none; }

.news-card{ border-radius:18px; }
.news-card>img,.news-visual{ height:150px; }
.news-visual{ display:grid; place-items:center; background:linear-gradient(180deg,#dbe6ed,#b9ccd9); overflow:hidden; }
.news-visual .mkv-laptop{ width:62%; transform:none; filter:none; margin-top:26px; }
.news-visual .mkv-screen{ padding:9px 10px 4px; border-width:5px; }
.news-visual .mkv-screen strong{ font-size:11px; margin-bottom:6px; }
.news-visual .mkv-screen li{ font-size:8px; padding:2px 6px; }
.news-visual .mkv-screen ul{ gap:4px; }
.news-visual .mkv-screen .bar,.news-visual .mkv-base{ display:none; }
.news-visual img{ height:116px; width:116px; object-fit:contain; border-radius:24px; }
.news-tag{ background:var(--steel); }
.news-arrow{ background:#5b87a1; }

/* ---------- Pied de page ---------- */
footer{ background:linear-gradient(180deg,#2a4a63,#1f3e56); color:#e8eef1; border:0; padding:22px 0; }
footer .footer-row{ display:flex; align-items:center; gap:26px; flex-wrap:nowrap; font-size:12.5px; }
footer .footer-row>div:first-child{ display:flex; align-items:center; gap:12px; font-size:12.5px; font-weight:400; color:#dbe6ec; }
.footer-brand{ display:flex; align-items:center; gap:9px; font-size:26px; font-weight:600; color:#fff; letter-spacing:-.02em; }
.footer-brand img{ width:30px; height:30px; border-radius:7px; }
.footer-tag{ max-width:210px; line-height:1.35; }
.footer-links{ margin-left:auto; gap:22px; flex-wrap:wrap; align-items:center; }
.footer-links a{ color:#e7eef1; font-size:12.5px; }
.footer-links a:hover{ color:#fff; text-decoration:underline; }
.footer-links .nav-buy{ padding:9px 18px; margin:0 0 0 8px; color:#17394f; text-decoration:none; }

/* ---------- Pages Restomod : thème clair ---------- */
body.rd-ideal{ background:var(--paper); }

/* ---------- Mobile ---------- */
@media(max-width:900px){
  .page-hero .wrap{ grid-template-columns:1fr; gap:10px; padding-top:36px; padding-bottom:34px; }
  .ph-photo{ inset:0; opacity:.28; -webkit-mask-image:none; mask-image:none; }
  .ph-visual{ min-height:0; margin-top:8px; }
  .nav-links{ overflow-x:auto; scrollbar-width:none; margin-left:0; flex:1; min-width:0;
    -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent); mask-image:linear-gradient(90deg,#000 88%,transparent); }
  .nav-links::-webkit-scrollbar{ display:none; }
  .nav-links a{ padding:7px 11px; font-size:12px; }
  .nav-links + .nav-buy::before{ display:none; }
  .nav .wrap{ gap:10px; }
  .brand{ font-size:21px; }
  footer .footer-row{ flex-wrap:wrap; }
  .footer-links{ margin-left:0; }
}
@media(max-width:620px){
  .nav-buy{ padding:9px 11px; margin-left:0; }
  .nav-buy span{ display:none; }
  .feature-tiles .wrap{ grid-template-columns:1fr; }
  .feature-tiles{ margin-top:-20px; }
  .activity-card{ display:flex; grid-template-columns:none; }
  .activity-card>.activity-top{ grid-column:auto; grid-row:auto; }
  .activity-visual{ height:170px; }
  .story-image{ height:150px; }
  .news-visual{ height:150px; }
  .news-card{ display:block; min-height:0; }
  .news-card>img{ width:100%; height:150px; min-height:0; }
  .home-hero{ height:auto; min-height:560px; padding-bottom:40px; }
  .home-hero-bg{
    background:
      linear-gradient(0deg,#2b5471 8%,rgba(43,84,113,.82) 45%,rgba(43,84,113,.15) 100%),
      url('restomod-classic-1990s-front2.jpg') 62% top/cover no-repeat;
  }
}

.footer-copy{ padding-top:12px; font-size:11.5px; color:#b9cad4; }
.yt-strip{ padding:30px 0 0; }
.yt-strip .yt-stats{ justify-content:center; }
.ph-lede + .ph-lede{ margin-top:-14px; }

.page-hero--tiles .wrap{ padding-bottom:88px; }

body.rd-dark .nav{ background:linear-gradient(180deg,#2d4e68,#27465e); }
body.rd-dark .nav-links a.active{ background:var(--sky); color:#1d3b52; }
body.rd-dark .nav-buy{ background:#f4f6f8; color:#17394f !important; box-shadow:0 2px 8px rgba(8,24,38,.25); }
body.rd-dark footer{ background:linear-gradient(180deg,#2a4a63,#1f3e56); }
.page-hero + .hero-next, .page-hero + section.tight{ padding-top:48px; }
.page-hero + .yt-strip{ padding-top:34px; }

.after-dark-page .nav-links a.active{ background:var(--sky); color:#1d3b52; }

.activity-card .activity-visual.soft-icons{ display:flex; align-items:center; justify-content:center; gap:12px; padding:0 18px; }
.activity-card .activity-visual.soft-icons img{ width:30%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:22%; box-shadow:0 8px 16px rgba(16,38,58,.22); mix-blend-mode:normal; }
.activity-card .activity-visual.book-pair{ display:flex; align-items:flex-end; justify-content:center; gap:16px; padding:14px 18px 0; }
.activity-card .activity-visual.book-pair img{ width:auto; height:100%; max-height:176px; object-fit:contain; border-radius:3px; box-shadow:0 10px 20px rgba(16,38,58,.28); }
.activity-card .activity-visual.book-pair img:first-child{ transform:rotate(-3deg); }
.activity-card .activity-visual.book-pair img:last-child{ transform:rotate(3deg); }
