/* ==========================================================================
   LES EXPERTS SOLUTIONS — Charte alignée sur lesexpertscse62.fr
   Bleu marine + Or, typographie Segoe UI, angles peu arrondis.
   Couche de surcharge chargée APRÈS main.css (ne modifie pas main.css).
   Pour revenir à l'ancienne charte : retirer l'enqueue dans functions.php.
   ========================================================================== */

/* ---------- 1. Variables : repeint tout ce qui utilise var(--...) ---------- */
:root {
  --bleu-marine: #0a2540;
  --bleu-fonce: #14365c;
  --bleu-moyen: #2c5282;
  --bleu-clair: #e6f0fa;
  --or: #c9a45c;
  --or-clair: #d4b574;
  --or-fonce: #a8843a;

  /* anciennes variables du thème → nouvelle palette */
  --blue-dark: #0a2540;
  --blue: #14365c;
  --blue-light: #2c5282;
  --blue-pale: #e6f0fa;
  --orange: #c9a45c;
  --orange-light: #d4b574;
  --orange-pale: #f7f0e1;
  --gray-50: #f7fafc;
  --gray-100: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-500: #718096;
  --gray-700: #4a5568;
  --gray-900: #2d3748;
  --font-display: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .08);
  --shadow: 0 4px 16px rgba(10, 37, 64, .12);
  --shadow-lg: 0 8px 30px rgba(10, 37, 64, .15);
  --dark-card: #0a2540;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* ---------- 2. Header ---------- */
