/* ==========================================================================
   Jeanneau Immobilier : charte « Bleu profond & or » (essai du 03/11/2026)
   Tirée du logo créé par le client : bleu marine dominant, touches d'or.
   Référence : charte/variante-client/charte.md
   Activée par l'option jeanneau_charte = bleu-or, ou en aperçu par
   ?charte=bleu-or. Chargée après charte-b.css et composants.css : elle ne
   redéfinit que les jetons et quelques signatures (logo, filets dorés).
   Ratios de contraste CALCULÉS (WCAG 2.x), notés à côté de chaque couleur.
   ========================================================================== */

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(polices/cinzel-800.woff2) format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(polices/cormorant-600-italique.woff2) format('woff2');
}

:root {
  /* Bleu marine : marque, titres, boutons, pied de page */
  --jnu-primary:           #0f2147; /* blanc dessus : 15,80 · sur ivoire : 14,91 */
  --jnu-primary-hover:     #0a1733;
  --jnu-primary-deep:      #0f2147;
  --jnu-primary-container: #1b3366; /* blanc dessus : 12,27 */

  /* Or : en texte, uniquement la version foncée */
  --jnu-accent:       #8a6417; /* sur blanc : 5,36 · sur ivoire : 5,06 */
  --jnu-accent-hover: #6f500f;
  --jnu-or:           #c9a24a; /* filets et décor ; texte seulement sur marine : 6,59 */
  --jnu-or-clair:     #e9c46a; /* sur marine : 9,46 */
  --jnu-or-degrade:   linear-gradient(90deg, #9a6b1f, #e9c46a 50%, #9a6b1f);

  /* Surfaces ivoire, plus froides que le sable de la charte B */
  --jnu-surface:                #fbf8f2;
  --jnu-surface-container:      #ffffff;
  --jnu-surface-container-low:  #f3eee4;
  --jnu-surface-container-high: #ece4d3;
  --jnu-inverse-surface:        #0f2147;
  --jnu-inverse-on-surface:     #f6f1e6;

  /* Texte */
  --jnu-on-surface:         #141a2e; /* sur ivoire : 16,28 */
  --jnu-on-surface-variant: #4a5368; /* sur ivoire : 7,26 */

  --jnu-border:  #d9d2c3;
  --jnu-outline: #6b7286;

  /* Badge « Disponible » : or pâle, texte marine */
  --jnu-primary-fixed:    #f3e4b8;
  --jnu-on-primary-fixed: #0f2147;

  /* Typographie : capitales gravées pour les titres, italique pour l'accroche */
  --jnu-font-titres:    "Cinzel", "Trajan Pro", Georgia, serif;
  --jnu-font-editorial: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --jnu-shadow-1: 0 1px 2px rgba(15, 33, 71, .08);
  --jnu-shadow-2: 0 10px 28px rgba(15, 33, 71, .14);
}

/* Fond de page : le réglage « couleur de fond » de Divi (Customizer) imprime
   l'ancien sable #fff8f3 après cette feuille ; double sélecteur pour passer. */
html body,
html body #main-content { background-color: var(--jnu-surface); }

/* --- Titres ------------------------------------------------------------------ */

h1, h2 { letter-spacing: .02em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }

/* Cinzel n'a pas d'italique ni de bas-de-casse vraie : les intertitres courts
   (cartes, FAQ) restent dans la police de texte, plus lisible à petite taille. */
h3, h4, h5, h6,
.et_pb_module h3 { font-family: var(--jnu-font); font-weight: 700; }

.jnu-chapo,
.jnu-intro .jnu-chapo { font-style: italic; font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }

/* Carré de section : passe à l'or. */
.entry-content > h2::before,
.jnu-bande > h2::before { background: var(--jnu-or-degrade); width: 26px; height: 3px; }

/* --- En-tête : logo du client et filet doré ------------------------------------ */

.jnu-tb-entete { border-bottom: 3px solid transparent; border-image: var(--jnu-or-degrade) 1; }

.jnu-logo {
  display: block;
  width: 260px;
  height: 52px;
  background: url(logo/logo-jeanneau-horizontal.svg) no-repeat left center / contain;
}

.jnu-logo > * { display: none; }

@media (max-width: 980px) { .jnu-logo { width: 210px; height: 44px; } }
@media (max-width: 480px) { .jnu-logo { width: 170px; height: 36px; } }

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a { color: var(--jnu-accent) !important; }

/* --- Héro : voile marine, titre blanc, filet doré ------------------------------ */

.jnu-hero {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(233, 196, 106, .18) 0%, transparent 55%),
    linear-gradient(150deg, #1b3366, #0f2147 70%);
  border-bottom: 3px solid transparent;
  border-image: var(--jnu-or-degrade) 1;
}

.jnu-hero h1 { color: #fff; }
.jnu-hero__fil,
.jnu-hero__fil a { color: rgba(246, 241, 230, .82); }
.jnu-hero__fil a:hover { color: var(--jnu-or-clair); }

.jnu-hero--image { background-color: #0f2147; }
.jnu-hero--image::before { background: linear-gradient(180deg, rgba(15, 33, 71, .35), rgba(10, 23, 51, .82)); }

/* --- Boutons -------------------------------------------------------------------- */

.jnu-bouton { background: var(--jnu-primary); }
.jnu-bouton:hover { background: var(--jnu-primary-hover); }

.jnu-bouton--secondaire {
  background: transparent;
  color: var(--jnu-primary);
  box-shadow: inset 0 0 0 2px var(--jnu-or);
}

.jnu-bouton--secondaire:hover { background: #f3e4b8; color: var(--jnu-primary); }

.jnu-entete-cta { background: var(--jnu-primary); }

/* --- Composants de l'accueil ----------------------------------------------------- */

.jnu-avantage .material-symbols-outlined {
  color: var(--jnu-or-clair);
  background: var(--jnu-primary);
}

.home .jnu-avantage { border-top: 3px solid var(--jnu-or); }

.jnu-reperes .material-symbols-outlined { color: var(--jnu-accent); }

.jnu-etapes li::before {
  background: var(--jnu-primary);
  color: var(--jnu-or-clair);
  box-shadow: 0 0 0 2px var(--jnu-or);
}

.jnu-photo-absente .material-symbols-outlined { color: var(--jnu-primary); }

.jnu-captation { border: 1px solid var(--jnu-or); }

/* --- Pied de page marine, logo clair -------------------------------------------- */

.jnu-tb-pied,
body .et_pb_section.jnu-tb-pied {
  background-color: var(--jnu-inverse-surface) !important; /* couleur posée en dur dans le Theme Builder */
  border-top: 3px solid transparent;
  border-image: var(--jnu-or-degrade) 1;
}
.jnu-tb-pied h4::before { background: var(--jnu-or); }
.jnu-tb-pied a:hover { color: var(--jnu-or-clair); }

.jnu-pied-logo {
  display: block;
  width: 240px;
  height: 48px;
  background: url(logo/logo-jeanneau-horizontal-clair.svg) no-repeat left center / contain;
}

.jnu-pied-logo > * { display: none; }
