/*
Theme Name: Cap Éloquence
Theme URI: https://cap-eloquence.com
Author: Cap Éloquence
Author URI: https://cap-eloquence.com
Description: Thème WordPress moderne, premium et inspirant pour Cap Éloquence (art oratoire, leadership, prise de parole). Gutenberg friendly, responsive, animations légères.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cap-eloquence
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, editor-style, one-column, two-columns
*/

/* =========================================================
   Base / Reset + Tokens (Logo palette: Navy / Gold / White)
========================================================= */
:root{
  /* Logo-like palette */
  --ce-navy-950: #061427;  /* deep navy */
  --ce-navy-900: #081a33;
  --ce-navy-800: #0b2242;
  --ce-blue-600: #1f6feb;  /* accent blue */
  --ce-blue-500: #2f6bff;

  --ce-gold-500: #d6b25e;
  --ce-gold-400: #f1d48a;

  /* UI colors */
  --ce-text: rgba(255,255,255,0.92);
  --ce-muted: rgba(255,255,255,0.72);
  --ce-soft: rgba(255,255,255,0.10);
  --ce-border: rgba(255,255,255,0.12);

  /* Surfaces (LESS WHITE) */
  --ce-surface: rgba(8,26,51,0.55);
  --ce-surface-2: rgba(8,26,51,0.72);

  /* Layout */
  --ce-max: 1200px;
  --ce-pad: 20px;

  --ce-radius: 18px;
  --ce-radius-lg: 26px;

  --ce-shadow: 0 18px 60px rgba(0,0,0,0.45);

  /* Type scale */
  --ce-h1: clamp(2.1rem, 4vw, 3.4rem);
  --ce-h2: clamp(1.6rem, 2.6vw, 2.35rem);
  --ce-h3: clamp(1.15rem, 2vw, 1.55rem);
  --ce-p: 1.02rem;
  --ce-lh: 1.65;
}

*,
*::before,
*::after { box-sizing: border-box; }

html{ scroll-behavior: smooth; }
img{ max-width: 100%; height: auto; display: block; }
button, input, textarea{ font: inherit; }

::selection{ background: rgba(214,178,94,0.25); }

/* =========================================================
   Body (logo vibes: navy + gold glow)
========================================================= */
body{
  margin: 0;
  color: var(--ce-text);
  background:
    radial-gradient(900px 650px at 14% 10%, rgba(47,107,255,0.18), transparent 58%),
    radial-gradient(900px 650px at 88% 18%, rgba(214,178,94,0.16), transparent 60%),
    radial-gradient(900px 650px at 50% 110%, rgba(255,255,255,0.05), transparent 62%),
    linear-gradient(180deg, var(--ce-navy-950), var(--ce-navy-900));
  font-size: 16px;
  line-height: var(--ce-lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* WP base */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* =========================================================
   Layout helpers
========================================================= */
/* ✅ Site FULL largeur (plus de container centré) */
.ce-container{
  width: 100%;
  max-width: none;          /* IMPORTANT: enlève la limite 1200px */
  margin: 0;                /* plus de centrage */
  padding-left: var(--ce-pad);
  padding-right: var(--ce-pad);
}


.ce-section{
  padding: clamp(56px, 8vw, 110px) 0;
  position: relative;
}

/* Premium card (less white, more navy) */
.ce-card{
  background:
    linear-gradient(180deg, rgba(8,26,51,0.72), rgba(8,26,51,0.45));
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-lg);
  box-shadow: var(--ce-shadow);
  backdrop-filter: blur(10px);
}

/* Pill */
.ce-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ce-border);
  background: rgba(8,26,51,0.50);
  color: var(--ce-muted);
  font-weight: 650;
  letter-spacing: 0.2px;
}

.ce-badge-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ce-gold-500);
  box-shadow: 0 0 0 5px rgba(214,178,94,0.14);
}

/* =========================================================
   Typography
========================================================= */
h1, h2, h3, h4{
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.96);
}

h1{ font-size: var(--ce-h1); }
h2{ font-size: var(--ce-h2); }
h3{ font-size: var(--ce-h3); }

p{
  margin: 0 0 1em;
  font-size: var(--ce-p);
  color: var(--ce-muted);
}

.ce-lead{
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.78);
}

/* Title gradient: WHITE -> GOLD (no big white wash) */
.ce-title-gradient{
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78), var(--ce-gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Buttons
========================================================= */
.ce-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--ce-border);
  background: rgba(8,26,51,0.55);
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.ce-btn:hover{
  transform: translateY(-2px);
  background: rgba(8,26,51,0.70);
  border-color: rgba(255,255,255,0.22);
  text-decoration: none;
}

