/*
Theme Name: APIA62 Cinema
Theme URI: https://apia62.fr/
Author: APIA62
Author URI: https://apia62.fr/
Description: Thème WordPress cinéma, moderne, coloré. One-page + sous-pages “Actions/Projets”, bannière vidéo, cadrants avec images, et rubrique actualités (réseaux).
Version: 3.20.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apia62-cinema
Tags: one-column, custom-background, custom-logo, custom-menu, featured-images
*/

:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --text:#0b1220;
  --muted:#475569;
  --border: rgba(2,6,23,.10);
  --shadow: 0 18px 45px rgba(2,6,23,.10);
  --radius: 22px;

  --brand-yellow: #FBC95B;
  --brand-gray: #41413F;
  --brand-white: #FFFFFF;

  /* accents cinéma (peuvent être ajustés via le customizer) */
  --accent-1: #7c3aed; /* violet */
  --accent-2: #06b6d4; /* cyan */

  --max: 1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 10% 0%, color-mix(in srgb, var(--accent-1) 20%, transparent), transparent 55%),
    radial-gradient(900px 520px at 95% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%),
    radial-gradient(900px 520px at 70% 90%, color-mix(in srgb, var(--brand-yellow) 18%, transparent), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 55%, #fff 100%);
}

a{color:inherit;text-decoration:none}
a:focus{outline:2px solid rgba(124,58,237,.35); outline-offset:3px; border-radius:14px}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:20px;top:20px;width:auto;height:auto;padding:10px 12px;background:var(--panel);border:1px solid var(--border);border-radius:14px;z-index:9999}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:200px}
.brand img{height:44px; width:auto; display:block}
/* Menu */
.nav-wrap{display:flex; align-items:center; gap:10px}
.menu, .menu ul{list-style:none;margin:0;padding:0}
.menu{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.menu a{font-size:14px;color:var(--muted);padding:9px 12px;border-radius:14px;display:inline-flex;align-items:center;gap:8px;transition:.15s}
.menu a:hover{color:var(--text);background: rgba(2,6,23,.05)}
.menu li{position:relative}
.menu li.menu-item-has-children > a:after{content:"▾"; font-size:12px; opacity:.7}
.menu .sub-menu{
  position:absolute; top:calc(100% + 8px); right:0;
  min-width:240px;
  background: rgba(255,255,255,.98);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: 0 18px 45px rgba(2,6,23,.12);
  padding:8px;
  display:none;
}
.menu li:hover > .sub-menu{display:block}
.menu .sub-menu a{width:100%; justify-content:flex-start; padding:10px 12px}
@media (max-width: 980px){
  .menu .sub-menu{position:static; display:block; box-shadow:none; border:0; padding:0; background:transparent}
  .menu li.menu-item-has-children > a:after{display:none}
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(2,6,23,.08);
  font-weight:800;
  transition:.15s;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  border:0;
  color:#111827;
  background: linear-gradient(135deg, var(--brand-yellow), color-mix(in srgb, var(--brand-yellow) 60%, white));
  box-shadow: 0 18px 40px rgba(251,201,91,.24);
}
.pip{width:10px;height:10px;border-radius:999px;background: linear-gradient(135deg,var(--accent-1),var(--accent-2))}

/* Video banner */
.hero{padding:22px 0 14px}
.video-banner{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:#000;
  position:relative;
}
.video-banner video{
  width:100%;
  height:330px;
  object-fit:cover;
  display:block;
  filter:saturate(1.05) contrast(1.05);
}
.video-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.video-content{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
}
.video-inner{width:100%; padding:18px}
.kicker{display:inline-flex;gap:10px;font-size:12px;color:rgba(255,255,255,.85);text-transform:uppercase;letter-spacing:.22px}
.kicker .tag{padding:7px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.20);background:rgba(0,0,0,.22)}
h1{
  font-family:'Bebas Neue', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin:10px 0 6px;
  font-size:52px;
  line-height:.95;
  letter-spacing:.6px;
  color:#fff;
}
@media (max-width: 560px){h1{font-size:40px}}
.lead{margin:0;color:rgba(255,255,255,.85);font-size:16px;line-height:1.7;max-width:72ch}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* Sections */
.section{padding:22px 0}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:0 0 14px}
.section-title h2{
  margin:0;
  font-family:'Bebas Neue', sans-serif;
  font-size:28px;
  letter-spacing:.6px;
}
.section-title p{margin:0;color:var(--muted);font-size:13px}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 900px){.grid-2{grid-template-columns:1fr}}

