/* =========================================================================
   BLUKAN — feuille de style principale
   Palette : bleu nuit #0D1B3D · abysse #00102B · jaune #F5B916 ·
             vert #0E5A2A · blanc · noir · papier #F3F5FA
   ======================================================================= */

:root {
  --bleu-nuit: #0D1B3D;
  --bleu-abysse: #00102B;
  --jaune: #F5B916;
  --jaune-fonce: #D89E05;
  --vert: #0E5A2A;
  --blanc: #FFFFFF;
  --noir: #0A0A0A;
  --papier: #F3F5FA;
  --gris: #5A6478;
  --titres: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --texte: 'Segoe UI', Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--texte); color: #1A2233; background: var(--blanc); }

h1, h2, h3, h4, h5 { font-family: var(--titres); color: var(--bleu-nuit); line-height: 1.25; }
a { color: var(--vert); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; height: auto; width: auto; z-index: 100000;
  left: 8px; top: 8px; padding: 12px 18px; background: var(--jaune); color: var(--noir);
}

/* -------------------------------------------------------------------------
   En-tête — inspiré de Sydney : barre claire, logo à gauche, menu à droite
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--blanc);
  border-bottom: 3px solid var(--bleu-nuit);
  box-shadow: 0 1px 10px rgba(13, 27, 61, .08);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.site-branding { flex: 0 0 auto; }
.site-branding img.custom-logo { display: block; max-height: 54px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-liste a {
  font-family: var(--titres); font-weight: 600; font-size: .98rem;
  color: var(--bleu-nuit); text-decoration: none; padding: 8px 0;
  border-bottom: 3px solid transparent;
}
.nav-liste a:hover,
.nav-liste .current-menu-item > a { border-bottom-color: var(--jaune); }

.nav-cta {
  background: var(--jaune); color: var(--noir); font-family: var(--titres);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 11px 20px; border-radius: 6px; white-space: nowrap;
}
.nav-cta:hover { background: var(--jaune-fonce); color: var(--noir); }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: block; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .menu-toggle-barres span {
    display: block; width: 26px; height: 3px; margin: 5px 0;
    background: var(--bleu-nuit); border-radius: 2px; transition: transform .2s, opacity .2s;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-barres span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-barres span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-barres span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); border-bottom: 3px solid var(--bleu-nuit);
    flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 10px;
  }
  .site-nav.ouvert { display: flex; }
  .nav-liste { flex-direction: column; gap: 0; }
  .nav-liste a { display: block; padding: 12px 0; border-bottom: 1px solid #E3E7F0; }
  .nav-cta { text-align: center; }
}

/* -------------------------------------------------------------------------
   Contenu
   ---------------------------------------------------------------------- */
.site-main { min-height: 55vh; }
.contenu-page { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.titre-page { border-bottom: 4px solid var(--vert); padding-bottom: 10px; }

.titre-souligne {
  position: relative; padding-bottom: 12px; margin-bottom: 22px;
}
.titre-souligne::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; background: var(--vert);
}

.carte {
  background: var(--blanc); border: 1px solid #E3E7F0; border-top: 4px solid var(--bleu-nuit);
  border-radius: 8px; padding: 26px 24px; height: 100%;
  box-shadow: 0 2px 12px rgba(13, 27, 61, .06);
}
.carte h3 { margin-top: 0; }
.carte-contact { border-top-color: var(--jaune); position: sticky; top: 110px; }

.etape { text-align: center; padding: 10px 14px; }
.etape-numero {
  width: 58px; height: 58px; line-height: 58px; margin: 0 auto 8px;
  background: var(--jaune); color: var(--noir); border-radius: 50%;
  font-family: var(--titres); font-weight: 800; font-size: 1.5rem; text-align: center;
}

.bloc-service {
  border: 1px solid #E3E7F0; border-left: 5px solid var(--bleu-nuit);
  border-radius: 8px; padding: 30px 28px; margin-bottom: 28px;
  background: var(--blanc); box-shadow: 0 2px 12px rgba(13, 27, 61, .05);
}
.bloc-service h3 { margin-top: 0; }
.service-accroche { color: var(--gris); margin-top: -6px; }
.bloc-service .wp-block-buttons { margin-top: 18px; }