.site-header { border-bottom: 3px solid var(--or) !important; box-shadow: var(--shadow-sm); }
.header-topbar { background: var(--bleu-marine); }
.topbar-phone, .topbar-right a { color: #fff; font-family: inherit; }
.topbar-phone:hover, .topbar-right a:hover { color: var(--or); }
.topbar-cta { color: var(--or) !important; font-weight: 600 !important; }
.header-brand { border-bottom: 1px solid #e2e8f0; }
.brand-name { font-family: inherit; font-size: 1.45rem; font-weight: 700; color: var(--bleu-marine); letter-spacing: .5px; }
.brand-tagline { color: var(--or-fonce); letter-spacing: 1.5px; font-weight: 600; }
.header-nav { border-bottom: none !important; }
.header-nav .nav-links a { color: #2d3748; border-radius: 4px 4px 0 0; font-weight: 500; }
.header-nav .nav-links a:hover {
  color: var(--bleu-marine);
  background: var(--bleu-clair);
  border-bottom-color: var(--or);
}
.nav-burger span { background: var(--bleu-marine); }
.nav-burger:hover { background: var(--bleu-clair); }
.header-nav-sub { background: #fff !important; border-top: 1px solid #e2e8f0; }
.nav-sub-links li a { color: var(--bleu-marine); border-right-color: #e2e8f0; }
.nav-sub-links li a:hover { background: var(--or); color: var(--bleu-marine); }
@media (max-width: 900px) {
  .header-nav .nav-links a:hover { border-bottom-color: #e2e8f0; }
}

/* ---------- 3. Boutons ---------- */
.btn-primary, .nav-cta, .form-submit {
  background: var(--or) !important;
  color: var(--bleu-marine) !important;
  border: 2px solid var(--or);
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 600;
  font-family: inherit;
}
.btn-primary:hover, .nav-cta:hover, .form-submit:hover {
  background: var(--or-fonce) !important;
  border-color: var(--or-fonce);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow) !important;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: 600;
}
.btn-outline:hover { background: #fff; color: var(--bleu-marine); border-color: #fff; }

/* ---------- 4. Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(10, 37, 64, .97) 0%, rgba(44, 82, 130, .93) 100%);
}
.hero::before {
  background: radial-gradient(circle at 85% 30%, rgba(201, 164, 92, .18) 0%, transparent 55%);
}
.hero-grid { opacity: .6; }
.hero-badge {
  background: rgba(201, 164, 92, .15);
  border: 1px solid rgba(201, 164, 92, .55);
  color: var(--or-clair);
  border-radius: 4px;
}
.hero-badge::before { background: var(--or); }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--or); font-style: normal; }
.hero p { color: rgba(255, 255, 255, .92); font-weight: 400; }
.hero .diag-hero-cta {
  border-radius: 8px;
  border-color: rgba(201, 164, 92, .6);
  background: rgba(255, 255, 255, .06);
}
.hero .diag-hero-cta:hover { border-color: var(--or); background: rgba(201, 164, 92, .12); }

/* ---------- 5. Stats ---------- */
.stats { border-bottom: 3px solid var(--or); }
.stat-value { color: var(--bleu-marine); font-weight: 700; }
.stat-value span { color: var(--or-fonce); }
.stat-label { color: #4a5568; }
.stat-divider { background: #e2e8f0; }

/* ---------- 6. En-têtes de section (titre centré + filet or) ---------- */
section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  color: var(--bleu-marine);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.25;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--or);
  margin: 1rem auto 0;
}
.section-header h2 em { color: var(--or-fonce); font-style: normal; }
.section-header p { color: #4a5568; font-weight: 400; margin-left: auto; margin-right: auto; max-width: 700px; }
.section-tag { border-radius: 4px; letter-spacing: 1.5px; }
.tag-blue { background: var(--bleu-clair); color: var(--bleu-marine); }
.tag-orange { background: var(--orange-pale); color: var(--or-fonce); }

/* ---------- 7. Cartes « marques » ---------- */
.brands-section { background: #f7fafc; }
.brand-card {
  border-radius: 8px;
  border: none;
  border-top: 4px solid var(--or);
  box-shadow: var(--shadow-sm);
}
.brand-card::before,
.brand-card.card-blue::before,
.brand-card.card-orange::before,
.brand-card.card-purple::before,
.brand-card.card-green::before { display: none; }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.brand-card-icon, .icon-blue, .icon-orange, .icon-purple, .icon-green {
  background: var(--bleu-clair);
  border-radius: 50%;
  width: 60px;
  height: 60px;
}
.brand-card h3 { color: var(--bleu-marine); }
.brand-card p { color: #4a5568; }
.brand-tag { background: var(--bleu-clair); color: var(--bleu-marine); border-radius: 4px; }
.brand-card .brand-link,
.brand-card.card-orange .brand-link,
.brand-card.card-purple .brand-link { color: var(--bleu-marine); font-weight: 700; }
.brand-card .brand-link:hover { color: var(--or-fonce); }

/* ---------- 8. Services / piliers ---------- */
.service-card { border-radius: 8px; border-color: #e2e8f0; border-top: 4px solid var(--or); }
.service-card:hover { border-color: #e2e8f0; border-top-color: var(--or); box-shadow: var(--shadow); }
.service-list li::before { color: var(--or-fonce); }
.pole-dot.blue, .pole-dot.orange { background: var(--or); }

.pillars-section { background: var(--bleu-marine); }
.pillars-section::before {
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(201, 164, 92, .12) 0%, transparent 60%);
}
.pillars-section .section-header h2 { color: #fff; }
.pillars-section .section-header h2 em { color: var(--or); }
.pillars-section .section-header p { color: rgba(255, 255, 255, .8); }
.pillar-card {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--or);
  background: rgba(255, 255, 255, .05);
}
.pillar-card:hover { background: rgba(255, 255, 255, .1); }
.pillar-num { color: var(--or); opacity: 1; }
.pillar-card p { color: rgba(255, 255, 255, .75); }

/* ---------- 9. Bandeau CTA ---------- */
.cta-section { background: #f7fafc; }
.cta-box {
  background: linear-gradient(135deg, #0a2540 0%, #2c5282 100%);
  border-radius: 8px;
  border-bottom: 4px solid var(--or);
}
.cta-box h2 em { color: var(--or); font-style: normal; }
.cta-box p { color: rgba(255, 255, 255, .88); font-weight: 400; }

/* ---------- 10. Contact & formulaires ---------- */
.contact-section { border-top: 1px solid #e2e8f0; }
.contact-info h3 { color: var(--bleu-marine); }
.contact-info p { color: #4a5568; font-weight: 400; }
.contact-item-icon { background: var(--bleu-clair); border-radius: 50%; }
.contact-item-text strong { color: var(--bleu-marine); }
.contact-item-text span { color: #4a5568; }
.form-group label { color: #2d3748; }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  background: #f7fafc;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--bleu-marine);
  box-shadow: 0 0 0 3px var(--bleu-clair);
  background: #fff;
}

/* ---------- 11. Footer ---------- */
footer {
  background: var(--bleu-marine);
  border-top: 4px solid var(--or);
  color: rgba(255, 255, 255, .85);
}
.footer-brand h3 { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, .85); }
.footer-col h4 {
  color: var(--or);
  letter-spacing: 1.5px;
  display: inline-block;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--or);
}
.footer-links a { color: rgba(255, 255, 255, .85); }
.footer-links a:hover { color: var(--or); }
.footer-social { border-radius: 4px; background: rgba(255, 255, 255, .1); }
.footer-social:hover { background: var(--or); color: var(--bleu-marine); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .75); }

/* ---------- 12. Toast newsletter ---------- */
#nl-toast { background: var(--bleu-marine); border: 1px solid var(--or); border-radius: 8px; }
#nl-toast .nl-toast-form button,
#nl-toast button[type=submit] {
  background: var(--or);
  color: var(--bleu-marine);
  border-radius: 4px;
  font-weight: 600;
}


/* ==========================================================================
   13. PHOTOS (ajout du 24/10/2026) — hero, cartes, bandeau CTA, équipe
   Photos libres de droits (Unsplash) hébergées dans uploads/2026/10/
   ========================================================================== */

/* Hero : photo d'ambiance sous un voile bleu marine */
.hero {
  background:
    linear-gradient(135deg, rgba(10, 37, 64, .94) 0%, rgba(44, 82, 130, .90) 100%),
    url('/wp-content/uploads/2026/10/les-experts-hero.jpg') center / cover no-repeat;
}

/* Cartes « marques » : bandeau photo en haut de chaque carte */
.brand-card::before,
.brand-card.card-blue::before,
.brand-card.card-orange::before,
.brand-card.card-purple::before,
.brand-card.card-green::before {
  content: '';
  display: block;
  position: static;
  height: 170px;
  margin: -40px -32px 26px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.brand-card.card-blue::before   { background-image: url('/wp-content/uploads/2026/10/carte-formations.jpg'); }
.brand-card.card-orange::before { background-image: url('/wp-content/uploads/2026/10/carte-rh.jpg'); }
.brand-card.card-purple::before { background-image: url('/wp-content/uploads/2026/10/carte-preventions.jpg'); }
.brand-card.card-green::before  { background-image: url('/wp-content/uploads/2026/10/carte-qvct.jpg'); }

/* Les icônes passent en pastille chevauchant la photo */
.brand-card-icon, .icon-blue, .icon-orange, .icon-purple, .icon-green {
  margin-top: -58px;
  position: relative;
  background: #fff;
  border: 3px solid var(--or);
  box-shadow: var(--shadow-sm);
}

/* Bandeau d'appel : photo sous un voile bleu marine */
.cta-box {
  background:
    linear-gradient(135deg, rgba(10, 37, 64, .93) 0%, rgba(44, 82, 130, .88) 100%),
    url('/wp-content/uploads/2026/10/les-experts-cta.jpg') center / cover no-repeat;
}

/* Section « Notre équipe » (accueil) */
.team-strip { background: #fff; }
.team-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.team-strip-card { text-align: center; }
.team-strip-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border-bottom: 4px solid var(--or);
  box-shadow: var(--shadow-sm);
  background: var(--bleu-clair);
  margin-bottom: 16px;
}
.team-strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform .4s ease;
}
.team-strip-card:hover .team-strip-photo img { transform: scale(1.05); }
.team-strip-card h3 { font-size: 1.05rem; color: var(--bleu-marine); margin-bottom: 4px; }
.team-strip-card h3 strong { font-weight: 700 !important; }
.team-strip-role {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--or-fonce);
}
.team-strip-more { text-align: center; margin-top: 44px; }

@media (max-width: 960px) {
  .team-strip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .team-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .brand-card::before,
  .brand-card.card-blue::before,
  .brand-card.card-orange::before,
  .brand-card.card-purple::before,
  .brand-card.card-green::before { height: 150px; margin: -40px -32px 24px; }
}

/* Ancres : ne pas passer sous l'en-tête fixe */
section[id], div[id] { scroll-margin-top: 190px; }

/* Équipe d'accueil : 7 personnes, lignes centrées */
.team-strip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.team-strip-card { flex: 0 0 calc((100% - 60px) / 4); max-width: calc((100% - 60px) / 4); }
@media (max-width: 960px) { .team-strip-card { flex-basis: calc((100% - 40px) / 3); max-width: calc((100% - 40px) / 3); } }
@media (max-width: 600px) { .team-strip-grid { gap: 16px; } .team-strip-card { flex-basis: calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); } }

/* Bandeau d'appel à l'action : texte lisible sur fond bleu marine (toutes les pages) */
.cta-box h2 { color: #ffffff !important; }
.cta-box h2 em { color: var(--or) !important; }
.cta-box p { color: rgba(255, 255, 255, .92) !important; font-weight: 400 !important; }
.cta-box .btn-outline { color: #ffffff !important; border: 2px solid rgba(255, 255, 255, .55) !important; background: transparent !important; }
.cta-box .btn-outline:hover { color: var(--bleu-marine) !important; background: var(--or) !important; border-color: var(--or) !important; }

/* ==========================================================================
   14. BANDEAUX ANIMÉS (ajout du 24/10/2026) — voir assets/hero-anim.js
   ========================================================================== */
.has-xp-anim { position: relative; overflow: hidden; isolation: isolate; }
.xp-anim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #0a2540; }
.xp-anim span {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  animation: xpFade 18s ease-in-out infinite, xpZoom 18s linear infinite;
  will-change: opacity, transform;
}
.xp-anim::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,37,64,.80) 0%, rgba(20,54,92,.68) 55%, rgba(10,37,64,.82) 100%);
}
@keyframes xpFade { 0% { opacity: 0 } 8% { opacity: 1 } 33% { opacity: 1 } 41% { opacity: 0 } 100% { opacity: 0 } }
@keyframes xpZoom { 0% { transform: scale(1) translate3d(0,0,0) } 100% { transform: scale(1.16) translate3d(-1.5%,-1%,0) } }
@media (prefers-reduced-motion: reduce) {
  .xp-anim span { animation: none; }
  .xp-anim span:first-child { opacity: 1; }
}
