/* ================================
   VARIABLES GLOBALES
=================================== */
:root {
  --cl-bg: #ffffff;
  --cl-text: #0b0b0b;
  --cl-muted: #545c66;
  --cl-accent: #d61f26;
  --cl-surface: #f6f8fb;
  --radius: 16px;
  --maxw: 1200px;
  --gap: 28px;

  /* Thème bleu Compket */
  --ck-primary: #0A3A82;
  --ck-primary-600: #0d3f93;
  --ck-accent: #E1492D;
  --ck-border: #e6ebf2;
}

/* ================================
   BASE
=================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--cl-text);
  background: var(--cl-bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }

/* ================================
   LAYOUT / GRILLE
=================================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; background: var(--cl-bg); }
.section.alt { background: var(--cl-surface); }

.grid { display: grid; gap: var(--gap); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* ================================
   TYPOGRAPHIE
=================================== */
.h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 12px;
}
.h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
}
.lead { font-size: 18px; color: #26303a; opacity: .9; }

/* ================================
   BOUTONS
   (un seul set de règles, pas de doublon)
=================================== */
.btn,
.button,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--ck-border);
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}
.btn:hover,
.button:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary,
.wp-element-button.is-primary {
  background: var(--ck-accent);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover,
.wp-element-button.is-primary:hover { background: #c53f28; }
.btn-secondary { background: #fff; color: var(--ck-primary); border-color: var(--ck-primary); }
.btn-secondary:hover { background: #f7f9fc; }
.hero .btn { margin: .25rem .35rem; }

/* ================================
   NAVBAR & LOGO
=================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}
.navbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.navbar .menu { display: flex; gap: 22px; }
.navbar a { font-weight: 600; }

/* Logo agrandi (avec conteneur débloqué) */
.logo img,
.header .custom-logo,
.site-header .custom-logo,
.site-branding img,
.brand img {
  height: 120px !important;
  max-height: 120px !important;
  width: auto;
}
.site-branding,
.brand {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
@media (max-width: 767.98px) {
  .logo img,
  .header .custom-logo,
  .site-header .custom-logo,
  .site-branding img,
  .brand img {
    height: 85px !important;
    max-height: 85px !important;
  }
}

/* ================================
   HERO
=================================== */
.hero {
  position: relative;
  height: 60vh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}
.hero .poster {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(.8);
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.hero .content {
  position: relative;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

/* ================================
   FORMULAIRES
=================================== */
.form { display: grid; gap: 14px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d9e1ea;
  background: #fff;
}
.form .row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .form .row { grid-template-columns: 1fr; }
}
.form .hint { font-size: 12px; color: #6b7280; }

/* ================================
   FOOTER
=================================== */
.footer {
  background: #0b0b0b;
  color: #dfe7f0;
  padding: 48px 0;
  margin-top: 60px;
}
.footer a { color: #dfe7f0; opacity: .9; }
.footer small { opacity: .7; }

/* ================================
   COOKIE BANNER
=================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #0b0b0b;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #2a2f36;
  display: none;
  z-index: 100;
}
.cookie-banner.show { display: block; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-actions .btn { border-color: #fff; color: #fff; }
.cookie-actions .btn.primary { background: var(--cl-accent); border-color: var(--cl-accent); }

/* ================================
   SITE HEADER (effet scroll)
=================================== */
.site-header {
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.transparent:not(.is-scrolled) {
  backdrop-filter: saturate(1.2) blur(6px);
  background: linear-gradient(to bottom, rgba(255,255,255,.65), rgba(255,255,255,0));
}
.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 6px 20px rgba(2,8,23,.08);
}

/* Footer bleu corporate (si utilisé ailleurs que .footer) */
.site-footer { background: #0A3A82; color: #d2dae5; }
.site-footer a { color: #cddfff; }