.card{
  background: rgba(255,255,255,.9);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card b{display:block;margin-bottom:6px}
.card p{margin:0;color:var(--muted);line-height:1.75}

/* Projects */
.projects{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width: 1100px){.projects{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 560px){.projects{grid-template-columns:1fr}}

.project{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition:.16s;
}
.project:hover{transform: translateY(-2px)}
.thumb{height:150px;width:100%;background-size:cover;background-position:center;position:relative}
.thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(255,255,255,.95) 95%)}
.project-body{padding:16px}
.badge{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);border:1px solid var(--border);background:rgba(2,6,23,.03);padding:6px 10px;border-radius:999px}
.lamp{width:9px;height:9px;border-radius:99px;background: var(--brand-yellow)}
.project h3{margin:12px 0 8px;font-size:16px}
.project p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.cta{margin-top:14px;display:inline-flex;align-items:center;gap:10px;font-weight:900;font-size:13px;color:#111827}
.cta:after{content:"→";opacity:.9}

/* News */
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 900px){.news{grid-template-columns:1fr}}
.news-card{border:1px solid var(--border);background:rgba(255,255,255,.92);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.news-card .icon{width:42px;height:42px;border-radius:14px;background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900}
.news-card h3{margin:12px 0 6px;font-size:16px}
.news-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}

/* Footer */
.footer{padding:26px 0 40px;color:var(--muted);font-size:13px}
.footer-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--border);padding-top:18px}


/* Above-the-fold: banner + projects only */
.hero-top{
  padding: 18px 0 10px;
}
.hero-top .hero-stack{display:block;padding-top:0;padding-top:0; }
.hero-top .section-title{ margin-top: 10px; }



/* Header logo (new ticket-style logo) */
.brand img{height:38px; width:auto; display:block}
@media (max-width:560px){ .brand img{height:34px} }

/* Social icons in header */
.social{
  display:flex; align-items:center; gap:8px;
}
.social a{
  width:34px; height:34px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  display:flex; align-items:center; justify-content:center;
  color: var(--brand-gray);
  transition:.15s;
}
.social a:hover{ transform: translateY(-1px); background: rgba(2,6,23,.04); color: var(--text); }
.social svg{ width:18px; height:18px; display:block; }

/* Questionnaire */
.form{
  display:grid; gap:12px;
}
.field{
  display:grid; gap:6px;
}
.field label{ font-weight:900; font-size:13px; color: var(--brand-gray); }
.field input, .field textarea, .field select{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px;
  font: inherit;
  background: rgba(255,255,255,.95);
}
.field textarea{ min-height:100px; resize:vertical; }
.form-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.note{ color: var(--muted); font-size:12px; line-height:1.6; margin-top:6px; }



/* Mobile nav (hamburger) */
.nav-toggle{
  display:none;
  width:42px;height:42px;
  border-radius:16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(2,6,23,.08);
  align-items:center;justify-content:center;
  cursor:pointer;
}
.nav-toggle svg{width:20px;height:20px}
@media (max-width: 860px){
  .nav-wrap{gap:10px}
  .nav-toggle{display:inline-flex}
  .menu{
    position: fixed;
    top: 70px; left: 12px; right: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(255,255,255,.98);
    border:1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(2,6,23,.14);
  }
  body.nav-open .menu{display:flex}
  .menu a{width:100%; justify-content:space-between; padding:12px 12px; font-size:15px}
  .menu li{width:100%}
  .menu .sub-menu{
    position: static;
    display:block;
    min-width: 0;
    box-shadow:none;
    border:0;
    padding: 4px 0 0 0;
    background: transparent;
  }
  .menu .sub-menu a{padding:10px 12px}
}




/* v3.6 — Fix équilibre espaces (haut = bas) sur le 1er écran */
:root{ --apia-header-h: 78px; }
@media (max-width: 560px){ :root{ --apia-header-h: 70px; } }

/* Le hero ne doit pas ajouter de padding de section, sinon l'espace devient déséquilibré */
section.hero{ padding: 0 !important; }

/* Le stack occupe exactement la hauteur visible (viewport - header) */
.hero-stack{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-top: var(--hero-offset, 32px);
  
}
@media (max-width: 560px){
  .hero-stack{ padding-top: var(--hero-offset, 24px);  }
}