/* Boutons de blocs */
.wp-block-button__link { font-family: var(--titres); font-weight: 700; border-radius: 6px; }
.wp-block-button__link.has-jaune-background-color:hover { background-color: var(--jaune-fonce) !important; }
.is-style-outline .wp-block-button__link { border: 2px solid currentColor; }

blockquote.wp-block-quote {
  border-left: 5px solid var(--vert); margin-left: 0; padding: 6px 0 6px 22px;
  color: var(--bleu-nuit);
}

/* -------------------------------------------------------------------------
   Formulaires BLUKAN — sobres, lisibles, sans friction
   ---------------------------------------------------------------------- */
.blukan-form { margin: 0 0 20px; }
.form-ligne { display: flex; gap: 18px; }
.form-ligne .form-champ { flex: 1; }
@media (max-width: 640px) { .form-ligne { flex-direction: column; gap: 0; } }

.form-champ { margin: 0 0 16px; }
.form-champ--court { max-width: 320px; }
.form-champ label {
  display: block; font-family: var(--titres); font-weight: 600;
  font-size: .92rem; color: var(--bleu-nuit); margin-bottom: 6px;
}
.req { color: #B3261E; }

.blukan-form input[type="text"],
.blukan-form input[type="email"],
.blukan-form input[type="tel"],
.blukan-form select,
.blukan-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 1rem; font-family: var(--texte);
  border: 1.5px solid #C6CDDC; border-radius: 6px; background: var(--blanc);
}
.blukan-form input:focus, .blukan-form select:focus, .blukan-form textarea:focus {
  outline: none; border-color: var(--bleu-nuit); box-shadow: 0 0 0 3px rgba(13, 27, 61, .12);
}
.blukan-form input[type="file"] { padding: 9px 0; }

