/*
Theme Name: SEP-UNSA Éducation
Theme URI: https://github.com/deuzben-ai/sep2
Author: Antigravity AI
Description: Thème WordPress moderne, immersif et asymétrique pour le syndicat SEP-UNSA Éducation, conçu selon le système de design avec une grille Bento pour les actualités.
Version: 1.0.0
Template: teluro
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sep-unsa
*/

/* ═══════════════════════════════════════════════════
   SEP-UNSA Éducation — Design System
   Implémenté depuis SEP-UNSA Final.dc.html
   Stratégie : hero + secteurs TOUJOURS above the fold
   ═══════════════════════════════════════════════════ */

/* ── Police locale Londrina ── */
@font-face {
  font-family: 'Londrina Solid';
  src: url('londrina.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ── */
:root {
  --c1: #1B9ED3;
  --c2: #E8197A;
  --c3: #10B981;
  --dark: #0C1A2E;
  --footer-bg: #0A1525;
  --off-white: #FAFAF5;
  --border: #E4E4DC;
  --text-muted: #4B5563;
  --text-light: #6B7280;
  --text-xlight: #9CA3AF;
  --nav-h: 72px; /* barre 4px + header 68px */
  /* Typographie titres */
  --font-title: 'Londrina Solid', 'Barlow Condensed', Arial, sans-serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
/* Le reset margin/padding ne doit pas s'appliquer au contenu rendu par Colibri Page Builder (Pro).
   Ce contenu n'est pas toujours enveloppé dans notre classe .entry-content--builder : certaines
   pages utilisent le template "full-width-page.php" du thème parent (via l'attribut Page Template
   dans l'admin WP), qui ne passe pas par nos fichiers page.php / template-fullwidth.php.
   On cible donc en plus l'attribut data-colibri-id, posé par Colibri sur tous les éléments qu'il
   génère quel que soit le template qui les enveloppe.
   Important : l'exclusion est enveloppée dans :where() pour garder une spécificité nulle, comme
   le sélecteur universel d'origine. Sans :where(), les :not() chaînés (classe + attribut) élèvent
   la spécificité de cette règle au-dessus de nos propres composants (.nav-inner, .nav-link, etc.),
   qui se retrouvent alors écrasés (paddings/gaps du menu remis à zéro malgré leur propre règle). */
:where(*:not(.entry-content--builder):not(.entry-content--builder *):not([data-colibri-id]):not([data-colibri-id] *)) {
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--dark);
  background: #FAFBFD; /* Remplacé blanc pur par un blanc bleuté très doux */
  -webkit-font-smoothing: antialiased;
}
img:not([data-colibri-id] img):not(.entry-content--builder img) { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Layout ── */
.container {
  max-width: 1920px; /* Occupation de l'espace maximale sur grand écran */
  margin: 0 auto;
  padding: 0 48px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: transform .25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .25s ease, opacity .18s, background .18s;
  font-family: 'DM Sans', system-ui;
  font-weight: 600;
  border-radius: 5px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--accent  { 
  background: var(--c2); 
  color: #fff; 
  font-size: 18px; /* Agrandissement du texte bouton */
  padding: 16px 36px; 
  box-shadow: 0 4px 15px rgba(232, 25, 122, 0.22);
}
.btn--accent:hover { 
  opacity: .95; 
  box-shadow: 0 8px 24px rgba(232, 25, 122, 0.35);
}
.btn--outline { color: var(--dark); font-size: 18px; padding: 14px 24px; border: 2px solid #D0D8E0; background: transparent; }
.btn--outline:hover { border-color: var(--dark); }
.btn--blue    { 
  background: var(--c1); 
  color: #fff; 
  font-size: 18px; 
  padding: 15px 30px; 
  box-shadow: 0 4px 14px rgba(27, 158, 211, 0.2);
}
.btn--blue:hover { 
  opacity: .95; 
  box-shadow: 0 8px 22px rgba(27, 158, 211, 0.32);
}
.btn--ghost   { color: rgba(255,255,255,.7); font-size: 19px; padding: 16px 32px; border: 2px solid rgba(255,255,255,.2); background: transparent; }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); color: #fff; }

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.nav {
  background: var(--off-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
nav ul,
nav li,
header ul,
header li,
footer ul,
footer li,
.nav-links,
.nav-links li,
.mobile-nav-links-wrapper,
.mobile-nav-links-wrapper li,
.menu-menu-principal-container ul,
.menu-menu-principal-container li,
.widget_nav_menu ul,
.widget_nav_menu li,
.nav-dropdown {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.entry-content::after,
.entry-content--builder::after {
  content: "";
  display: table;
  clear: both;
}
.nav-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--c2) 0%, var(--c1) 100%);
}
.nav-inner {
  max-width: 1920px; /* Largeur maximale augmentée */
  margin: 0 auto;
  padding: 0 48px;
  height: 80px; /* Un peu plus grand pour aérer */
  display: flex;
  align-items: center;
}
.nav-logo-link { display: flex; align-items: center; margin-right: 48px; flex-shrink: 0; }
.nav-logo { height: 54px; width: 54px; object-fit: contain; border-radius: 50%; }
.nav-links { flex: 1; display: flex; gap: 2px; align-items: center; }
.nav-link {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 3px;
  transition: background .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--c1); color: #fff; }
.nav-link--active { color: var(--dark); font-weight: 600; }
/* Parents avec sous-menu : non cliquables, hover via .nav-item */
.nav-link--has-sub { pointer-events: none; }
.nav-item:hover > .nav-link--has-sub { background: var(--c1); color: #fff; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .2s; }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
  gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-link { font-size: 15px; padding: 10px 4px; }

/* ── Dropdowns desktop ── */
.nav-item {
  position: relative;
}
.nav-link--has-sub::after {
  content: '▾';
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.55;
  display: inline-block;
  transition: transform .2s;
}
.nav-item:hover .nav-link--has-sub::after { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  /* top: 100% (sans espace) pour que la zone survolée du lien et celle du dropdown se touchent
     sans discontinuité : un espace ici (même comblé par un pont ::before) crée une fenêtre où le
     curseur n'est ni sur .nav-item ni sur le dropdown, ce qui fait perdre le :hover et referme le
     menu avant que l'utilisateur puisse cliquer un lien (voir memoire.md, bug #15). */
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  padding: 6px 0;
  flex-direction: column;
  z-index: 200;
}
.nav-item:hover .nav-dropdown { display: flex; }
.nav-dropdown-link {
  padding: 9px 18px;
  color: var(--text-muted);
  font: 400 14px/1 'DM Sans', system-ui;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dropdown .nav-dropdown-link:hover { background: var(--c1); color: #fff; }
.nav-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 10px;
}

/* ── Mobile sous-menus ── */
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin: 2px 0 4px;
}
.mobile-nav-sub .nav-link { font-size: 14px; color: var(--text-muted); padding: 7px 4px; }

/* ═══════════════════════════════════════════════════
   ABOVE FOLD — Wrapper qui force hero+secteurs
   à tenir dans 100dvh (hauteur visible totale)
   ═══════════════════════════════════════════════════ */
.above-fold {
  /* Mobile : min-height pour ne pas couper le contenu */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
}
/* Desktop : hauteur stricte pour garantir les secteurs above-fold */
@media (min-width: 901px) {
  .above-fold {
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    min-height: 0;
    overflow: hidden;
  }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  /* Prend l'espace restant après les secteurs */
  flex: 1;
  min-height: 0;
  background: linear-gradient(90deg, #07101E 0%, rgba(11, 50, 77, 0.7) 60%, #0B324D 100%); /* Fond dégradé assombri à gauche pour la lisibilité */
  padding: 32px 0 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Trame de points blancs subtile par-dessus */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* ── Effets d'irradiation mouvante ── */
.hero-glow-1, .hero-glow-2, .hero-glow-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}
.hero-glow-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(27, 158, 211, 1) 0%, rgba(27, 158, 211, 0) 80%);
  top: -20%;
  left: -10%;
  animation: float-glow-1 12s infinite alternate ease-in-out;
}
.hero-glow-2 {
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(232, 25, 122, 1) 0%, rgba(232, 25, 122, 0) 80%);
  bottom: -20%;
  right: -10%;
  animation: float-glow-2 15s infinite alternate ease-in-out;
}
.hero-glow-3 {
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(16, 185, 129, 1) 0%, rgba(16, 185, 129, 0) 80%);
  top: 10%;
  left: 30%;
  animation: float-glow-3 10s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(180px, 120px) scale(1.15); }
  100% { transform: translate(80px, 220px) scale(0.9); }
}
@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-200px, -150px) scale(0.85); }
  100% { transform: translate(-80px, -250px) scale(1.1); }
}
@keyframes float-glow-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 100px) scale(1.2); }
  100% { transform: translate(150px, -80px) scale(0.85); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 345px); /* sticker 265px + right 40px + gap 40px */
}
.hero-title {
  font-family: 'Anton', Impact, 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 1.05;
  letter-spacing: -.01em; /* Ajusté pour */
  text-transform: uppercase;
  color: #ffffff; /* Blanc pour contraster sur le fond bleu foncé */
  margin: 0 0 20px;
  text-wrap: balance;
  text-shadow: 0 2px 4px rgba(12, 26, 46, 0.9), 0 0 15px rgba(12, 26, 46, 0.9);
}