/* Espace contrôlé entre bannière et projets (et pas de marge parasite) */
.hero-stack .hero-gap{ height: 24px; }
@media (max-width:560px){ .hero-stack .hero-gap{ height: 18px; } }

#projets{width:100%}
#projets .st{ margin-top: 0 !important; }




/* v3.9 — Bannière full width 50vh + projets largeur standard + zéro espace avant bannière */
:root{
   /* customizer controls bottom spacing only */
}

/* Hero: no section padding */
section.hero{ padding: 0 !important; }

/* Hero stack occupies viewport minus header */
:root{ --apia-header-h: 78px; }
@media (max-width:560px){ :root{ --apia-header-h: 70px; } }

.hero-stack{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-top: 0; /* no gap before banner */
  
}

/* Full width banner */
.hero-stack .video-banner,
.hero-stack .banner{
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Video height = 50% viewport */
.hero-stack .video-banner video,
.hero-stack .banner video{
  height: 50vh !important;
}

/* Keep banner inner content aligned to site width */
.hero-stack .video-inner,
.hero-stack .inner{
  max-width: var(--max, 1180px);
  margin: 0 auto;
  padding: 24px 20px;
}

/* Projects must remain in standard container width */
#projets{width:100%}
#projets > .container{max-width:var(--max);margin:0 auto;padding:0 20px}




/* v3.11 — Fix décalage horizontal (100vw -> overflow) */
html, body{ overflow-x: hidden; }

/* Bannière full width sans créer de décalage (évite 100vw qui inclut la scrollbar) */
.hero-stack .video-banner,
.hero-stack .banner{
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}




/* Full-bleed utility (banner only): breakout from container without affecting other sections */
.fullbleed{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero .banner.fullbleed,
.hero .video-banner.fullbleed{
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}




/* v3.13 — Remove big gap between banner and next section (projects moved out of hero) */
.hero-stack{display:block;padding-top:0; height:0 !important; margin:0 !important; padding:0 !important; }




/* v3.14 — Fix définitif du grand espace sous la bannière */
.hero .hero-stack{display:block;padding-top:0;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}




/* v3.15 — Suppression définitive du fullscreen sur .hero-stack (plus de grand espace) */
.hero .hero-stack{display:block;padding-top:0;
  height:auto !important;
  display:block !important;
  flex:none !important;
  justify-content:initial !important;
  padding-top:0 !important;
  
}




/* v3.17 — Anti “bloc blanc” : le réglage d’espacement est désormais bridé (0 → 120px) */
.hero-stack{
  
}



/* v3.18 — Espacement fixe après bannière (plus d'option Customizer) */
.hero-stack{
  padding-bottom: 32px !important;
}



/* v3.18.2 — Fix bannière décalée (nettoyage des anciens overrides) */
.hero-stack{
  display:block !important;
  height:auto !important;
  min-height:auto !important;
  margin:0 !important;
  padding:0 !important;
  padding-bottom:32px !important; /* espacement fixe sous la bannière */
}
.hero-stack > *{height:auto !important;}
.hero .video-banner.banner.fullbleed,
.hero .banner.fullbleed{
  position:relative !important;
  left:50% !important;
  right:auto !important;
  width:100vw !important;
  margin-left:-50vw !important;
  margin-right:-50vw !important;
}
.hero .video-banner video,
.hero .banner video{
  width:100% !important;
  height:50vh !important;
  object-fit:cover !important;
  display:block !important;
}




/* v3.18.3 — Bannière full-width centrée (corrige le bloc à droite) */
.hero .video-banner.banner.fullbleed,
.hero .banner.fullbleed{
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  max-width: none !important;
}



/* Empêche tout alignement à droite hérité */
.hero, .hero-stack{justify-content: flex-start !important; align-items: stretch !important;}




/* v3.19 — Bannière 100% largeur simple (sans breakout) */
.hero .video-banner.banner,
.hero .banner{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
.hero .video-banner video,
.hero .banner video{
  width: 100% !important;
  height: 50vh !important;
  object-fit: cover !important;
  display: block !important;
}




/* v3.19.2 — Menu responsive + sticky (corrige selectors + ajoute dropdown propre) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-wrap{display:flex;align-items:center;gap:10px}
.nav-wrap .menu{
  display:flex;
  align-items:center;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-wrap .menu a{display:inline-block;padding:10px 10px;border-radius:14px;text-decoration:none;color:var(--muted,#475569)}
.nav-wrap .menu a:hover{background:rgba(2,6,23,.05);color:var(--text,#0b1220)}

.nav-toggle{display:none}

/* Dropdown sous-menus desktop */
.nav-wrap .menu .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(2,6,23,.10);
  border-radius:16px;
  padding:8px;
  box-shadow:0 22px 60px rgba(2,6,23,.14);
}
.nav-wrap .menu li{position:relative}
.nav-wrap .menu li:hover > .sub-menu{display:block}
.nav-wrap .menu .sub-menu li{margin:0}
.nav-wrap .menu .sub-menu a{width:100%;padding:10px 12px}

/* Mobile */
@media (max-width: 860px){
  .nav-toggle{display:inline-flex;width:42px;height:42px;border-radius:16px;border:1px solid rgba(2,6,23,.10);background:rgba(255,255,255,.92);align-items:center;justify-content:center;box-shadow:0 10px 28px rgba(2,6,23,.08)}
  .nav-wrap .menu{display:none}
  body.apia-nav-open .nav-wrap .menu{
    display:flex;
    position:fixed;
    top:70px;
    left:12px;
    right:12px;
    flex-direction:column;
    gap:6px;
    padding:10px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(2,6,23,.10);
    border-radius:18px;
    box-shadow:0 22px 60px rgba(2,6,23,.14);
  }
  body.apia-nav-open .nav-wrap .menu a{width:100%;padding:12px 12px}
  /* sous-menu en mobile: simple liste (pas absolute) */
  body.apia-nav-open .nav-wrap .menu .sub-menu{
    position:static;
    display:block;
    border:0;
    box-shadow:none;
    padding:0 0 0 10px;
    background:transparent;
    min-width:0;
  }
}




/* v3.19.3 — Fix final menu responsive (classe unique: body.nav-open) */
@media (max-width: 860px){
  .nav-toggle{display:inline-flex !important;}
  .nav-wrap .menu{display:none !important;}
  body.nav-open .nav-wrap .menu{display:flex !important;}
}




/* v3.19.4 — Menu 100% fiable (breakpoint élargi + header fixé) */
:root{ --apia-header-h: 78px; }
@media (max-width: 560px){ :root{ --apia-header-h: 70px; } }

/* Header toujours visible */
.site-header{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9999 !important;
}

/* Compense le header fixed */
body{ padding-top: var(--apia-header-h) !important; }

/* Desktop: évite le wrap bizarre */
.site-header .menu{
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

/* Responsive plus tôt (tablettes) */
@media (max-width: 1100px){
  .site-header .nav-toggle{display:inline-flex !important;}
  .site-header .menu{
    position: fixed !important;
    top: var(--apia-header-h) !important;
    left: 12px !important; right: 12px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 10px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(2,6,23,.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 60px rgba(2,6,23,.14) !important;
    max-height: calc(100vh - var(--apia-header-h) - 24px) !important;
    overflow: auto !important;
  }
  body.nav-open .site-header .menu{ display:flex !important; }
  body:not(.nav-open) .site-header .menu{ display:none !important; }

  /* Sous-menus en mobile: liste simple */
  .site-header .menu .sub-menu{
    position: static !important;
    display: block !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 4px 0 0 10px !important;
    background: transparent !important;
  }
}

/* Quand menu fermé en responsive, on garde les éléments (réseaux/logo) alignés */
@media (max-width: 1100px){
  .site-header .header-inner{gap:10px}
}




/* v3.19.5 — Header toujours visible (fix scroll) */
.site-header{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
}

/* Admin bar WP (quand connecté) */
body.admin-bar .site-header{ top: 32px !important; }
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px !important; }
}

/* Compense la hauteur du header pour éviter que le contenu passe dessous */
:root{ --apia-header-h: 72px; }
body{ padding-top: var(--apia-header-h) !important; }




/* v3.19.6 — Ultra-force header en haut même si un plugin surcharge */
html body header.site-header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483647 !important; /* max */
}




/* v3.19.7 — Fix hamburger mobile (classe unique) */
@media (max-width: 1100px){
  body.nav-open .nav-wrap .menu,
  body.apia-nav-open .nav-wrap .menu{
    display:flex !important;
  }
}



/* v3.20.0 — Disable dropdown */
.nav-wrap .sub-menu, .nav-wrap .submenu{display:none !important;}