.form-consentement label { font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.form-consentement input { margin-top: 4px; }

.blukan-bouton {
  background: var(--jaune); color: var(--noir); border: 0; cursor: pointer;
  font-family: var(--titres); font-weight: 700; font-size: 1.05rem;
  padding: 14px 30px; border-radius: 6px;
}
.blukan-bouton:hover { background: var(--jaune-fonce); }

.blukan-hp { position: absolute !important; left: -9999px; }

.blukan-notice { border-radius: 6px; padding: 4px 18px; margin: 0 0 18px; }
.blukan-notice--ok { background: #E8F3EC; border-left: 5px solid var(--vert); }
.blukan-notice--erreur { background: #FBEAE8; border-left: 5px solid #B3261E; }

.blukan-eligibilite {
  background: #FFF4D6; border-left: 5px solid var(--jaune);
  padding: 12px 16px; border-radius: 6px; font-size: .95rem;
}

.form-notice { border-radius: 6px; padding: 6px 18px; margin: 0 0 20px; }
.form-notice--ok { background: #E8F3EC; border-left: 5px solid var(--vert); }
.form-notice--err { background: #FBEAE8; border-left: 5px solid #B3261E; }
.form-aide { font-size: .9rem; color: var(--gris); margin-top: 4px; }

/* -------------------------------------------------------------------------
   Bande des logos partenaires
   ---------------------------------------------------------------------- */
.logos-partenaires { border-top: 1px solid #E3E7F0; border-bottom: 1px solid #E3E7F0; }
.logos-partenaires .wp-block-columns { align-items: center; margin-bottom: 0; }
.logos-partenaires .logo-partenaire { margin: 0; }
.logos-partenaires .logo-partenaire img {
  max-height: 62px; width: auto; max-width: 100%; object-fit: contain;
  display: block; margin: 0 auto;
}
/* Séparateur vertical net entre les logos (bureau). */
@media (min-width: 782px) {
  .logos-partenaires .wp-block-column + .wp-block-column {
    border-left: 1px solid #E3E7F0;
  }
  .logos-partenaires .wp-block-column { padding: 6px 26px; }
}
/* Empilement propre sur mobile, séparateur horizontal. */
@media (max-width: 781px) {
  .logos-partenaires .wp-block-column { padding: 22px 0; }
  .logos-partenaires .wp-block-column + .wp-block-column {
    border-top: 1px solid #E3E7F0;
  }
  .logos-partenaires .logo-partenaire img { max-height: 54px; }
}

/* -------------------------------------------------------------------------
   Pied de page
   ---------------------------------------------------------------------- */
.site-footer { background: var(--bleu-abysse); color: #C9D2E4; margin-top: 60px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 54px 20px 30px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-logo { max-width: 190px; height: auto; margin-bottom: 12px; }
.footer-titre {
  font-size: 1.02rem; color: var(--blanc); text-transform: uppercase;
  letter-spacing: .08em; border-bottom: 2px solid var(--jaune);
  display: inline-block; padding-bottom: 6px;
}
.footer-liste { list-style: none; margin: 0; padding: 0; }
.footer-liste li { padding: 5px 0; }
.footer-liste a { color: #C9D2E4; text-decoration: none; }
.footer-liste a:hover { color: var(--jaune); }

.footer-mentions {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; padding: 18px 20px 26px; font-size: .85rem; color: #8D99B5;
}
.footer-mentions p { margin: 4px 0; }

/* -------------------------------------------------------------------------
   Widget WhatsApp flottant
   ---------------------------------------------------------------------- */
.blukan-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .15s ease;
}
.blukan-whatsapp:hover { transform: scale(1.08); color: var(--blanc); }

/* -------------------------------------------------------------------------
   Ajustements éditeur / blocs
   ---------------------------------------------------------------------- */
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 { color: var(--blanc); }
.page-blocs > .alignfull { margin-top: 0; }

/* --- v1.3 : section « Devenir un expert » + formulaire mailto --- */
.section-expert { color: #fff; }
.section-expert .wp-block-buttons { margin-top: 18px; }
.form-aide { font-size: .9rem; color: var(--gris); margin-top: 8px; }
.form-erreur { background: #FBEAE8; border-left: 5px solid #B3261E; padding: 10px 14px; border-radius: 6px; font-size: .95rem; margin-bottom: 14px; }
.champ-erreur { border-color: #B3261E !important; box-shadow: 0 0 0 3px rgba(179,38,30,.12) !important; }

/* =========================================================================
   v1.4 — micro-copie + éléments graphiques abstraits (section E)
   Motifs subtils en CSS/SVG inline, derrière le contenu, sans animation,
   sans nuire aux contrastes ni à l'accessibilité (pointer-events:none).
   ========================================================================= */

.micro-copie { margin-top: 8px; opacity: .92; }

/* Le contenu passe toujours au-dessus du motif décoratif. */
.deco-clair, .deco-sombre { position: relative; overflow: hidden; isolation: isolate; }
.deco-clair > *, .deco-sombre > * { position: relative; z-index: 1; }

/* Sections claires : semis de points bleu nuit très discret, coin haut-droit,
   estompé vers la gauche pour ne jamais gêner le texte. */
.deco-clair::before {
  content: ""; position: absolute; z-index: 0; top: 0; right: 0;
  width: min(40%, 380px); height: 100%; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%230D1B3D' fill-opacity='0.07'/%3E%3C/svg%3E");
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 92%);
          mask-image: linear-gradient(to left, #000 0%, transparent 92%);
}

/* Sections sombres : arcs concentriques blancs très légers, coin haut-droit. */
.deco-sombre::before {
  content: ""; position: absolute; z-index: 0; top: -90px; right: -90px;
  width: 380px; height: 380px; pointer-events: none; opacity: .6;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.06'%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='112'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='6' fill='%230E5A2A' fill-opacity='0.5'/%3E%3C/svg%3E");
}

/* Héros (photo) : très fine trame en surimpression, derrière le texte. */
.deco-hero .wp-block-cover__inner-container { position: relative; z-index: 3; }
.deco-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23FFFFFF' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 100% at 100% 0%, #000 0%, transparent 70%);
}