/* ── BANDEAU DEROULANT (NEWS TICKER) ── */
.ticker-wrap {
  width: 100%;
  background: #0A1525;
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 48px;
  display: flex;
  overflow: hidden;
  align-items: center;
  z-index: 99;
  position: relative;
}
.ticker-title {
  background: var(--c2); /* Couleur accent Rose */
  color: #fff;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .05em;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 4px 0 15px rgba(0,0,0,0.5);
}
.ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker__item-wrapper {
  display: flex;
  white-space: nowrap;
  animation: ticker-move 38s linear infinite;
  will-change: transform;
}
.ticker__item-wrapper:hover {
  animation-play-state: paused;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font: 500 15px/1 'DM Sans', system-ui;
  transition: color 0.2s ease;
}
.ticker__item:hover {
  color: var(--c1); /* Effet néon bleu au survol */
}
.ticker-dot {
  color: var(--c3); /* Vert émeraude */
  font-size: 20px;
  margin-right: 12px;
  line-height: 1;
}

@keyframes ticker-move {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.hero-title em {
  font-style: normal;
  color: #5CD6FF; /* Cyan néon brillant pour ressortir sur le bleu foncé */
  text-shadow: 0 1px 2px rgba(12, 26, 46, 0.6), 0 0 8px rgba(12, 26, 46, 0.5);
}
/* Flottement du sticker — desktop */
@keyframes sticker-float {
  0%, 100% {
    transform: translateY(-50%) rotate(5deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.45), 0 16px 48px rgba(232,25,122,0.40);
  }
  50% {
    transform: translateY(calc(-50% - 8px)) rotate(4.5deg);
    box-shadow: 10px 14px 0 rgba(0,0,0,0.52), 0 28px 64px rgba(232,25,122,0.60);
  }
}
.hero-logo-wrap {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: logo-float 3s ease-in-out infinite;
}
.hero-logo-xl {
  width: 25vw;
  max-width: 360px;
  min-width: 220px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.65)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero-logo-xl:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.85)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}
