/* pierrealaingiraud.com — DA maquette : Archivo, clair #f0efec / nuit #0d0c0a, accent or */

:root {
  --bg: #f0efec;
  --bg-card: #f7f6f3;
  --bg-band: #e9e7e1;
  --head: #2e2c28;
  --text: #2e2c28;
  --text2: #5c584f;
  --muted: #8b877c;
  --faint: #b5b1a6;
  --line: #d9d7d0;
  --acc: #8a6d3b;
  --acc-h: #6b5223;
}
html.nuit {
  --bg: #0d0c0a;
  --bg-card: #15130f;
  --bg-band: #15130f;
  --head: #ede7db;
  --text: #ded8cb;
  --text2: #b8b0a0;
  --muted: #a79d8b;
  --faint: #5c574c;
  --line: rgba(237, 231, 219, 0.14);
  --acc: #c9a25e;
  --acc-h: #e0bd7c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
  letter-spacing: -0.1px;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-h); }
img { max-width: 100%; display: block; }

/* Bilingue : html[data-lang] masque l'autre langue */
html[data-lang="fr"] .en { display: none !important; }
html[data-lang="en"] .fr { display: none !important; }
html.nuit .jour-only { display: none !important; }
html:not(.nuit) .nuit-only { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* ---------- NAV ---------- */
.topnav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 22px 40px;
}
.brand { font-size: 15px; font-weight: 500; color: var(--head); white-space: nowrap; }
a.brand:hover { color: var(--head); }
.brand-row { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; min-width: 0; }
.brand-row .pt-sep { color: var(--faint); }
.brand-row .pagename { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-right { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--head); }
.theme-sw {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 6px 10px; cursor: pointer;
  background: none; color: inherit; font: inherit;
}
.theme-sw svg { display: block; }
.theme-sw .ic-sun { stroke: var(--head); }
.theme-sw .ic-moon { stroke: var(--faint); }
html.nuit .theme-sw .ic-sun { stroke: var(--faint); }
html.nuit .theme-sw .ic-moon { stroke: var(--head); }
.lang-sw { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); white-space: nowrap; }
.lang-sw .sep { color: var(--faint); }
.lang-sw .off { color: var(--muted); }
.nav-burger { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }
.nav-burger svg { display: block; stroke: var(--head); }

/* Menu mobile déplié */
.mobile-menu { display: none; }
.mobile-menu.open {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px 20px;
}
.mobile-menu a { padding: 12px 0; font-size: 15px; color: var(--head); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 620px; overflow: hidden; background: #0a0a0a;
  display: block; cursor: pointer;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%); }
.playbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.hero:hover .playbtn { background: rgba(0,0,0,0.7); }
.hero-foot {
  position: absolute; left: 40px; right: 40px; bottom: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-foot .cap { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.hero-foot .playhint { font-size: 12px; letter-spacing: 0.5px; color: rgba(255,255,255,0.9); flex-shrink: 0; }
.hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero.playing .playbtn, .hero.playing .hero-foot, .hero.playing .hero-head, .hero.playing .shade { display: none; }

/* Hero de page dédiée : badge + titre */
.hero-head {
  position: absolute; left: 40px; right: 40px; bottom: 36px;
  display: flex; flex-direction: column; gap: 14px;
}
.badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  border: 1px solid rgba(255,255,255,0.7); color: #fff;
  font-size: 11px; letter-spacing: 1px; padding: 5px 10px;
}
.badge-note { font-size: 12px; color: rgba(255,255,255,0.85); }
.hero-title { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero-title .t-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero-title h1 { margin: 0; font-size: 44px; font-weight: 500; letter-spacing: -0.5px; color: #fff; }
.hero-title .sub { font-size: 15px; color: rgba(255,255,255,0.7); }

/* Badge accent dans le flux (AIDE DU CNC, FRANCE 2030) */
.badge-acc {
  border: 1px solid var(--acc); color: var(--acc);
  font-size: 11px; letter-spacing: 1px; padding: 5px 10px;
  display: inline-block; align-self: flex-start;
}

/* ---------- SECTIONS ---------- */
.sec { padding: 24px 40px 64px 40px; display: flex; flex-direction: column; gap: 24px; }
.sec-label { font-size: 13px; font-weight: 500; color: var(--muted); }
/* Section à deux colonnes 340 + contenu (pages dédiées) */
.sec2 {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px 64px; padding: 72px 40px;
}
.sec2 > .sec-label { padding-top: 2px; }
.sec2 .content { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }

.lead { font-size: 19px; line-height: 1.65; color: var(--text); }
.body-txt { font-size: 15px; line-height: 1.7; color: var(--text2); }
.small-note { font-size: 13px; line-height: 1.7; color: var(--muted); }
.caption { font-size: 12px; color: var(--faint); }

/* META (bande sous le hero des pages dédiées) */
.meta-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px; padding: 40px; border-bottom: 1px solid var(--line);
}
.meta-grid .cell { display: flex; flex-direction: column; gap: 6px; }
.meta-grid .k { font-size: 12px; color: var(--muted); }
.meta-grid .v { font-size: 15px; color: var(--text); }

/* GRILLES */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.gal2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gal3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gal2 img, .gal3 img { width: 100%; height: 300px; object-fit: cover; }

/* CARTES (accueil) */
.card { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.card img { width: 100%; height: 280px; object-fit: cover; }
.card .t { font-size: 17px; font-weight: 500; color: var(--head); }
.card .d { font-size: 13px; line-height: 1.6; color: var(--muted); }
.card .p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.card .p .hl { color: var(--acc); font-weight: 500; }
a.card:hover .t { color: var(--acc); }
.card-s { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.card-s img { width: 100%; height: 250px; object-fit: cover; }
.card-s .t { font-size: 15px; font-weight: 500; color: var(--head); }
.card-s .d { font-size: 12px; line-height: 1.6; color: var(--muted); }
a.card-s:hover .t { color: var(--acc); }

/* LISTES À LIGNES (news, palmarès, vidéos) */
.rows { display: flex; flex-direction: column; max-width: 760px; }
.row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .l { font-size: 15px; color: var(--text); }
.row .l a { color: var(--text); }
.row .l a:hover { color: var(--acc); }
.row .r { font-size: 13px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.row .r a { white-space: nowrap; }

/* NEWS (accueil) */
.news-row {
  display: flex; align-items: baseline; gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row .date { width: 200px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.news-row .txt { font-size: 15px; line-height: 1.55; color: var(--text); }

/* PRESSE */
.press-band { background: var(--bg-band); }
.quote { display: flex; flex-direction: column; gap: 8px; }
.quote .q { font-size: 22px; line-height: 1.5; color: var(--text); }
.quote .who { font-size: 13px; color: var(--muted); }
.press-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px; font-size: 14px; line-height: 1.9; color: var(--text2);
}
.press-head { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }

/* FILMOGRAPHIE */
.filmo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.filmo .col { display: flex; flex-direction: column; gap: 24px; }
.filmo .blk { display: flex; flex-direction: column; gap: 6px; }
.filmo .blk-label { font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.filmo .it { font-size: 14px; line-height: 1.75; color: var(--text); }

/* BOX (sociétés, filmographie complète) */
.box { border: 1px solid var(--line); background: var(--bg-card); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.box .t { font-size: 20px; font-weight: 500; color: var(--head); }
.box .role { font-size: 12px; color: var(--acc); }
.box .d { font-size: 14px; line-height: 1.65; color: var(--muted); }
.box-empty {
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; min-height: 250px;
}
.box-empty .t { font-size: 15px; font-weight: 500; color: var(--head); }

/* Vignette vidéo cliquable dans le flux */
.video {
  position: relative; overflow: hidden; cursor: pointer; background: #0a0a0a; display: block;
}
.video > img { width: 100%; height: 100%; object-fit: cover; }
.video .playbtn { width: 56px; height: 56px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.playing .playbtn { display: none; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 48px 40px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer .t { font-size: 15px; font-weight: 500; color: var(--head); }
.footer .c { font-size: 14px; color: var(--muted); }
.footer .socials { display: flex; gap: 20px; font-size: 13px; }
.footer .legal { font-size: 11px; color: var(--faint); }
.fiche-footer {
  border-top: 1px solid var(--line); padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
}

/* Section showcase sombre (Victimhood — Cornucopia) */
.dark-band { background: #14151c; color: #ded8cb; }
.dark-band .sec-label { color: #a79d8b; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .apropos-grid { grid-template-columns: 1fr !important; }
  .apropos-grid > img { max-height: 420px; }
  .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec2 { grid-template-columns: 1fr; gap: 20px; padding: 56px 40px; }
  .filmo { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .topnav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-right { gap: 12px; }
  .hero { height: 300px; }
  .hero-foot { left: 20px; right: 20px; bottom: 12px; }
  .hero-foot .cap { font-size: 11px; }
  .hero-head { left: 20px; right: 20px; bottom: 20px; }
  .hero-title h1 { font-size: 28px; }
  .playbtn { width: 56px; height: 56px; }
  .sec { padding: 16px 20px 40px 20px; }
  .sec2 { padding: 40px 20px; }
  .meta-grid { grid-template-columns: 1fr; gap: 18px; padding: 28px 20px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .gal3 { grid-template-columns: 1fr; }
  .gal2 { grid-template-columns: 1fr; }
  .gal2 img, .gal3 img { height: 220px; }
  .card img { height: 220px; }
  .card-s img { height: 180px; }
  .news-row { flex-direction: column; gap: 4px; padding: 12px 0; }
  .news-row .date { width: auto; font-size: 11px; }
  .press-links { grid-template-columns: 1fr; }
  .quote .q { font-size: 18px; }
  .row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .row .r { white-space: normal; }
  .gal-block { padding: 0 20px 40px 20px !important; }
  .footer { padding: 32px 20px 24px 20px; }
  .fiche-footer { padding: 28px 20px; }
  .lead { font-size: 17px; }
}