/* Primary: blue with gold subtle glow */
.ce-btn-primary{
  border-color: rgba(47,107,255,0.45);
  background: linear-gradient(135deg, rgba(47,107,255,0.95), rgba(31,111,235,0.55));
  box-shadow: 0 14px 40px rgba(31,111,235,0.22);
}

.ce-btn-primary:hover{
  filter: brightness(1.06);
}

/* =========================================================
   Header / Nav (base)
========================================================= */
.ce-site-header{
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(6,20,39,0.70);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
}

.ce-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.ce-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ce-brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, var(--ce-gold-400), var(--ce-gold-500));
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

/* Desktop nav */
.ce-nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.ce-nav a,
.ce-nav .ce-nav-link{
  color: rgba(255,255,255,0.86);
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ce-nav a:hover,
.ce-nav .ce-nav-link:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.ce-nav-toggle{
  display: none;
}

/* =========================================================
   Footer
========================================================= */
.ce-footer{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 32px 0;
  color: rgba(255,255,255,0.74);
}

/* =========================================================
   WP Content / Blocks (Gutenberg)
========================================================= */
.entry-content{ overflow-wrap: anywhere; }

.wp-block-image img{ border-radius: 16px; }

.wp-block-button__link{
  border-radius: 999px !important;
  font-weight: 800;
}

.alignwide{
  max-width: min(1400px, 100%);
  margin-left: auto !important;
  margin-right: auto !important;
}
.alignfull{
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* =========================================================
   Reveal animation (for JS)
========================================================= */
.ce-reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.ce-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px){
  .ce-nav{ display: none; }
  .ce-nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8,26,51,0.55);
    color: rgba(255,255,255,0.92);
  }
}

@media (max-width: 520px){
  :root{ --ce-pad: 16px; }
  .ce-header-inner{ min-height: 68px; }
}
/* Logo sizing driven by Customizer */
.wp-block-site-logo img{
  width: var(--ce-logo-size, 88px) !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transition: transform .25s ease, filter .25s ease;
}

.wp-block-site-logo:hover img{
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}
/* ✅ Empêche WordPress / le thème de re-bloquer la largeur */
.wp-site-blocks,
.site,
.site-main,
.entry-content{
  max-width: none !important;
}

/* ✅ Alignwide = pleine largeur aussi (si tu veux zéro vide) */
.alignwide{
  max-width: none !important;
}
/* ==============================
   Immersive banner (Grande photo)
   Production polish
============================== */

/* Evite les bords moches / garantit le full */
.ce-immersive .wp-block-cover{
  overflow: hidden;
}

/* Typo KPI */
.ce-kpi{
  margin: 0 0 6px 0 !important;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.96);
}

/* Bars (mini graphique) */
.ce-bar-track{
  border-radius: 999px;
  padding: 6px;
}

.ce-bar-fill{
  border-radius: 999px;
  height: 18px;
}

/* Pourcentages */
.ce-bar-80{ width: 80%; }
.ce-bar-65{ width: 65%; }
.ce-bar-50{ width: 50%; }

/* Sur mobile : label au-dessus pour éviter les colonnes serrées */
@media (max-width: 700px){
  .ce-bar-row{ flex-wrap: wrap; }
  .ce-bar-row .wp-block-column{ flex-basis: 100% !important; }
  .ce-bar-row .wp-block-column p{ margin-bottom: 6px !important; }
}
/* =========================================
   ✅ FIX DEFINITIF: cover image centrée + zoom
   (corrige le bug "collée à gauche")
========================================= */

.ce-immersive-cover{
  overflow: hidden !important;
}

/* On neutralise toutes les positions foireuses */
.ce-immersive-cover .wp-block-cover__image-background{
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;

  transform: translate(-50%, -50%) scale(1.12) !important;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  object-fit: cover !important;
  object-position: 50% 40% !important;

  filter: contrast(1.06) saturate(1.06);
}

/* Hover premium (facultatif mais beau) */
.ce-immersive-cover:hover .wp-block-cover__image-background{
  transform: translate(-50%, -50%) scale(1.16) !important;
}

/* Mobile: zoom plus léger */
@media (max-width: 640px){
  .ce-immersive-cover .wp-block-cover__image-background{
    transform: translate(-50%, -50%) scale(1.06) !important;
    object-position: 50% 35% !important;
  }
  .ce-immersive-cover:hover .wp-block-cover__image-background{
    transform: translate(-50%, -50%) scale(1.08) !important;
  }
}