@keyframes logo-float-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}



/* ═══════════════════════════════════════════════════
   SECTEURS — Bande fixe en bas de l'above-fold
   ═══════════════════════════════════════════════════ */
.secteurs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.secteur {
  padding: 36px 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .4s ease, filter .3s ease;
  z-index: 1;
}
.secteur:hover {
  transform: translateY(-12px) scale(1.03);
  filter: brightness(1.08);
}
.secteur--blue   { background: var(--c1); }
.secteur--pink   { background: var(--c2); }
.secteur--green  { background: var(--c3); }
.secteur--blue:hover { box-shadow: 0 24px 48px rgba(27, 158, 211, 0.4); }
.secteur--pink:hover { box-shadow: 0 24px 48px rgba(232, 25, 122, 0.4); }
.secteur--green:hover { box-shadow: 0 24px 48px rgba(16, 185, 129, 0.4); }
.secteur-num {
  position: absolute;
  bottom: -20px; right: -10px;
  font-size: 150px;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  transition: transform .5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity .3s ease;
}
.secteur:hover .secteur-num {
  transform: scale(1.4) rotate(-20deg) translateY(-10px);
  opacity: 0.3;
}
.secteur-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 48px; /* Agrandissement (de 42px à 48px) */
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}
.secteur-desc  { font: 400 16px/1.45 'DM Sans', system-ui; color: rgba(255,255,255,.82); margin: 0; }
.secteur-cta   { display: flex; align-items: center; gap: 10px; position: relative; margin-top: 16px; }
.secteur-cta span:first-child { font: 600 15px 'DM Sans', system-ui; color: #fff; }
.secteur-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}
.secteur:hover .secteur-arrow {
  transform: translateX(8px);
  background: #ffffff;
  color: var(--dark);
}

/* ═══════════════════════════════════════════════════
   DERNIÈRES ACTUS
   ═══════════════════════════════════════════════════ */
.actus-section { 
  background: #F4F6F9; /* Fond légèrement grisé pour faire ressortir les cartes blanches */
  background-image: radial-gradient(rgba(12, 26, 46, 0.02) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  padding: 72px 0 64px; 
}
.actus-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }
.section-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 52px; /* Agrandissement de 44px à 52px */
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.link-all { color: var(--c1); font: 500 16px 'DM Sans', system-ui; text-decoration: none; transition: opacity .15s; }
.link-all:hover { opacity: .75; }
.actus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 140px);
  gap: 16px;
}
.actu-card {
  border: 1px solid #F0F0EB;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .4s ease, border-color .3s ease;
  background: #fff;
  box-shadow: 0 4px 20px rgba(12, 26, 46, 0.03);
  height: 100%;
}
.actu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(12, 26, 46, 0.1);
  border-color: #D8D8D0;
}

