/*
Theme Name: Amicale FLIM — Inspiro Child
Theme URI: https://www.wpzoom.com/themes/inspiro/
Description: Première base du site L’Amicale FLIM, enfant du thème Inspiro.
Author: L’Amicale FLIM
Template: inspiro
Version: 0.3.1
Text Domain: amicale-flim
*/

:root {
  --af-ink: #10110f;
  --af-paper: #f2efe7;
  --af-white: #f8f5ed;
  --af-muted: #b9b6ad;
  --af-gutter: clamp(18px, 4vw, 64px);
}

html { scroll-behavior: smooth; }
body {
  background: var(--af-paper);
  color: var(--af-ink);
  font-family: Arial, Helvetica, sans-serif;
}
.af-site { overflow: hidden; }
.af-site a { color: inherit; text-decoration: none; }
.af-site a:hover { opacity: .76; }
.af-kicker {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: 11px; font-weight: 600;
}
.af-hero {
  min-height: min(760px, 90vh);
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  color: var(--af-white); background: #171916;
  background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.08) 80%), var(--af-hero-image);
  background-size: cover; background-position: center;
  padding: clamp(28px, 5vw, 76px) var(--af-gutter);
}
.af-hero:after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,.4), transparent 42%);
  pointer-events: none;
}
.af-nav {
  position: absolute; z-index: 2; top: 26px; right: var(--af-gutter);
  display: flex; gap: clamp(16px, 3vw, 38px); align-items: center;
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
}
.af-brand { max-width: 560px; }
.af-logo-image { display:block; width:min(100%, 440px); height:auto; margin:0 0 12px; }
.af-brand-small { display:block;
  margin: 0 0 clamp(6px, 1vw, 14px); font-size: clamp(28px, 4vw, 58px);
  line-height: 1; letter-spacing: .02em; font-weight: 500;
}
.af-brand-large { display:block;
  font-size: clamp(80px, 12vw, 170px); line-height: 1;
  font-weight: 900; letter-spacing: -.01em; margin: 0 0 26px;
  transform: rotate(-3deg); transform-origin: left center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}
.af-tagline {
  font-size: clamp(14px, 1.5vw, 20px); line-height: 1.4;
  letter-spacing: .08em; max-width: 260px; margin: 0;
}
.af-hero-note {
  position: absolute; z-index: 1; right: var(--af-gutter); bottom: 12%;
  max-width: 300px; font-size: clamp(22px, 3vw, 40px);
  line-height: 1.05; font-style: italic; transform: rotate(-5deg);
}
.af-brush {
  width: 105px; height: 5px; background: var(--af-white);
  transform: rotate(-8deg); margin-top: 20px; border-radius: 90% 10% 70% 20%;
}
.af-link {
  display: inline-block; margin-top: 32px; font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; border-bottom: 1px solid currentColor;
  padding-bottom: 8px;
}
.af-categories {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px; background: var(--af-paper); padding: 5px;
}
.af-category {
  min-height: 340px; display: flex; align-items: flex-end; color: white;
  padding: clamp(20px, 3vw, 42px); background: #343831;
  background-image: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.02) 80%), var(--af-card-image);
  background-size: cover; background-position: center; position: relative;
}
.af-category h2 { font-size: clamp(19px, 2vw, 28px); letter-spacing: .06em; line-height: 1.08; font-weight: 500; margin: 0 0 12px; }
.af-category p { font-size: 13px; line-height: 1.45; max-width: 300px; margin: 0; }
.af-category .af-category-services { font-size: 10px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; max-width: 320px; opacity: .9; }
.af-category .af-category-services + p { max-width: 300px; }
.af-category .af-link { margin-top: 22px; }
.af-manifesto {
  min-height: 330px; color: var(--af-white); background: #151714;
  background-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.1)), var(--af-manifesto-image);
  background-size: cover; background-position: center;
  padding: clamp(38px, 6vw, 86px) var(--af-gutter);
  display: flex; align-items: center;
}
.af-manifesto-inner { max-width: 520px; }
.af-manifesto h2 {
  font-size: clamp(26px, 3.1vw, 43px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 500; margin: 0;
}
.af-manifesto p { max-width: 390px; font-size: 15px; line-height: 1.6; margin-top: 26px; }
.af-films { padding: clamp(34px, 5vw, 66px) var(--af-gutter); }
.af-section-head { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:24px; }
.af-section-head h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin:0; font-weight: 700; }
.af-rule { height:1px; flex:1; background: rgba(16,17,15,.3); }
.af-film-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:22px; }
.af-film-thumb { display:block; aspect-ratio: 16 / 10; background:#343831; background-size:cover; background-position:center; margin-bottom:12px; }
.af-film h3 { font-size: 12px; text-transform:uppercase; letter-spacing:.08em; margin:0 0 6px; }
.af-film p { font-size:12px; margin:0; color:#55564f; }
.af-about {
  background:#e4e0d6; padding: clamp(42px, 7vw, 94px) var(--af-gutter);
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 100px); align-items:center;
}
.af-about h2 { font-size: clamp(28px, 4vw, 54px); line-height:1.05; font-weight:500; margin:0; }
.af-about p { font-size:16px; line-height:1.7; max-width:560px; }
.af-contact { background:var(--af-ink); color:var(--af-white); padding:50px var(--af-gutter); }
.af-contact h2 { font-size:clamp(26px, 3.4vw, 44px); font-weight:500; margin:0 0 12px; }
.af-footer {
  background:#090a09; color:#f3f0e8; padding:24px var(--af-gutter);
  display:flex; justify-content:space-between; gap:20px; align-items:center;
  font-size:11px; letter-spacing:.04em;
}
.af-footer-nav { display:flex; gap:20px; text-transform:uppercase; font-size:10px; letter-spacing:.1em; }
@media (max-width: 760px) {
  .af-logo-image { width:min(86vw, 390px); }
  .af-hero { min-height: 740px; align-items:flex-end; }
  .af-nav { top:18px; left:var(--af-gutter); right:auto; flex-wrap:wrap; }
  .af-hero-note { right:var(--af-gutter); bottom:38%; max-width:180px; }
  .af-categories { grid-template-columns:1fr; }
  .af-category { min-height:260px; }
  .af-film-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px 12px; }
  .af-about { grid-template-columns:1fr; }
  .af-footer { align-items:flex-start; flex-direction:column; }
  .af-footer-nav { flex-wrap:wrap; }
}


/* Correctifs : logo sans halo et masquage du header parent sur l’accueil personnalisée */
body.home .site-header,
body.home #masthead,
body.home .header-wrap,
body.home .navbar,
body.home .site-branding,
body.home .site-title,
body.home .site-description,
body.home .header-inner,
body.home .header-navigation,
body.home .wpz-header,
body.home .inspiro-header,
body.home .site-header-wrapper {
  display: none !important;
}
body.home .site-content,
body.home #content,
body.home .content-area,
body.home #primary,
body.home .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.home .af-site { margin-top: 0 !important; }
.af-logo-image {
  width: min(100%, 390px);
  filter: none !important;
  box-shadow: none !important;
  mix-blend-mode: screen; /* un logo à fond noir se fond dans le hero sombre */
}

/* Titres lisibles : le thème parent colore les h2 en noir */
.af-site .af-hero h2, .af-site .af-category h2, .af-site .af-manifesto h2, .af-site .af-contact h2 { color: inherit; }