/* Card 1: 2x2 Square (Featured) */
.actus-grid .actu-card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.actus-grid .actu-card:nth-child(1) .actu-img {
  height: 150px;
}
.actus-grid .actu-card:nth-child(1) .actu-title {
  margin: 8px 0 6px;
}

/* Card 2: 2x1 Horizontal Rectangle */
.actus-grid .actu-card:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
}
.actus-grid .actu-card:nth-child(2) .actu-img {
  height: 100%;
}
.actus-grid .actu-card:nth-child(2) .actu-title {
  margin: 6px 0 4px;
}
.actus-grid .actu-card:nth-child(2) .actu-body {
  padding: 10px 12px;
}
.actus-grid .actu-card:nth-child(2) .actu-excerpt {
  display: none;
}

/* Card 3: 1x2 Vertical Rectangle */
.actus-grid .actu-card:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 2 / 4;
}
.actus-grid .actu-card:nth-child(3) .actu-img {
  height: 130px;
}
.actus-grid .actu-card:nth-child(3) .actu-title {
  margin: 8px 0 4px;
}
.actus-grid .actu-card:nth-child(3) .actu-body {
  padding: 10px 12px;
}
.actus-grid .actu-card:nth-child(3) .actu-excerpt {
  display: none;
}

/* Card 4: 1x1 Square (Small, text-only) */
.actus-grid .actu-card:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.actus-grid .actu-card:nth-child(4) .actu-img {
  display: none;
}
.actus-grid .actu-card:nth-child(4) .actu-title {
  margin: 4px 0 2px;
}
.actus-grid .actu-card:nth-child(4) .actu-body {
  padding: 12px;
}
.actus-grid .actu-card:nth-child(4) .actu-excerpt {
  display: none;
}

/* Card 5: 1x1 Square (Small, text-only) */
.actus-grid .actu-card:nth-child(5) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}
.actus-grid .actu-card:nth-child(5) .actu-img {
  display: none;
}
.actus-grid .actu-card:nth-child(5) .actu-title {
  margin: 4px 0 2px;
}
.actus-grid .actu-card:nth-child(5) .actu-body {
  padding: 12px;
}
.actus-grid .actu-card:nth-child(5) .actu-excerpt {
  display: none;
}

/* Card 6: 2x1 Horizontal Rectangle */
.actus-grid .actu-card:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
}
.actus-grid .actu-card:nth-child(6) .actu-img {
  height: 100%;
}
.actus-grid .actu-card:nth-child(6) .actu-title {
  margin: 6px 0 4px;
}
.actus-grid .actu-card:nth-child(6) .actu-body {
  padding: 10px 12px;
}
.actus-grid .actu-card:nth-child(6) .actu-excerpt {
  display: none;
}
.actu-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.actu-img img:not(.logo-fallback) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.actu-img .img-placeholder { font: 10px/1 monospace; padding: 3px 8px; border-radius: 2px; }
.actu-img--blue   { background: repeating-linear-gradient(135deg,#C8E8F5 0,#C8E8F5 1px,#E4F2FA 1px,#E4F2FA 9px); }
.actu-img--blue .img-placeholder { color: #5BA8C4; }
.actu-img--pink   { background: repeating-linear-gradient(135deg,#F0D8E8 0,#F0D8E8 1px,#F8EEF4 1px,#F8EEF4 9px); }
.actu-img--pink .img-placeholder { color: #C458A0; }
.actu-img--green  { background: repeating-linear-gradient(135deg,#D1FAE5 0,#D1FAE5 1px,#ECFDF5 1px,#ECFDF5 9px); }
.actu-img--green .img-placeholder  { color: #047857; }
.actu-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 8px;
}
.actu-cat { font: 700 10px 'DM Sans', system-ui; letter-spacing: .1em; text-transform: uppercase; }
.cat--pink   { color: var(--c2); }
.cat--blue   { color: var(--c1); }
.cat--green  { color: var(--c3); }
.actu-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0;
}
.actu-excerpt {
  display: none !important;
}
.actu-footer  { display: flex; align-items: center; justify-content: space-between; }
.actu-date    { font: 400 14px 'DM Sans', system-ui; color: var(--text-xlight); }
.link-read    { color: var(--c1); font: 600 14px 'DM Sans', system-ui; }

/* ═══════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   BANDE HORIZONTALE : NEWSLETTER + CTA ADHÉSION
   ═══════════════════════════════════════════════════ */
.split-section {
  display: flex;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #105a8b, #177da8, #14b8a6, var(--c3), #059669);
}
/* Panneau gauche : Newsletter */
.split-nl {
  flex: 1;
  background-image: radial-gradient(rgba(255,255,255,.045) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  padding: 64px 5%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Panneau droit : CTA */
.split-join {
  flex: 1;
  padding: 64px 5%;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Anneaux newsletter */
.nl-rings {
  position: absolute;
  top: 50%; left: 40%;
  pointer-events: none;
  z-index: 0;
}
.nl-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid;
  opacity: 0;
  animation: nl-ring-pulse 4.2s ease-out infinite;
}
.nl-ring--1 { width: 260px; height: 260px; border-color: rgba(27,158,211,.55);  animation-delay: 0s; }
.nl-ring--2 { width: 460px; height: 460px; border-color: rgba(232,25,122,.40);  animation-delay: 1.4s; }
.nl-ring--3 { width: 660px; height: 660px; border-color: rgba(16,185,129,.28);  animation-delay: 2.8s; }
@keyframes nl-ring-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.35); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(1);    opacity: 0;   }
}
.split-section.is-focused .nl-ring { animation-duration: 2s; }
.nl-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
}
.nl-bg-icon {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 320px;
  height: 320px;
  color: rgba(255, 255, 255, 0.065);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.nl-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.nl-title em {
  font-style: normal;
  color: #5CD6FF;
}
.nl-sub {
  font: 400 15px/1.6 'DM Sans', system-ui;
  color: rgba(255,255,255,.82);
  margin: 0 0 28px;
}
.nl-form-wrap { position: relative; }
.nl-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50px;
  padding: 7px 7px 7px 22px;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
}
.nl-form:focus-within {
  border-color: rgba(27,158,211,.55);
  box-shadow: 0 0 0 4px rgba(27,158,211,.1), 0 0 50px rgba(27,158,211,.08);
}
.nl-at {
  color: rgba(255,255,255,.28);
  font: 500 20px/1 'DM Sans', system-ui;
  flex-shrink: 0;
  user-select: none;
}
.nl-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font: 400 16px/1 'DM Sans', system-ui;
  color: #fff;
  min-width: 0;
}
.nl-input::placeholder { color: rgba(255,255,255,.28); }
.nl-send {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.nl-send:hover {
  transform: scale(1.1);
  background: #5CD6FF;
  box-shadow: 0 0 24px rgba(27,158,211,.55);
}
.nl-send:active { transform: scale(0.94); }
.nl-hint {
  font: 400 12px/1.6 'DM Sans', system-ui;
  color: rgba(255,255,255,.22);
  margin: 10px 0 0;
}
.nl-hint kbd {
  font-family: inherit;
  font-size: 11px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  padding: 1px 5px;
}
.nl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.nl-success.is-visible { display: flex; animation: nl-fadein .5s ease; }
@keyframes nl-fadein { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: none; } }
.nl-success-check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  animation: nl-popin .45s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes nl-popin { from { transform: scale(0); } to { transform: scale(1); } }
.nl-success-msg {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.nl-success-sub {
  font: 400 14px/1 'DM Sans', system-ui;
  color: rgba(255,255,255,.48);
  margin: 0;
}
/* CTA Adhésion */
.join-bg-icon {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%) rotate(12deg);
  width: 320px;
  height: 320px;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.join-inner  { text-align: center; position: relative; z-index: 1; max-width: 440px; }
.join-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 4px 15px rgba(12, 26, 46, 0.15);
}
.join-sub    { font: 300 18px/1.6 'DM Sans', system-ui; color: rgba(255,255,255,.8); margin: 0 auto 36px; }
.join-btns   { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer { background: var(--footer-bg); padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; margin-bottom: 8px; }
.footer-logo { height: 32px; width: 32px; border-radius: 50%; object-fit: contain; background: var(--c1); margin-bottom: 6px; }
.footer-brand-name { font: 600 15px/1 'DM Sans', system-ui; color: #fff; margin: 0 0 6px; }
.footer-brand-desc { font: 400 13px/1.4 'DM Sans', system-ui; color: rgba(255,255,255,.48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-socials--large .social-link { width: 30px; height: 30px; border-radius: 7px; }
.footer-col--social { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; }
.footer-col--social .footer-socials--large { justify-content: flex-end; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.social-link:hover { transform: translateY(-2px); border-color: transparent; }
.social-link--linkedin:hover  { background: #0A66C2; color: #fff; }
.social-link--facebook:hover  { background: #1877F2; color: #fff; }
.social-link--youtube:hover   { background: #FF0000; color: #fff; }
.social-link--bluesky:hover   { background: #0085FF; color: #fff; }
.footer-col-title { font: 700 14px 'DM Sans', system-ui; color: rgba(255,255,255,.32); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link { color: rgba(255,255,255,.58); font: 400 16px 'DM Sans', system-ui; text-decoration: none; transition: color .15s; }
.footer-link:hover { color: #fff; }
.footer-link--accent { color: var(--c2); font-weight: 600; }
.footer-link--accent:hover { opacity: .75; color: var(--c2); }
.footer-link--dot { display: flex; align-items: center; gap: 9px; }
.footer-link--dot::before { content: ''; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.footer-link--dot-blue::before   { background: var(--c1); }
.footer-link--dot-pink::before   { background: var(--c2); }
.footer-link--dot-green::before  { background: var(--c3); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-copy   { font: 400 15px 'DM Sans', system-ui; color: rgba(255,255,255,.28); }
.footer-legal  { font: 400 15px 'DM Sans', system-ui; color: rgba(255,255,255,.28); text-decoration: none; transition: color .15s; }
.footer-legal:hover { color: rgba(255,255,255,.6); }

/* ── Adaptation Hauteur d'Écran Desktop (Lisibilité vs. Above-fold) ── */
@media (max-height: 880px) and (min-width: 901px) {
  .hero {
    padding: 16px 0 12px;
  }
  .hero-inner {
    padding: 0 24px; /* Supprime le padding vertical sur écrans courts */
  }
  .hero-title {
    font-size: 74px;
    margin: 0 0 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
  .hero-left { max-width: calc(100% - 264px); } /* sticker 200px + right 24px + gap 40px */
  .hero-logo-wrap { right: 24px; }
  .hero-logo-xl { width: 190px; height: 190px; }
  .featured-img {
    height: 110px;
  }
  .featured-body {
    padding: 14px 20px;
  }
  .featured-title {
    font-size: 24px;
    margin: 0 0 6px;
  }
  .featured-excerpt {
    font-size: 15px;
    margin: 0 0 10px;
  }
  .secteur {
    padding: 24px 30px 20px;
  }
  .secteur-title {
    font-size: 36px;
  }
  .secteur-desc {
    font-size: 13px;
  }
  .secteur-num {
    font-size: 110px;
    bottom: -15px;
  }
}

/* ── Très petits écrans en hauteur (laptops 768px, 720px) ── */
@media (max-height: 720px) and (min-width: 901px) {
  .hero-title { font-size: 58px; }
  .hero-logo-xl { width: 160px; height: 160px; }
  .secteur { padding: 16px 24px 14px; }
  .secteur-title { font-size: 30px; }
  .secteur-cta { margin-top: 8px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — LARGE TABLET / PETITS DESKTOPS (≤ 1100px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .nav-inner  { padding: 0 32px; }

  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 36px;
    padding: 0 32px;
  }
  .hero-title { font-size: 50px; }
  .hero-bg-text { display: none; }

  /* Secteurs un peu plus compacts */
  .secteur { padding: 28px 28px 22px; }
  .secteur-title { font-size: 34px; }
  .secteur-desc  { font-size: 12px; }
  .secteur-num   { font-size: 120px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 900px)
   Hero : carte featured cachée, layout centré
   Secteurs : 3 colonnes compactes
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav-inner  { padding: 0 24px; height: 60px; }
  .container  { padding: 0 24px; }
  .nav-links  { display: none; }
  .nav-inner > .btn { display: none; }  /* Masque bouton adhérer desktop */
  .hamburger  { display: flex; }

  /* Hero : 1 colonne centrée sans featured card */
  .hero { padding: 28px 0 20px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px;
  }
  .hero-bg-text { display: none; }
  .featured-card { display: none; }   /* Masqué sur tablet/mobile, sera dans le scroll */

  .hero-title { font-size: 50px; margin-bottom: 14px; }
  /* Hero tablette : centré, sticker dans le flux */
  .hero-inner {
    align-items: center;
    text-align: center;
    padding: 28px 24px 20px;
  }
  .hero-left { align-items: center; max-width: 100%; }
  .hero-logo-wrap {
    position: static;
    margin: 20px auto 0;
    display: inline-block;
    animation: logo-float-mobile 3s ease-in-out infinite;
  }
  .hero-logo-xl { width: 200px; height: 200px; }
  .hero-ctas  { gap: 10px; }
  .btn--accent { font-size: 14px; padding: 12px 24px; }
  .btn--outline { font-size: 14px; padding: 10px 16px; }

  /* Secteurs : 3 colonnes compactes */
  .secteur { padding: 22px 22px 18px; }
  .secteur-title { font-size: 28px; margin: 0 0 4px; }
  .secteur-desc  { font-size: 12px; line-height: 1.4; }
  .secteur-num   { font-size: 100px; bottom: -12px; right: -4px; }
  .secteur-cta   { margin-top: 10px; }
  .secteur-cta span:first-child { font-size: 12px; }
  .secteur-arrow { width: 24px; height: 24px; font-size: 13px; }

  .actus-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 20px;
  }
  .actus-grid .actu-card {
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .actus-grid .actu-card .actu-img {
    display: block !important;
    height: 150px !important;
  }
  .actus-grid .actu-card .actu-title {
    font-size: 18px !important;
    margin: 8px 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .actus-grid .actu-card .actu-body {
    padding: 16px 18px !important;
  }
  .actus-grid .actu-card .actu-excerpt {
    display: none !important;
  }


  .actus-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .section-title { font-size: 30px; }

  /* Newsletter */
  .split-section { flex-direction: column; min-height: auto; }
  .split-nl, .split-join { flex: none; width: 100%; margin-left: 0; clip-path: none; padding: 56px 24px; background: transparent !important; }
  .nl-title { font-size: 38px; }
  .join-title { font-size: 36px; }

  /* CTA */
  .join-title { font-size: 34px; }
  .join-sub   { font-size: 16px; }
  .join-bg-text { font-size: 160px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
   Secteurs ultra-compacts mais les 3 toujours visibles
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  .nav-inner { height: 52px; padding: 0 16px; }
  .nav-logo  { height: 36px; width: 36px; }
  .nav-logo-link { margin-right: 0; }
  .container { padding: 0 16px; }

  /* Hero très compact */
  .hero { padding: 20px 0 14px; }
  .hero-inner { padding: 0 16px; }
  .hero-title { font-size: 38px; line-height: 1.0; margin-bottom: 12px; }
  .hero-logo-xl { width: 180px; height: 180px; }
  .hero-ctas  { gap: 8px; }
  .btn--accent  { font-size: 13px; padding: 11px 20px; }
  .btn--outline { font-size: 13px; padding: 9px 14px; }

  /* Secteurs ultra-compacts — 3 colonnes, max compact */
  .secteur { padding: 16px 14px 14px; }
  .secteur-title { font-size: 20px; margin: 0 0 3px; }
  .secteur-desc  { font-size: 11px; line-height: 1.35;
                   /* Limiter à 2 lignes pour économiser la hauteur */
                   display: -webkit-box;
                   -webkit-line-clamp: 2;
                   -webkit-box-orient: vertical;
                   overflow: hidden; }
  .secteur-num   { font-size: 80px; bottom: -10px; right: -2px; }
  .secteur-cta   { display: none; } /* Masqué sur mobile, gardé implicite avec le lien */

  /* Actus : 1 colonne */
  .actus-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  .actus-grid .actu-card {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .actus-grid .actu-card .actu-img {
    height: 180px !important;
  }
  .actus-grid .actu-card .actu-title {
    font-size: 18px !important;
    margin: 10px 0 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .actus-grid .actu-card .actu-body {
    padding: 22px 24px !important;
  }
  .actus-grid .actu-card .actu-excerpt {
    display: none !important;
  }

  .actus-section { padding: 36px 0 28px; }

  /* Newsletter */
  .newsletter-section { padding: 32px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-title { font-size: 22px; }

  /* CTA */
  .cta-section { padding: 52px 0; }
  .join-title   { font-size: 26px; }
  .join-sub     { font-size: 15px; margin-bottom: 32px; }
  .join-btns    { flex-direction: column; align-items: stretch; }
  .join-btns .btn { text-align: center; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TRÈS PETIT MOBILE (≤ 380px)
   iPhone SE, petits Android
   ═══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-title { font-size: 30px; }
  .secteur-title { font-size: 16px; }
  .secteur-desc  { font-size: 10px; }
  .secteur-num   { font-size: 65px; }
  .btn--accent  { padding: 10px 16px; }
  .btn--outline { padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════
   PAYSAGE MOBILE — protection hauteur (< 500px height)
   ═══════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 12px 0; }
  .hero-title { font-size: 28px; margin-bottom: 8px; }
  .hero-logo-xl { width: 150px; height: 150px; }
  .secteur { padding: 10px 14px 8px; }
  .secteur-title { font-size: 13px; }
  .secteur-desc  { display: none; }
  .secteur-num   { font-size: 50px; }
}

/* ═══════════════════════════════════════════════════
   PAGES STANDARD / ARTICLES
   ═══════════════════════════════════════════════════ */
.main-content {
  background: #FAFBFD;
  min-height: 50vh;
}
.page-header-banner {
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}
.page-header-banner .container {
  position: relative;
  z-index: 2;
}
.page-category {
  font: 700 12px/1 'DM Sans', system-ui;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  color: #ffffff;
}
.page-header-banner .page-category {
  color: #ffffff !important;
}
.page-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 42px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 2px 4px rgba(12, 26, 46, 0.4);
}
.page-meta {
  font: 400 14px 'DM Sans', system-ui;
  color: rgba(255, 255, 255, 0.85);
}
.page-article {
  padding: 56px 0 80px;
}
.content-container {
  max-width: 800px;
  margin: 0 auto;
}
.page-featured-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12, 26, 46, 0.08);
}
.page-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.entry-content {
  font: 400 17px/1.8 'DM Sans', system-ui;
  color: var(--dark);
}
.entry-content:not(.entry-content--builder) p {
  margin-bottom: 24px;
}
.entry-content:not(.entry-content--builder) h2, .entry-content:not(.entry-content--builder) h3 {
  font-family: var(--font-title);
  color: var(--dark);
  text-transform: uppercase;
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.2;
}
.entry-content:not(.entry-content--builder) h2 { font-size: 32px; }
.entry-content:not(.entry-content--builder) h3 { font-size: 26px; }
.entry-content:not(.entry-content--builder) ul {
  margin-bottom: 24px;
  padding-left: 24px;
}
.entry-content:not(.entry-content--builder) ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.entry-content:not(.entry-content--builder) ul li {
  list-style-type: disc !important;
  margin-bottom: 8px;
}
.entry-content:not(.entry-content--builder) ol li {
  list-style-type: decimal !important;
  margin-bottom: 8px;
}
.entry-content:not(.entry-content--builder) blockquote {
  border-left: 4px solid var(--c1);
  background: var(--off-white);
  border-radius: 0 6px 6px 0;
  padding: 20px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
}
.entry-content:not(.entry-content--builder) a {
  color: var(--c1);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.15s;
}
.entry-content:not(.entry-content--builder) a:hover {
  color: var(--c2);
}

/* ═══════════════════════════════════════════════════
   PAGE BUILDERS / COLIBRI COMPATIBILITY
   ═══════════════════════════════════════════════════ */
.page-article-fullwidth {
  padding: 0;
  width: 100%;
}
.entry-content--builder {
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Allow Colibri rows and sections to expand to full screen without constraints */
.entry-content--builder .colibri-section {
  box-sizing: border-box;
}
/* Restore standard typographic contrast inside builder items if needed.
   Les pages qui passent par le template "full-width-page.php" du thème parent
   (au lieu de nos page.php / template-fullwidth.php) ne portent pas la classe
   .entry-content--builder : on cible donc aussi [data-colibri-id], présent sur tout élément
   généré par Colibri Page Builder Pro quel que soit le template qui l'enveloppe. */
.entry-content--builder a,
[data-colibri-id] a {
  transition: color 0.15s;
  color: var(--c1);
}
.entry-content--builder a:hover,
[data-colibri-id] a:hover {
  color: var(--c2);
}
/* Police de marque par défaut pour les titres du builder, sans !important ni uppercase forcé :
   les styles explicites configurés par l'utilisateur dans Colibri Page Builder Pro (inline ou
   sélecteurs dédiés) doivent toujours pouvoir surcharger cette valeur par défaut. */
.entry-content--builder h1,
.entry-content--builder h2,
.entry-content--builder h3,
.entry-content--builder h4,
.entry-content--builder h5,
.entry-content--builder h6,
[data-colibri-id] h1,
[data-colibri-id] h2,
[data-colibri-id] h3,
[data-colibri-id] h4,
[data-colibri-id] h5,
[data-colibri-id] h6 {
  font-family: var(--font-title);
}
.entry-content--builder p,
.entry-content--builder li,
.entry-content--builder span,
.entry-content--builder td,
.entry-content--builder th,
[data-colibri-id] p,
[data-colibri-id] li,
[data-colibri-id] span,
[data-colibri-id] td,
[data-colibri-id] th {
  font-family: var(--font-body);
}

/* Hide specific Colibri theme preloaders to prevent blank screens on theme switch */
.colibri-theme-preloader,
.colibri-page-preloader,
#colibri-preloader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body, .main-content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force dimensions on dFlip PDF containers to prevent WebGL initialization crashes */
._df_book,
.df-book,
.df-book-wrapper,
.df-container {
  display: block !important;
  min-height: 450px !important;
  width: 100% !important;
}
